Creating a scenario
The Scenario wizard provides a visual canvas for building communication logic with contacts through dragging and dropping blocks and connecting them with communication lines.
Canvas
To create a scenario, go to Mailings ➔ Scenarios. Once the name of the scenario has been set, you will be taken to the canvas on which you need to place the blocks.
On the canvas you can find various tools that can help you when working:
- Canvas movement/object selection modes (V)
- Undo and redo (Ctrl+Z and Ctrl+Shift+Z)
- Zooming - using the mouse wheel (Ctrl+scroll) or the magnifying glass in the bottom menu.
- Full screen mode (Ctrl+O)
- Show/Hide Scenario Preview (Ctrl+M)
In addition to the navigation tools, several other useful functions are available:
- Download scenario in image format
- List of all hotkeys
Blocks
Block settings are on the right sidebar. Drag a block onto the canvas and double-click to open the settings.
It is mandatory to create at least one starting and ending block for each scenario. The rest of the blocks can be combined at your discretion and tasks.
The starting block is the event that must occur for the contact to start going through the scenario. You can use multiple starting and ending blocks within a single scenario. An important setting for the initial block is “Duplicate Handling”. It regulates the behaviour of the scenario in case the same contact starts the scenario without having completed the previous walkthrough yet. Be careful, because if you use several initial blocks, this setting will be synchronised and applied in each of them.
Starting blocks
- subscription - start the scenario when subscribing from the site, by API, via contact import, segment, contact card or after permission to send mobile push notifications
- for a specific mailing group - the contact will start the scenario when he subscribes to the selected mailing group.
- for a segment-specific mailing group - the contact will start the scenario when he/she subscribes to the selected mailing group and if he/she fits the conditions of the selected segment (the segment check will take place at the moment of subscribing to the group, i.e. when the scenario starts).
- to any segment-specific mailing group - the contact will start the scenario when he/she subscribes to any of the mailing groups created in the account and if he/she fits the conditions of the selected segment (the segment check will take place at the moment of subscribing to the group, i.e. at the moment of scenario start).
- on Mobile Push - the contact will start the scenario when he/she allows sending mobile push notifications in the application
- message - click (on any or specified link) or open the selected message
- API - getting an API request to start the scenario with preliminary checking of the contact for compliance with the conditions of the selected segment (segment selection is optional)
- data change -
- start when the contact's custom field is changed to any value other than the current one or to the specified one
- start when the contact's email is changed to any value, gets filled or empty (if the contact's previous email was deleted).
- schedule - start according to the specified schedule with obligatory checking for compliance with the segment (the contact will start the scenario only if it matches the conditions of the segment).
Main blocks
- message sending - available channels: Email, Mobile Push, SMS, WhatsApp. Read more about creating scenario messages here;
- pause - waiting before the next event, waiting for a specific date;
- distribution
- by segment - the contact will follow the path of the segment whose conditions it matches. If the contact fulfils the conditions of several segments - it will follow the branch of the first suitable one;
- by scenario field - contacts will follow the branch that matches their value in the scenario field. If a contact matches the conditions of several branches at once, it will go to the first branch that matches;
- equal - contacts will be divided into equal groups according to the number of configured branches;
- proportional - contacts will be divided in the ratio you customize according to the specified number of groups (scenario branches).
- data change - the value of the selected custom field of the contact passing through the block will be changed;
- API request - specify endpoint, request type, headers, set parameters and body (you can use DK)
Final block
- the first configuration option does not perform any actions with contacts
- re-subscribe to mailing groups - when the scenario is completed, the contact can be unsubscribed from mailing groups and subscribed to mailing groups. You cannot select the same group in unsubscribe and subscribe.
- delete contact - when the scenario ends, the contact will be deleted and can be restored in the deleted section.
If your scenario includes a final block of deleting a contact or unsubscribing it from all mailing groups immediately after the block with sending a message, we recommend to put a small pause between these two blocks. Mailers do not always process requests to send messages instantly, so it may happen that a contact is deleted or unsubscribed from groups before the message is sent to them.