Workflows
A workflow follows each person over hours or days, by itself. To build your first one, see A welcome workflow. This page covers the templates and the steps that do more.
Owners and admins build and publish workflows. Everyone can read them.
Start from a template
Section titled “Start from a template”- Go to Workflows.
- Press New workflow.
- Pick a template. Each starts as a draft, and any message it writes waits as a draft too. Nothing reaches anyone until you publish.


| Template | What it does |
|---|---|
| Welcome new contacts | A day after someone signs up, shows them a welcome post in the app. |
| Onboarding tips | An email of tips two days after they sign up, and a push five days in if they haven’t opened the app since. |
| Started but didn’t finish | When someone does one thing and not the next within a day, sends them a push. You choose the two events. |
| Ask for feedback | When someone has opened the app ten times in a month, asks how likely they are to recommend it. |
| Win back quiet contacts | Emails someone who hasn’t been seen for 30 days, late in the morning where they are. |
| Help bot | Greets a new conversation, suggests help articles, and hands over to your team when they don’t help. |
| Rate the help | An hour after a conversation is closed, asks the contact to rate the help they got, at most once a week. |
| Route your best contacts | Sends a new conversation from someone who has opened the app 100 times or more straight to a team you choose. |
| Order status bot | Asks for an order reference, looks it up on your shop’s server, and says where the order is. |
| Blank journey, Blank help bot | Start from nothing. |
Started but didn’t finish and Win back quiet contacts are marketing: they only reach people who agreed to offers.
Order status bot shows when your app has an order reference, set under Settings › your app › General, on the Orders card. It saves the order’s status in a text attribute called order_status. Make that attribute first, under Settings › your app › Data (Your data). Then fill in your shop’s address on its Look it up step.
Send a message from a workflow
Section titled “Send a message from a workflow”A workflow can send a push, email, in-app message or survey. The message must be one made for workflows.
- Go to Messages and make the message, or open one.
- At the When step, choose Only from a workflow. The workflow then decides who gets it and when. The message’s days and times, quiet hours and consent still hold.
- Go to Workflows and open the workflow.
- Press the + under a step, and choose Send a message.
- Under Message, choose it. Only messages sent Only from a workflow are listed. To write a new one here, press New message….
- Publish the workflow. A message that isn’t live yet goes live with it.
Back on the message, the When step lists every workflow that sends it, in a draft or a published version, and whether each is live. If none does yet, it says so, with a link to Workflows.
Keep secrets for steps
Section titled “Keep secrets for steps”A step that calls your server may need an API key. A step that posts to Slack or Teams needs the channel’s address. Keep these as the app’s secrets, so the workflow names them and never holds them.
Only owners and admins can do this.
- Go to Settings › your app › Developers › Webhooks.
- Under Secrets for workflow steps, fill in a Name, such as
shop_keyorslack_sales: lower-case letters, digits and_. - Paste the Value.
- Press Keep.


