HubSpot Knowledge Base

Automate A/B email testing with workflows

Written by Public API | Jan 1, 1970 12:00:00 AM

You can automate your A/B email tests by creating and saving an A/B email for automation. Once saved, you can include the A/B email in a workflow. 

Over time, HubSpot will send the email variations across enrolled records. The 50/50 split may not occur immediately. This split is gradual and will occur over time as the number of recipients increase.  

Please note: when setting up an automated email for A/B testing, the following restrictions will apply. 

  • You must configure the A/B test in the email editor before publishing. If you've published an automated email without setting up an A/B test, it cannot be used for A/B email testing after. Even if the email is subsequently edited or unpublished.
  • Each A/B email can only be used once. After an email action has been saved to a workflow, you won't be able to use the same email in any other workflows.
To use the same email in another workflow, clone the email instead.  

 

To use an A/B email in a workflow:

  • Click the name of an existing workflow, or create a new workflow.
  • In the workflow timeline, click the + plus icon to add a new action.
  • In the right panel, select Send email. Then select your A/B email. 

After the email has been added, you can continue to configure your workflow actions and settings as needed. You can send multiple A/B emails in a single workflow. After turning the workflow on, HubSpot will begin to evenly distribute the email variations to your enrolled records.

Once you pick the winning version, it will be sent to all future contacts in the workflow who meet the enrollment criteria, and the losing version will be archived. 

Metrics for your A/B test will be available on the email details screen. As you gather data, you can choose a winner between the two variants. After choosing a winner, the workflow will only send out the winning variation.