1. All Collections
  2. Automation
  3. Getting Started with Workflows

Getting Started with Workflows

Learn how to automate the routine work in your inbox with workflows.

Table of contents
  1. Before you start
  2. How a workflow works
  3. How to create a workflow
  4. Available triggers
  5. Available actions
  6. Workflow statuses
  7. Workflow statistics
  8. The run log
  9. How to edit a workflow

Workflows handle the repetitive inbox tasks your team does by hand. They can send a returning contact back to the agent who helped them last time, add a topic when the AI agent escalates a conversation, or leave a note for your team after an unhappy survey rating.

A workflow is one rule: when something happens and the conditions match, then the actions run in order. You set it up once, and BusinessChat runs it every time the trigger fires.

Before you start

  • Who can use workflows: only users with the Owner or Admin role can see and edit the Workflows page.
  • Where to find it: go to Automations and open the Workflows tab.
  • What you need set up first: the teams, users, conversation topics, contact tags, ticket and task types, and approved WhatsApp templates your actions will use. A workflow can only use what already exists in your account.

How a workflow works

Every workflow has three parts: a trigger, optional trigger filters, and one or more actions.

1. When (the trigger)

The trigger is the event that starts the workflow, for example When a ticket is created. Each workflow has exactly one trigger. You can't change it after the workflow is saved. To react to a different event, create a new workflow.

2. Trigger filters

Filters narrow down which events the workflow reacts to. For example, you can run a When the session is closed workflow only when Closed by is The AI. If you leave the filters empty, the actions run every time the trigger fires.

You can combine conditions with AND and OR, with one level of grouping. For example, on a survey rating workflow: (Rating is Unhappy AND Team is Support) OR Rating is Neutral.

3. Then (the actions)

Actions are what the workflow does. They run in the order you list them. If one action fails, the run stops and the actions after it don't run.

The actions you can choose depend on the trigger, so pick the trigger first. Some action fields can use values from the trigger, such as the contact's name or a link to the conversation. Type @ in the field to add one.

Note: Several workflows can use the same trigger, and if they all match an event, they all run. The editor lists the Other workflows on this trigger and marks the ones that also match the same event. Check that their actions don't conflict.

How to create a workflow

  • Go to the Automations page and open the Workflows tab. Click New workflow. If you don't have any workflows yet, click Create your first workflow.

  • Name the workflow: click Name this workflow at the top and type a name your team will recognize, for example "Send returning contacts to their last agent".
  • Choose the trigger: under WHEN, open Choose what starts this workflow and pick a trigger from the list.

  • Add trigger filters (optional): under Trigger filters, click Add condition. Choose a field, a comparison (for example is or is one of) and one or more values. Skip this step if the workflow should run every time the trigger fires.

  • Add actions: under THEN, click Add action and choose what should happen. Fill in the action's settings. Add more actions if you need them. Use the action menu to Move up, Move down, Duplicate or Remove an action.

  • Save: click Save. If something is missing, a Finish these before saving message lists what to fix, such as a missing name or an action that isn't set up yet.

The workflow goes Live as soon as you save it and runs the next time its trigger fires.

Important notice: A workflow only reacts to events that happen after it goes live. It doesn't run for conversations or tickets that already matched before you saved it.

Available triggers

Triggers are grouped by what they react to: conversations, tickets, tasks, incidents and contacts. Triggers marked with a timer need a Duration. The filters are checked when the timer ends.

Conversation triggers

Every conversation trigger can be filtered by Conversation status, Team, Assignee, Topics, Contact language and Opt-in status.

TriggerWhen it firesExtra filters
When the contact starts their first sessionA contact opens a conversation with you for the first timeNone
When the contact starts a new sessionA contact opens any new conversationNone
When the session is reassignedA conversation moves to another team or userReassigned to, Reassigned by
When a topic is addedA topic is added to a conversationNone
When the session is escalated from AIYour AI agent hands a conversation to your teamNone
When a contact doesn't reply (timer)The contact hasn't replied for the duration you setNone
When a user doesn't reply (timer)Your team hasn't replied for the duration you setNone
When a WhatsApp 24-hour window closesThe 24 hours to reply freely on WhatsApp run outNone
When a survey rating is receivedA contact answers the satisfaction surveyRating (Unhappy, Neutral or Happy)
When the session is closedA conversation is closedClosed by (The AI, A user, The contact or The system)

Ticket triggers

Every ticket trigger can be filtered by Stage (New, Working, Pending customer, Done or Cancelled), Assignee, Ticket type and Status.

TriggerWhen it fires
When a ticket is createdA new ticket is opened
When a ticket's status changesA ticket moves to another status
When a ticket's assignment changesA ticket is assigned to another team or user
When a ticket's SLA is approaching (timer)A ticket is the duration you set away from missing its SLA
When a ticket's SLA is breachedA ticket misses its SLA target
When a ticket is resolvedA ticket is marked as resolved
When a ticket is reopenedA resolved ticket is opened again

Task triggers

Every task trigger can be filtered by Task type.

TriggerWhen it firesExtra filters
When a task is createdA new task is createdNone
When a task's assignee changesA task is assigned to another team or userTask assignee
When a task's status changesA task moves to another statusTask status
When a task's due date is approaching (timer)A task is the duration you set away from its due dateNone
When a task passes its due dateA task is still open after its due dateNone

Incident triggers

Both incident triggers can be filtered by Incident type.

TriggerWhen it firesExtra filters
When an incident is createdA new incident is openedNone
When an incident's status changesAn incident moves to another statusIncident status

Contact triggers

Both contact triggers can be filtered by Contact language and Opt-in status.

TriggerWhen it firesExtra filters
When a tag is added to a contactA contact tag is set on a contactAdded tag
When a tag is removed from a contactA contact tag is taken off a contactRemoved tag

