First steps
User Data
- Email Builder Review
- Designing your email
- Creating a Synchronized Module
- Setting Responsivity
- Building Smart Containers
- Creating a Gmail Promotions Annotation
- Adding a Rollover Effect
- Adding a Background to an Email
- Adding Anchor Links
- Adding a Video to an Email
- Adding a Table to an Email
- Adding a Custom Font
- Adding Social Media Buttons
- Editing HTML and CSS
- Working with “Images” block
- Using AI in the Email Editor
Omnichannel
- SDK for Mobile Apps
- Managing mobile SDK access keys
- Connecting Mobile App
- Creating a Google Project for Mobile Push Notifications
- Creating Mobile Push Messages
- Setting Up Delivery and Clicks Analytics
- Deep Links and Universal Links
- Scheduled Mobile Push Message
- Sending Test Messages from the Event Debug View
- Setting Up Widgets for Your Site
- Widget Calling
- Storing data from widgets to contact fields
- Using Annoyance Safeguard
- Actions After Form Submission
- Yespo Extension for Google Chrome
- Creating Pop-ups via Google Tag Manager or WordPress
- Sending Yespo Widget Events to Google Analytics
- Replacing Double Opt-In System Workflow
- Setting Up Locations for the Widget Calling Rules
Automation
Personalization
Analytics
- Email Campaign Report
- Web Push Campaign Report
- Viber Campaign Report
- Mobile Push Campaign Report
- App Inbox Campaign Report
- Widget Report
- Triggered Campaign Report
- AMP Campaign Report
- SMS Campaign Report
- Multilingual Campaign Report
- Setting up UTM Tags
- Revenue from Campaigns
- Tracking Campaign Performance in Google Analytics
Multilanguage Campaigns
Events and Behaviour Tracking
Recommendations
API
Security and Compliance
Integration
Splitting the Workflow Depending on the Event Parameters
The Condition block allows you to split the workflow depending on the parameters of the event that launched the workflow. These can be the following parameters:
- Category of the site visited by the contact
- City of residence
- Clothing size
- Product preferences
- Gender
For example, you need to send emails with selections of products for men and women, depending on gender, the value of which is passed in the event by the Generate event API method:
{
"eventTypeKey": "event_name",
"keyValue": "user@example.com",
"params":
[
{
"name": "EmailAddress",
"value": "user@example.com"
},
{
"name": "Name",
"value": "John"
},
{
"name": "lang",
"value": "EN"
},
{
"name": "gender",
"value": "M"
}
]
}
Workflow Settings
1. Create a workflow with two Condition blocks that check the event parameters and send the contact to the appropriate branch. An example of such a workflow:
2. Set up the first Condition block:
1) Select Variable matches regular expression in the Task name field to check the contents of the gender parameter.
2) Add the name of the validation parameter in the name field, in our case, it is gender.
3) Specify the value of the request parameter in the pattern field in the following format: .*M.* (male).
Important
The case of the letter in the pattern field must match the case of the letter in the event parameters
3. Add the second Condition block to the workflow with the same settings as the first one, but with the .*F.* (female) pattern.
If the event parameters match the value specified in the first condition, contacts will go along the “Yes” branch; if not, they will go to the next checkpoint.
Contacts without gender specified in the request will go through the third workflow branch.
Similar articles: