Welcome Series Segmented by Category

In cases where subscribers select a specific subscription category, such as gender, age, city, or product preferences, you may need to set up the appropriate welcome series.

Subscription form widget offering a 10% discount with an Email field and Gender options for Man, Woman, and Don't want to answer

Consider an example of setting up welcome series for male and female.

šŸ“˜

Important

Before creating a welcome series:

  1. Set up a workflow for double opt-in.
  2. Create a welcome workflow for each subscription form; then, when you make changes to one workflow, it will not affect the work of others.
  3. Create welcome emails for different categories of subscribers:
    • for male,
    • for female,
    • for contacts that did not specify gender.

Setting Up a Workflow with Data Validation from the Gender Field

Use the workflow when passing subscriber data by the Subscribe contact API resource. The system saves the data in additional fields and uses it for validation before running the workflow.

You can see additional fields in your account settings on the Additional fields tab.

Additional fields page with the Personal section and Gender field highlighted, and the account menu open with Settings highlighted

Click on the Personal Information heading to open a list of standard fields. The gender of the contact is stored in the additional Gender field; in our case, it is ID 4. You can recreate this field if you previously deleted it.

  1. Copy the field ID.
Additional fields Personal section with the Gender field's ID, 4, highlighted
  1. Copy the case-sensitive field value to customize the workflow.
Update field dialog for the Gender dropdown field showing the f and m option values highlighted
šŸ“˜

Important

When checking the additional field, the values m and M (f and F) will be considered different. The value in the contact field must match the value in the workflow parameters.

Workflow creation

  1. Go to Automation → Workflows → New workflow.
Automation menu open with Workflows highlighted and the New workflow button highlighted
  1. Put in the workflow’s name and add a tag (optionally).
Workflow editor titled Category segmentation showing only the Start/Stop configuration block with a Blocks must be connected with each other error
  1. Add the Task block; select the Confirm contact task type. The welcome chain will start after the subscriber confirms their email in the Double Opt-in email.
Workflow editor titled Category segmentation with Start/Stop configuration connected to a Confirm contact Task block, Task name highlighted
  1. Add the block Task (Get contact) to get contact data.
Workflow editor titled Category segmentation with Start/Stop configuration, Confirm contact, and a Get contact Task block, Task name highlighted
  1. Add Condition block and configure its settings:
  • Select the task name Variable matches regular expression.
  • In the name field, indicate the smartMessageJson system variable, in which information about a contact from the Get contact block is transmitted.
  • In the pattern field, indicate the value
 .*"4":"m".*

, where 4 is the gender field ID, and m is a variable corresponding to the male value; the system will check the contact data for compliance with this value.

Workflow editor titled Category segmentation with a Variable matches regular expression Condition block, Name set to smartMessageJson and Pattern set to .*4:m.*
  1. For the next check of the additional field value, copy the Condition block and indicate the following regular expression in the pattern field:
.*"4": "f".*
Workflow editor titled Category segmentation with a second Variable matches regular expression Condition block on the No branch, Pattern set to .*4: f.*

All contacts that do not meet the specified conditions (the value of the field is not equal to ā€œmā€ or ā€œfā€) will follow the third branch of the workflow.

  1. Add emails (Email block) and a delay in sending messages (Timer block) to each branch, as when setting up a regular welcome series.

  2. Finish each branch with the End block.

The welcome workflow for different subscribers’ categories will look as follows:

Full workflow editor titled Category segmentation showing two Condition blocks branching into Welcome for men, Welcome for women, and Welcome for all email and timer chains ending in End

Did this page help you?