Available actions

The action list only shows the actions that fit your trigger. The Available on column says which triggers offer each one.

Conversations and contacts

ActionWhat it doesAvailable on
Assign to team or userAssigns the conversation to a team, a user, The user from the previous session or An adminConversation and contact triggers
Add conversation topicAdds one or more topics to the conversationConversation triggers
Remove conversation topicRemoves one or more topics from the conversationConversation triggers
Add noteLeaves an internal note on the conversation. Your team sees it in the inbox; the contact never does.Conversation and contact triggers
Open conversationOpens a conversation with the contactConversation and contact triggers
Close conversationCloses the conversationConversation and contact triggers
Send WhatsApp templateSends an approved template. Choose the Template, the Language, which number to Send from, and fill in the template variables.Conversation and contact triggers
Send satisfaction surveySends your satisfaction survey to the contactConversation triggers
Update contact custom fieldSets a Custom field on the contact to the Value you typeConversation and contact triggers
Add contact tagSets a contact tag on the contactConversation and contact triggers
Mark contact as unsubscribedOpts the contact outConversation and contact triggers
Block contactBlocks the contactConversation and contact triggers

Work items

ActionWhat it doesAvailable on
Create ticketOpens a ticket with the Ticket type, Title, Description, Assign to and Fields you chooseConversation and contact triggers
Change ticket statusMoves the ticket to the Status you chooseTicket triggers
Assign ticketAssigns the ticket or incident to a team or userTicket and incident triggers
Create taskCreates a task with a Task type, Title, Description, Assign to and an optional Due time (from In 1 hour to In 1 week)Conversation, contact and ticket triggers
Create sub-taskCreates a task under the ticket, with the same settings as Create taskTicket triggers
Change task statusMoves the task to the Status you chooseTask triggers
Assign taskAssigns the task to a team or userTask triggers

Notifications

ActionWhat it doesAvailable on
Notify users on WhatsAppSends a WhatsApp template to the Users and teams you pick. If you pick no one, it goes to all admins.Conversation and contact triggers
Send webhookSends a JSON Body to a URL in your own system. You can add basic authentication and headers.All triggers

AI agent

ActionWhat it doesAvailable on
Agent taskGives your AI agent Instructions and one Action the AI agent runs. The agent runs that action only when your instructions apply, and fills in its settings itself.All triggers

Tip: If an action has nothing to do, the run log shows it as Skipped, not Failed. For example, Close conversation is skipped when the conversation is already closed.

Values you can use in actions

When a field accepts values from the trigger, type @ to pick one. The list only shows values the chosen trigger provides.

  • Contact: Name, Phone, Language
  • Conversation: Link, Assignee, Team, Topics
  • This trigger: for example Closed by, Reassigned to, Escalation reason, Rating, Added tag, Removed tag, Object type and Object ID
  • Earlier agents: the summary of an Agent task earlier in the same workflow
  • This run: Workflow name

Workflow statuses

The workflows list shows each workflow's status. Use the All, Live, Paused, Pending and Deactivated tabs to filter it.

  • Live: the workflow runs every time its trigger fires and its filters match.
  • Paused: the workflow is saved but doesn't run until you activate it again.
  • Pending: the workflow sends a WhatsApp template that Meta hasn't approved yet. It goes live by itself once the template is approved.
  • Deactivated: the workflow stops running and moves out of the main list. You can activate it again later.

Changing the status

Open the workflow, click More, and choose Activate workflow, Pause workflow or Deactivate workflow. Confirm your choice in the window that opens.

Paused by the system

BusinessChat pauses a workflow by itself when it can't run. Hover over the status to see the reason:

  • Your subscription is inactive.
  • Your monthly workflow executions are used up and your wallet has no balance.
  • A template the workflow sends can't be sent right now.
  • Your plan allows fewer active workflows than you have. Activate the ones you want to keep running.

The workflow resumes automatically once the cause is fixed. While it's paused by the system, you can only deactivate it.

Workflow statistics

Open a workflow from the list to see its statistics for the Last 24 hours, Last 7 days or Last 30 days.

  • Started: runs where the trigger fired and the filters matched.
  • Completed: started runs where every action finished.
  • Failed: started runs where an action failed.

The workflows list also shows each workflow's runs and the share that failed, so you can spot a problem without opening every workflow.

The run log

The run log lists every run of a workflow and what happened in it. Click Run log to open it. Use the All runs, Completed, Skipped and Failed filters to narrow it down.

Each row shows when the run started, the workflow version it used, the conversation or ticket it ran on, whether the filters matched, the outcome and how long it took. Click a row to open the Run detail. It shows each action's result and the reason for any failure. From there, click Open conversation or Open ticket to jump to it.

Common reasons a run fails

  • The AI agent is handling this conversation. Workflows don't act on conversations your AI agent owns.
  • The conversation needs a topic before it can be closed. Add an Add conversation topic action before Close conversation.
  • The user is deactivated or The team no longer exists. Update the Assign to setting.
  • A topic is archived. Choose another topic in the action.

When an action fails, the actions after it don't run.

How to edit a workflow

You can edit a live workflow without pausing it. Every save creates a new version (v1, v2, v3 and so on), and the newest one goes live right away.

  1. Open the workflow and make your changes to the filters or actions.
  2. Click Save.

Runs that already started finish on the version they started with. New runs use the new version.

Note: You can't change a workflow's trigger. To react to a different event, create a new workflow.

Going back to an earlier version

  1. Open the workflow and pick an older version from the Version menu.
  2. Click Put live and confirm.

That version becomes the live one. The run log's Version column shows which version each run used.

Tip: If a teammate saves the same workflow while you have it open, BusinessChat warns you before you save. You can Save anyway to replace their version, or load theirs and discard your changes.