Create Your First Flow
A flow is an automated sequence of actions that runs when a specific event happens. For example, when a customer submits a claim, Synapse can automatically send them a confirmation email, wait 24 hours, and then send a follow-up reminder if they haven't completed the next step.
This guide walks you through creating your first flow from start to finish.
Before You Start
Make sure you have:
- At least one email template created (see Write Your First Template)
- A sender domain verified, or the shared domain enabled (see Set Up Sender Domain)
- The Developer, Marketing, or Admin role assigned to your account
Step 1: Open the Flow Builder
- In the dashboard sidebar, click Flows.
- Click the Create Flow button in the top right corner.
- Give your flow a descriptive name, like "Welcome Email" or "Claim Created Notification".
- Optionally add a description so your team knows what this flow does.
Step 2: Set the Trigger Event
The trigger event is the action that starts the flow. Every time this event is received from your application, Synapse checks whether to start a new trip through this flow.
- In the Trigger Event field, enter the event name exactly as your application sends it (e.g.,
user_signup,wics_open,purchase_complete). - This must match the
event_nameyour application sends via the API.
Event names are case-sensitive. Make sure the name matches exactly what your development team sends.
Step 3: Add Entry Conditions (Optional)
Entry conditions let you filter which events actually trigger the flow. For example, you might only want to trigger on wics_open events where the claim type is "work_injury".
- Click Add Condition under the trigger event.
- Choose the event attribute you want to check (e.g.,
claim_type). - Set the comparison value (e.g.,
work_injury).
If you leave entry conditions empty, every event matching the trigger event name will start a flow trip.
Step 4: Choose a Segment (Optional)
Segments let you restrict which contacts can enter this flow. For example, you might only want to send to contacts in Singapore who are subscribed to communications.
- Click the Segment dropdown.
- Choose an existing segment, or leave it as "All Contacts" to include everyone.
Segments are evaluated in real time when the event arrives. If a contact doesn't match the segment at that moment, they won't enter the flow -- even if they matched earlier.
Step 5: Add Flow Steps
Now build the sequence of actions. Click Add Step to add each one:
Send Email
- Select Send Email as the step type.
- Choose a template from the dropdown.
- The template will be personalized using the contact's data and the trigger event's attributes.
Wait
- Select Wait as the step type.
- Enter the delay duration (e.g.,
1hfor one hour,24hfor one day,7dfor seven days). - The flow pauses for this contact and resumes after the delay.
Condition
- Select Condition as the step type.
- Define what to check (e.g., "has the contact performed a specific event since entering the flow?").
- Set what happens if the condition is true (continue or skip to end) and what happens if false.
Update Contact
- Select Update Contact as the step type.
- Choose the property to update and the new value.
- This is useful for tagging contacts who have gone through a flow.
A simple first flow might just be: Send Email. You can always add wait steps, conditions, and branching later.
Step 6: Review and Activate
- Review all your flow settings in the summary panel.
- Set the Content Type to either "Transactional" (notifications, confirmations) or "Promotional" (marketing, campaigns). This affects email delivery priority.
- Click Save as Draft to save without activating.
- When you're ready, click Activate to make the flow live.
Once a flow is active, it will start processing any matching events immediately. Double-check your trigger event name, conditions, and template before activating.
What Happens Next
Once your flow is active:
- Every time the trigger event arrives via the API, Synapse checks the entry conditions and segment.
- If a contact qualifies, a new trip is created -- representing that contact's journey through the flow.
- Steps execute in order. Emails are rendered with real data and sent via your configured sender.
- You can monitor active trips, completion rates, and email delivery in the Flow Monitoring dashboard.
Quick Example: Welcome Email Flow
Here's a simple flow you might create:
| Setting | Value |
|---|---|
| Name | Welcome Email |
| Trigger Event | user_signup |
| Entry Conditions | None |
| Segment | All Contacts |
| Step 1 | Send Email: "Welcome Template" |
| Content Type | Transactional |
This flow sends every new user a welcome email as soon as they sign up. Simple, effective, and a great place to start.
Looking for the API?
If you prefer to create and manage flows programmatically, see the Flows API Reference.