Letting your AI agent run workflows
Your AI agent answers customers in live chat and on every other channel that it is assigned to. It can answer questions, ask for details, send links and transfer the conversation to a person. A workflow lets it do work outside the conversation: book a call-back, send the issue to your team as a ticket, add a hot lead to your pipeline or look up an order.
Use a workflow only for work that the agent cannot do on its own, or has not been set up to do. If the agent can already answer from its knowledge, it does not need a workflow.
Use a workflow only for work that the agent cannot do on its own, or has not been set up to do. If the agent can already answer from its knowledge, it does not need a workflow.
Before you start
- You are a property admin. Only admins can create and manage workflows.
- AI Assist is set up, with at least one AI agent.
- You know the basics of workflows. See Getting started with Workflows.
How an agent starts a workflow
There are three ways:
- As a tool: you give the workflow an AI agent trigger. The agent decides when to use it during a conversation and fills in the details, for example the visitor's phone number.
- From a Scenario: the workflow starts in the background each time the scenario matches.
- When the agent cannot answer: the workflow starts in the background from the agent's Escalation settings.
Use a workflow as a tool
Step 1: Add the AI agent trigger
- Go to Automations > Workflows.
- Click Create workflow.
- Click Choose a trigger.
- Under Other, click AI agent.
- Select a Mode:
- Async: the agent keeps talking to the visitor while the workflow runs. Use it when the visitor does not need the result, for example for a ticket or a call-back task.
- Sync: the agent waits a short time for the result. Use it when the agent needs the result for its reply, for example an order status.
- Type the Tool description.
- Select the agents that can use the workflow: All AI agents, or Custom agents to pick specific agents.

The Tool description tells the agent when to use the workflow and what to ask first. A good description has three parts:
Look up the status of an order. Ask the customer for their order number and the email address they used at checkout first.
- The task: "Book a call-back…" or "Send the conversation to the support team…"
- When to use it: "…when the visitor asks for a call" or "…when you cannot solve the issue."
- What to ask first: "Ask for their email address first."
Look up the status of an order. Ask the customer for their order number and the email address they used at checkout first.
Step 2: Tell the agent what to collect
Inputs are the details that the agent collects from the conversation and passes to the workflow. If you add no inputs, the agent sends a short summary of the conversation instead.
- Under Inputs the agent should provide, click Add input.
- Type a Name, for example orderNumber.
- Type a Description, for example The order number the customer mentioned.
- If the workflow cannot work without this input, turn on Required.
- Repeat steps 1 to 4 for each input.

Each name must be unique, start with a letter and use only letters, numbers and underscores. You can add up to 10 inputs. Write each description as an instruction to the agent: say exactly what goes in the input.
Step 3: Use the inputs in your steps
Each input becomes runtime data under trigger, with the name that you gave it. The run also knows which conversation started it: {{trigger.conversationId}} and {{trigger.channel}}.
For example, a call-back task can use:
For example, a call-back task can use:
- Activity title: Call back {{trigger.name}} on {{trigger.phone}}
- Description: Preferred time: {{trigger.preferredTime}} and Reason: {{trigger.reason}} on two lines

For all the details that a run can use, see Using runtime data in workflows.
Step 4: Stop duplicate tickets and tasks
Some tasks must happen only one time in a conversation, for example a new ticket. For these, turn on Run at most once per conversation. If the agent tries to start the workflow again in the same conversation, it gets the earlier run instead.
Step 5: Add steps, save and turn on
- Add the steps that the workflow does.
- In Settings, type a clear Name and Description.
- Click Create.
- Turn on Enabled.
- Click Save.
Important: If you selected All AI agents, every agent can use the workflow as soon as you enable it. To try it with one agent first, select Custom agents.
Step 6: Turn on the workflow for your agent
- Go to Automations > Agents.
- Open your agent.
- Click Tools.
- Click the Workflows tab.
- Turn on the switch next to the workflow.

If you see one of these labels next to a workflow, the agent cannot use it yet:
- Not agent-enabled yet: the workflow has no AI agent trigger.
- Workflow is disabled: turn on Enabled in the workflow's Settings.
Start a workflow in the background
A background workflow starts without the agent choosing a tool. The agent fills in its inputs from the conversation.
- From a Scenario: in the scenario's settings, select a Background workflow (optional). The workflow starts each time the scenario matches. See Creating Scenarios for your AI agent.
- When the agent cannot answer: in the agent's Escalation settings, select a Background workflow (optional). The workflow starts when the agent cannot answer.
Test with your agent
- Open the chat preview of your agent, or the bot tester.
- Start a conversation that should start the workflow.
- Open the workflow's Runs tab. Runs from your agent show Agent as the trigger. Runs from the preview show Agent test as the source.
To read a run and fix errors, see Testing, monitoring and troubleshooting workflow runs.
AI credits
A workflow uses AI credits in these cases:
- AI steps use credits each time they run.
- Background workflows use credits each time a Scenario or the Escalation setting starts them. One model call fills in the workflow's inputs from the chat, and that call uses credits.
Limits and edge cases
- 10 workflows per agent: you can turn on as many workflows as you want for an agent, but it can use only 10 as tools in a conversation. If you turn on more, it uses the oldest 10, and the Workflows tab shows a warning. Turn off the ones it does not need.
- Background workflows and the limit: a background workflow still starts when the agent has more than 10 workflows turned on. A workflow that a Scenario step refers to does not: the agent drops that reference.
- Run at most once per conversation: if the earlier run failed before any step did its task, the workflow can start again. This can happen up to 3 times in each conversation.
- Template inputs: templates from the AI agent category come with their inputs set, and you cannot change them on the screen. Use the names that the template gives, for example {{trigger.phone}}.
- Hobby plan: the Background workflow (optional) option in Escalation settings needs a paid plan.
- Deleted workflows: after you delete a workflow, your agent can no longer start it, as a tool or in the background. If the agent's instructions name the workflow, remove it from them before you save again.
Related guides
Have a question we haven't covered or need support?
- Chat with us (live chat is available 24/7)
- Visit our Feedback page
- Schedule a call with us
