# Need Help: How to Randomly Split Audience for A/B Testing in Workflow?

**URL:** <https://community.hubspot.com/t/need-help-how-to-randomly-split-audience-for-a-b-testing-in-workflow/126694>\
**Category:** Email Marketing Tool\
**Tags:** workflows\
**Created:** [February 24, 2025, 1:16pm UTC](https://community.hubspot.com/t/need-help-how-to-randomly-split-audience-for-a-b-testing-in-workflow/126694 "2025-02-24T13:16:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PMishra16](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@PMishra16](https://community.hubspot.com/u/PMishra16)\
**Post date:** [February 24, 2025, 1:16pm UTC](https://community.hubspot.com/t/need-help-how-to-randomly-split-audience-for-a-b-testing-in-workflow/126694/1 "2025-02-24T13:16:58Z")

</div>

Hey folks, I’m setting up a workflow for an 8-email drip sequence and want to A/B test the first email, as I’ve created two variants. Is there a way or condition that can randomly split the audience into two paths?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [February 24, 2025, 1:18pm UTC](https://community.hubspot.com/t/need-help-how-to-randomly-split-audience-for-a-b-testing-in-workflow/126694/2 "2025-02-24T13:18:33Z")

</div>

Hi @PMishra16,

If you just want to A/B test the first email, I would recommend this setup: [Automate A/B email testing with workflows](https://knowledge.hubspot.com/workflows/automate-ab-emails-with-workflows)

Alternatively, when you add a branch in a workflow (click + sign below enrollment criteria, then select branch in left sidebar), you can choose a random split: [Use branches in workflows](https://knowledge.hubspot.com/workflows/use-if-then-branches-in-workflows)

Best regards
