Flows
A flow sends a sequence of emails automatically: a welcome series, a product onboarding, a reminder before a trial ends. Each contact goes through it at their own pace.
How a flow works
A flow has a trigger and a list of steps. When the trigger fires for a contact, Kula starts a run for that contact, which goes through the steps from top to bottom:
Starts when: a contact subscribes to "Newsletter"
1. Send an email "Welcome to Acme Weekly"
2. Wait 3 days
3. Send an email "Our 5 most read issues"
4. Continue only if plan is not set
5. Send an email "Try Acme Pro"
Steps run in order. A Filter lets a contact continue or stops their run there. A Yes/No split sends each contact down one of two branches, which meet again after it.
Create a flow
Click New flow, enter a name and choose what it Starts when: a list, an event or a form. The flow opens in the editor.
The flow page
| Part | Shows |
|---|---|
| Left column | Name, status and description, editable in place; Analytics (Entered, Currently in, Completed, Goal reached, Exited); Goal and Send window |
| Flow | The flow as a diagram, with the numbers of each step. Click a card to open it in the editor |
| Runs | Every contact who entered the flow. Runs |
Edit flow opens the editor. The page also says how many problems block activation.
The editor
The editor opens full screen, with the flow drawn top to bottom, from the Trigger card to End.
- Palette on the left: Send email, Add to list, Remove from list, Update attribute, Unsubscribe, Call webhook, Delay, Wait for an event, Wait until a day, Filter, Yes/No split, End flow.
- Add a step: drag it from the palette onto the diagram, where valid places light up, or click a ⊕ between two steps.
- Edit a step: click its card, change it in the panel on the right, then Save. The trigger is the top card.
- Move a step: drag its card anywhere, including into another branch.
- Numbers: each card shows its own: emails sent, open and click rates, contacts waiting, branch counts.
- Problems: a card that blocks activation has a red border, with its message on hover and in its panel. Activate stays disabled until none remains.
- Zoom: drag or scroll to move around, − / + to zoom, Fit to see the whole flow.
While the flow is active, steps can be edited but not added, moved or removed: Pause it first.
Triggers
Set on the Trigger card of the editor.
| Trigger | Fires when | Good for |
|---|---|---|
| A contact subscribes to a list | A subscription to that list is confirmed: from a form, the API or the dashboard | Welcome series, newsletter onboarding |
| A contact performs an event | Your app sends that event through the API | Product onboarding, trial reminders, post-purchase emails |
| Someone joins a form | A signup through that form or landing page takes effect | Follow-up of a document offered, welcome by source |
Imports never trigger a flow: imported contacts did not just sign up. With double opt-in, the flow starts when the contact confirms, not when they submit the form.
Events are sent by your app with POST /v1/events. If the address is not yet a contact, Kula creates it. Onboarding with events.
Someone joins a form
The flow starts on the event kula.form_joined of the chosen form, when the signup takes effect: at the confirmation click with double opt-in, at submission otherwise. A contact already subscribed who fills the form again starts it too, which A contact subscribes to a list can't do. An unconfirmed submission starts nothing.
The flow's list is by default the first list of the form: unsubscribing from a follow-up email leaves that list only.
The emails read the event with {{ event.form_name }}, {{ event.form_id }}, {{ event.page_url }}, {{ event.referrer }} and {{ event.utm_source }}, utm_medium, utm_campaign, utm_content, utm_term. The same properties work in a Trigger event rule:
Starts when: someone joins the form "SEO guide"
1. Send an email "Your guide, and what comes next" ({{ event.form_name }})
2. Wait 3 days
3. Yes/No split trigger event utm_source is "newsletter"
Yes:
1. Send an email "Thanks for reading us"
No:
1. Send an email "Meet Acme"
To follow up on the download itself, start from the event kula.resource_downloaded. Events.
The flow's list
The list that starts a flow is its list. An event flow can have one too: choose it in Only for subscribers of. Then:
- only subscribers of that list enter the flow;
- each marketing email checks the contact is still subscribed;
- the unsubscribe link leaves that list only, and ends the run;
- a Remove from list step on that list ends the run.
Without a list, unsubscribing from an event flow's email unsubscribes the contact from every list. Give a list to any event flow sending marketing emails, such as tips or product news.
Steps
A flow has up to 50 steps, branches included.
Send an email
Edit email in the panel opens the step's own page. Choose how it gets its content:
| Option | Content |
|---|---|
| Use a template | Links a template: the step sends its published version, and publishing the template updates every flow using it |
| Write the email | Subject, preview text, sender and content of its own, written in the same editor as campaigns. Writing emails |
Detach turns a linked step into its own content, copied from the template.
Marketing or transactional
A flow email is a marketing email by default, with or without a template: it carries an unsubscribe link, follows your warm-up and reputation rules, and never reaches an unsubscribed contact.
Turn on Transactional email in the step's panel for an email the contact expects after their own action: a receipt, access to what they bought, "your launch is today". The email:
- reaches unsubscribed contacts too;
- carries no unsubscribe link;
- travels on the transactional stream.
A flow with at least one transactional email keeps unsubscribed contacts: they enter it when they send the trigger event, even if not subscribed to the flow's list, stay in it when they unsubscribe, and receive only its transactional emails. Its marketing emails and Add to list steps are skipped for them, and the run shows why. Contacts who bounced or complained never receive anything.
Never use it for promotion: it breaks the consent rules of inbox providers and our acceptable use policy.
In a flow triggered by an event, {{ event.<property> }} inserts a property of that event. Send the data with the event, use it in the emails:
{
"email": "ada@example.com",
"name": "checkout_started",
"properties": { "cart_url": "https://shop.example/cart/42", "total": 59.9, "items": [{ "name": "Ceramic mug" }] }
}
You left {{ event.items.0.name }} in your cart: [finish your order]({{ event.cart_url }}).
- Every email of the run reads the event that started it, even after a wait for another event.
- Nested values and list items:
{{ event.items.0.name }}. A whole list shows its values separated by commas. - Insert variable lists the properties of the last events received. The preview uses the last event of that name.
{{ data.<property> }}reads the same properties: a template written forPOST /v1/emailsworks as is.- A flow triggered by a list has no event:
{{ event.* }}and{{ data.* }}are empty, and a template with required variables can't be linked. - If the trigger event lacks a required variable of a linked template, the run fails and names the missing variables.
Wait
Pauses the run in one of three ways, from Delay, Wait for an event or Wait until a day in the palette:
| Mode | Waits | Example |
|---|---|---|
| For a time | A duration in Minutes, Hours or Days, from 1 minute to 365 days | Wait 3 days |
| For an event | Until the contact performs an event, at most a duration from 1 hour to 90 days | Wait until domain_verified, at most 3 days |
| Until a day | The next chosen day of the week at a time, later today if that time is still to come | Wait until Monday 09:00 |
Times are in the space timezone, set in the space settings.
A wait for an event moves on as soon as the event arrives, or when the longest wait is over. To tell the two apart, put a split on that event right after:
Starts when: a contact performs "signed_up"
1. Send an email "Connect your domain"
2. Wait until "domain_verified", at most 3 days
3. Yes/No split has done "domain_verified"
Yes:
1. Send an email "Send your first campaign"
No:
1. Send an email "Need a hand with DNS?"
- Only an event performed during the wait counts.
- The trigger event cannot be the event waited for.
Filter
Continue only if the contact matches a set of conditions, built like a segment: attributes, lists, events, email activity. A contact who does not match exits the flow.
Put a wait before a filter to give contacts time to act: "Wait 3 days, then continue only if has not done project_created".
Yes/No split
Checks the same kind of conditions, but keeps every contact: those who match go down the Yes branch, the others down the No branch. The two branches meet again after the split: the steps below it run for both.
Starts when: a contact performs "signed_up"
1. Send an email "Welcome to Acme"
2. Wait 2 days
3. Yes/No split has done "domain_verified"
Yes:
1. End flow
No:
1. Send an email "Connect your domain in 5 minutes"
2. Wait 3 days
4. Send an email "Need a hand with DNS?"
Here contacts who verified their domain stop at the split; the others get a reminder, then step 4.
- An empty branch goes straight to the step after the split.
- End flow stops a branch: its contacts complete the flow without the steps after the split. Nothing goes after it.
- If both branches end with End flow, the steps after the split are never reached: activation is refused.
- Splits nest up to 3 levels deep.
- The split shows how many contacts went down each branch.
Use a filter to stop a run, a split to send different emails.
Engagement with an earlier email
A filter or a split can check what the contact did with an email of the same flow: add an Email activity rule (received, opened, clicked, or not) and pick that email under an email of this flow. The list shows the emails before the step, named by their position ("Step 2 › Yes › step 1").
Starts when: a contact performs "signed_up"
1. Send an email "Welcome to Acme"
2. Wait 2 days
3. Yes/No split did not open step 1
Yes:
1. Send an email "In case you missed it" (same email, new subject)
No:
(empty)
- Only the contact's current run counts: with Every time the trigger fires, a click in an earlier run doesn't carry over.
- Put a wait between the email and the check, or nobody has had time to open it. Any kind of wait works. With a split in between, a wait is needed on every path. Activation is refused otherwise.
- An email sent in only one branch can be checked after the branches meet. Contacts from the other branch count as not having received it.
- Opens are approximate: Apple Mail opens some emails by itself. Clicks are reliable.
- An email used by a check can't be deleted until the check changes.
Data of the trigger event
In a flow triggered by an event, a filter or a split can read what your app sent with that event: add a Trigger event rule and name the property. Send raw facts, let the flow choose the email:
Starts when: a contact performs "first_post" { "newsletter_enabled": false }
1. Yes/No split trigger event newsletter_enabled is false
Yes:
1. Send an email "Turn on your newsletter"
No:
1. Send an email "Share your post"
- Only the event that started the run counts, not the contact's later events.
- Nested properties:
blog.plan,items.0.name. - Same operators as attributes. A missing property is not set, and counts as false.
- A flow triggered by a list has no event: activation is refused with such a rule. Segments can't use it either.
Actions
Actions change the contact or call your tools, then the run moves on at once.
| Action | Does |
|---|---|
| Add to list | Subscribes the contact to a list, without confirmation email. Flows started by that list start too |
| Remove from list | Takes the contact off a list. On the flow's list, ends the flow |
| Update attribute | Sets an attribute to a value (text, number, true / false), to today's date in the space timezone, or removes it |
| Unsubscribe | Unsubscribes the contact from all your lists and ends the flow. Transactional emails still reach them |
| Call webhook | Sends the contact to your URL, to send an SMS, a WhatsApp message or update a CRM. Call webhook |
End of an onboarding: a paying customer moves from "Trial" to "Customers", which starts the flows of "Customers".
Starts when: a contact subscribes to "Trial"
1. Send an email "Welcome to your trial"
2. Wait until "paid", at most 14 days
3. Continue only if has done "paid"
4. Add to list "Customers"
5. Remove from list "Trial"
Removing contacts from the list that starts the flow ends their run: put that step last.
Clean-up of inactive subscribers:
Starts when: a contact subscribes to "Newsletter"
1. Wait 90 days
2. Continue only if is inactive: no open or click for 90 days
3. Send an email "Still want to hear from us?"
4. Wait 7 days
5. Yes/No split clicked step 3
Yes:
1. End flow
No:
1. Unsubscribe
- Add to list never brings back a contact who left that list themselves. A contact removed by a flow can be added back.
- Unsubscribe, like End flow, is the last step of its branch.
- Attribute keys follow the API rules: lowercase, at most 50 per contact.
email,first_nameandlast_nameare contact fields. - A list used by an action can't be deleted while the flow is active or paused.
- An action that has nothing to do (already on the list, attribute limit reached) is skipped, and the run goes on. The run detail says why.
Call webhook
Kula sends no SMS, but a flow can trigger one. When a contact reaches the step, Kula sends a POST with the contact in JSON to your URL: Zapier, Make, n8n or your own code then sends the message. The run moves on without waiting for the answer.
| Setting | Rule |
|---|---|
| URL | A public https URL. Private and local addresses are refused |
| Name | The name of the action, sent in the request (send_welcome_sms). One receiver can serve several steps |
The URL and the name can change at any time, even while the flow is active.
- Send window. A call due outside the send window waits for the next opening, like an email.
- Unsubscribed contacts. In a flow that keeps them (one with a transactional email), the call is made for them too: it is not an email. Consent to SMS is yours to check.
- Send test request. Calls your URL now with your latest contact and shows the HTTP status. Zapier and Make need it to discover the fields.
- Run detail. The step shows the call: delivered, retrying with the last HTTP status, or failed.
- Retries. Your URL must answer a
2xxwithin 10 seconds. Otherwise Kula retries after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours, then gives up.
Payload, headers and signature: Flow webhooks. The panel of the step shows the signing secret.
To act on the result, send an event back through the API (sms_sent), then wait for it and split:
Starts when: a contact performs "signed_up"
1. Send an email "Welcome to Acme"
2. Wait 1 day
3. Call webhook send_welcome_sms
4. Wait until "sms_sent", at most 1 hour
5. Yes/No split has done "sms_sent"
Yes:
1. End flow
No:
1. Send an email "Your first steps with Acme"
Example: an SMS on day 2 with Zapier and Twilio
The phone number is in the contact attribute phone, set by your app ("attributes": { "phone": "+33612345678" }).
Create the Zap
In Zapier, create a Zap that starts with Webhooks by Zapier › Catch Hook, and copy its URL.
Add the step
In the flow, add Call webhook after a 2-day wait. Paste the URL, name it send_welcome_sms, then click Send test request.
Send the SMS
In Zapier, add Twilio › Send SMS: To is data.contact.attributes.phone, the message can use data.contact.first_name.
Only contacts who agreed to receive SMS should get one: add a filter on an attribute such as sms_consent before the step.
Re-entry
Re-entry, on the Trigger card, sets what happens when the trigger fires again for a contact who already went through the flow:
| Option | Behavior |
|---|---|
| Once per contact (default) | A contact goes through the flow only once, ever |
| Every time the trigger fires | The contact starts again, unless they are still in the flow |
Use Every time the trigger fires for repeated events, such as order_paid for a post-purchase email.
Goal
A flow can have up to 5 goal events, set under Goal. When a contact performs one of them, their run stops at once, even during a wait: a contact who paid no longer gets the "your trial ends soon" reminder.
Starts when: a contact performs "trial_started"
Goal: "paid"
1. Send an email "Welcome to your trial"
2. Wait 10 days
3. Send an email "Your trial ends in 4 days"
- Suggestions come from the events your space received. The trigger event cannot be a goal.
- Only events sent after the contact entered the flow count. To keep out contacts who already did it, start with a filter "has not done
paid". - Goals apply while the flow is active or paused, and change at any time.
- The flow page shows the runs that reached the goal, and their rate over every run started: the conversion of the flow.
Send window
Under Send window, choose the days and hours the flow sends its emails, for example Monday to Friday, 09:00 to 18:00, in the space timezone. An email or a webhook call due outside the window waits for the next opening; waits, filters and splits are not affected.
- The window lasts at least one hour, within one day.
- It changes at any time, even while the flow is active.
When a contact leaves a flow
A run ends when it reaches the last step, an End flow or Unsubscribe step, or a step removing the contact from the flow's list (Completed), when the contact performs a goal event (Goal reached), or earlier (Exited), when the contact:
- unsubscribes from the flow's list, or from everything, unless the flow has a transactional email;
- bounces or complains;
- is deleted;
- does not match a filter.
Activate a flow
A new flow is a Draft. Activate checks the trigger and every step, then starts the flow. A step linked to a template never published blocks activation. The editor shows these problems on the cards as you build.
Contacts already on the list do not enter the flow: only new subscriptions and new events start runs.
AI assistants can build a flow but never activate it: they request an activation, and a member clicks Approve and activate. AI assistant.
Edit a running flow
| Change | When |
|---|---|
| Content of an email (subject, text, sender) | Any time, even while active. Contacts who have not reached the step yet get the new version |
| Webhook URL and name | Any time, even while active |
| Template linked to a step | Publish the template: every flow using it sends the new version |
| Add, remove or move steps | Pause the flow first. Steps move anywhere, including into another branch |
| Goal events | Any time, even while active. They apply to events sent afterwards |
| Wait settings and send window | Any time, even while active. Contacts already waiting keep their current wait |
| Trigger and re-entry | Pause the flow first |
While a flow is paused, no contact enters it and runs in progress wait. Click Resume to continue: runs pick up where they stopped.
Changes since the pause
Kula remembers the flow as it was when you paused it. In the editor and on the flow page:
- each changed card carries a badge: New, Moved or Edited. The trigger card shows Edited when the trigger or re-entry changed;
- the editor's top bar and the flow page show 3 changes since pause. In the editor, click it to list them, then click a step to select its card. Removed steps appear by name;
- the button becomes Resume with changes, with the number of changes. It opens the list again, with the number of contacts in the flow, before you confirm.
A step inserted before another does not count as a move. A step added during the pause shows as New only, even after you edit it. Without changes, the button stays Resume.
- A run on a moved step follows it to its new place.
- A run on a deleted step moves to the step after it, which may be the step after a split. Deleting a split does the same for the runs inside its branches.
- A contact waiting on a delay that is the last step of its branch completes the flow, even if a common ending is added after the split meanwhile.
If marketing is paused for your space, runs wait too, and continue once sending resumes. Reputation.
Runs
The Runs view of the flow page lists every contact who entered the flow, with the status of their run (Active, Completed, Goal reached, Exited, Failed), the step they are on and the reason they exited (for a goal, the event). The flow page also shows delivered, opened and clicked counts for each email step.
Click a run to see its detail:
- the trigger, with the properties of the event;
- each step the contact went through, with its time: emails with their delivery, open and click, waits and how they ended (event received or time out), filters and splits with their result, actions done or skipped (and why), webhook calls with their status;
- how the run ended.
Through the API: GET /v1/flows/{flowId}/runs/{runId}.