Skip to content

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.

  1. Go to Workflows.
  2. Press New workflow.
  3. Pick a template. Each starts as a draft, and any message it writes waits as a draft too. Nothing reaches anyone until you publish.
The templates, under Journeys and Help botsThe templates, under Journeys and Help bots
The templates, under Journeys and Help bots
TemplateWhat it does
Welcome new contactsA day after someone signs up, shows them a welcome post in the app.
Onboarding tipsAn 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 finishWhen someone does one thing and not the next within a day, sends them a push. You choose the two events.
Ask for feedbackWhen someone has opened the app ten times in a month, asks how likely they are to recommend it.
Win back quiet contactsEmails someone who hasn’t been seen for 30 days, late in the morning where they are.
Help botGreets a new conversation, suggests help articles, and hands over to your team when they don’t help.
Rate the helpAn hour after a conversation is closed, asks the contact to rate the help they got, at most once a week.
Route your best contactsSends a new conversation from someone who has opened the app 100 times or more straight to a team you choose.
Order status botAsks for an order reference, looks it up on your shop’s server, and says where the order is.
Blank journey, Blank help botStart 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.

A workflow can send a push, email, in-app message or survey. The message must be one made for workflows.

  1. Go to Messages and make the message, or open one.
  2. 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.
  3. Go to Workflows and open the workflow.
  4. Press the + under a step, and choose Send a message.
  5. Under Message, choose it. Only messages sent Only from a workflow are listed. To write a new one here, press New message….
  6. 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.

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.

  1. Go to Settings › your app › Developers › Webhooks.
  2. Under Secrets for workflow steps, fill in a Name, such as shop_key or slack_sales: lower-case letters, digits and _.
  3. Paste the Value.
  4. Press Keep.
The Webhooks tab: allowed hosts, the steps' signing secret and the secrets for stepsThe Webhooks tab: allowed hosts, the steps' signing secret and the secrets for steps
The Webhooks tab: allowed hosts, the steps' signing secret and the secrets for steps

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.

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).

  1. Press the + under a step, and choose Send a webhook.
  2. 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.
  3. Fill in the Address, such as https://hooks.northwind.example/crm. Its host must be one of the Allowed hosts.
  4. Under What it carries, besides their id, tick the attributes your server needs, up to 20.
  5. 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.
  6. 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.

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:

  1. Under Save parts of the answer, press Save a value.
  2. 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 as items.0.status.
  3. 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 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).

  1. Press the + under a step, and choose Post to Slack or Teams.
  2. Under Where, choose Slack or Microsoft Teams.
  3. Under Channel, choose the secret that holds the channel’s address.
  4. 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 moves a ticket to another state, or marks it priority. It changes the conversation’s ticket, or the ticket the trigger’s event names.

  1. Press the + under a step, and choose Change the ticket.
  2. Under State, choose a state, or Leave it. Your own ticket states are listed too.
  3. Under Priority, choose Mark it priority, Take its priority off or Leave it.

See Tickets.

In a help bot, the Answer with AI step answers the contact from your help articles. See Answer and write with AI.

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.

  1. Choose the trigger A date.
  2. Choose the Date attribute.
  3. Under Days after it (negative is before), choose how many days from the date, such as -7 for a week before.
  4. Tick Every year.
  5. 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.

For a workflow whose trigger is Enrolled by staff:

  1. Open the workflow. It must be running.
  2. Press More, then Enrol contacts….
  3. Under Who, choose Pick contacts and add them, or A segment and choose one.
  4. 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.

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.

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”.