A secret is never shown again. To change one, keep a new value under the same name: the button says Replace. To remove one, press Take away…. Steps that use it send nothing until a secret of that name is kept again.
An app can keep up to 20 secrets.
Call your server: Send a webhook
Section titled “Call your server: Send a webhook”Send a webhook sends the contact to one of your own servers. It can wait for the answer, save parts of it on the contact, and go one way if it worked and another if it didn’t. For example, to ask your shop for an order’s status.
Before you start: go to Settings › your app › Developers › Webhooks. Under Allowed hosts, add your server’s host, such as hooks.northwind.example, and save. Under Workflow steps’ signing secret, make a secret if there is none: webhook steps send nothing until there is one. Your server uses it to check each post (Webhooks).
- Press the + under a step, and choose Send a webhook.
- Choose the Method: POST, PUT, PATCH, GET or DELETE. A GET or DELETE sends no body: your server is told who it is about by the address.
- Fill in the Address, such as
https://hooks.northwind.example/crm. Its host must be one of the Allowed hosts. - Under What it carries, besides their id, tick the attributes your server needs, up to 20.
- To send a header, such as an API key, press Add a header. Fill in its Name, tick From one of the app’s secrets, and choose the Secret.
- To use the answer, tick Wait for the answer (see below).
Without Wait for the answer, the run goes on at once. If your server fails, the post is tried again for about twenty minutes. The run’s record says whether it arrived.
Use the answer
Section titled “Use the answer”With Wait for the answer ticked, the run waits for your server, for up to a day while it is tried again. The step then has two ways out: It worked for an answer of 2xx, and It failed for anything else.
To save parts of a JSON answer on the contact:
- Under Save parts of the answer, press Save a value.
- In Path, write where the value is in the answer, with keys joined by dots, such as
data.plan. A number picks an item from a list, such asitems.0.status. - Under Into, choose one of your custom attributes.
A text, a number or true or false is saved. A whole object or list is not.
An answer of 408, 425, 429 or 5xx, or no answer, is tried again, up to 10 times. Any other 4xx fails at once. Redirects are never followed.
Post to Slack or Teams
Section titled “Post to Slack or Teams”Post to Slack or Teams posts a message about the contact to one of your team’s channels. For example, to tell #sales a big account signed up.
Before you start: make an incoming webhook for the channel.
- Slack: its address starts
https://hooks.slack.com/. - Microsoft Teams: from a Teams workflow or connector.
Keep its address as one of the app’s secrets (Keep secrets for steps).
- Press the + under a step, and choose Post to Slack or Teams.
- Under Where, choose Slack or Microsoft Teams.
- Under Channel, choose the secret that holds the channel’s address.
- Write What it says, up to 2,000 characters.
{{first_name}}, or any attribute’s name, is the contact’s.{{event.plan}}is a detail of what started the run.
The run goes on at once. Its record says whether the message was posted.
To answer conversations from Slack, connect the Slack app instead (Answer from Slack).
Change the ticket
Section titled “Change the ticket”Change the ticket moves a ticket to another state, or marks it priority. It changes the conversation’s ticket, or the ticket the trigger’s event names.
- Press the + under a step, and choose Change the ticket.
- Under State, choose a state, or Leave it. Your own ticket states are listed too.
- Under Priority, choose Mark it priority, Take its priority off or Leave it.
See Tickets.
Answer with AI
Section titled “Answer with AI”In a help bot, the Answer with AI step answers the contact from your help articles. See Answer and write with AI.
Every year on a date
Section titled “Every year on a date”The trigger A date starts a workflow on a day worked out from a date the contact has, such as their birthday or a renewal. It uses the contact’s own time zone.
- Choose the trigger A date.
- Choose the Date attribute.
- Under Days after it (negative is before), choose how many days from the date, such as
-7for a week before. - Tick Every year.
- Press Settings at the top of the canvas, and tick A contact can go through it again after they finish. A yearly workflow needs it, so people enter again the next year.
Every year, the day can be at most 180 days from the date. A date of 29 February falls on the 28th in other years. The date itself doesn’t count: the first run is on its first anniversary.
Enrol people by hand
Section titled “Enrol people by hand”For a workflow whose trigger is Enrolled by staff:
- Open the workflow. It must be running.
- Press More, then Enrol contacts….
- Under Who, choose Pick contacts and add them, or A segment and choose one.
- Press Continue, then Enrol.
Each person starts at the trigger now. Anyone the workflow’s settings keep out, such as someone already in it, is left out.
If some people can’t be enrolled, the others still go in. A note in Settings › Workspace › Activity log names the people who could not be enrolled, and why.
From your backend
Section titled “From your backend”Your backend can enrol people too, by their external ids, up to 500 at a time. It needs a server key with the Workflows permission. See Enrol people in a workflow.
How long the help bot waits
Section titled “How long the help bot waits”When the help bot asks a question, suggests articles, or asks whether an answer helped, it waits one hour for the contact.
If the contact doesn’t answer within the hour, the bot says nothing more, and:
- if the contact wrote anything, the conversation is handed to its team, or to your default team;
- if they never wrote, the conversation is closed.
When a bot asks again after a wrong answer, the hour starts again.
On the workflow’s Runs, a run waiting for an answer says until when. A run that ran out says “the contact did not answer for 1 hour”.