A procedure is a step-by-step script your AI agent follows for a specific request, like a refund, a cancellation or a complaint, instead of improvising. Steps can ask questions, run actions and branch on conditions.

Open your agent and go to Procedures. Changes, including switching a procedure on or off, go live when you publish.
Start from a template
Templates include Order problem, Cancel subscription, Billing question, Talk to a person and Book a demo. Pick one and click Use template to get an editable copy. It starts switched off, so review it before you turn it on.
Create a procedure
- Click New Procedure.
- Give it a Name. It's shown in the chat log and analytics.
- Under When to use, describe the request it handles, for example "The customer wants to cancel their subscription".
- Write the steps, one instruction each, for example "Ask for the order number if you don't have it".
- Type
@to use one of the agent's actions in a step. - Type two curly braces to add a value such as the contact's name. Values can be empty, so write steps that still work without them.
- Type
- Add a branch when the next steps depend on something, for example "the order was delivered more than 30 days ago". The first part whose condition is true runs, then the procedure carries on with the next step. Some conditions can be checked exactly rather than by the AI.
- Switch it on and publish your agent.
If something needs fixing, like a step that names an action the agent doesn't have, the procedure shows Needs attention and the problems to fix before you can switch it on.
Limits
- Up to 15 instruction steps per procedure, counting steps inside branches.
- A branch has up to 5 parts: If, up to 4 Else if, and an optional Else.
- Up to 3 procedures per agent on the Free plan and 20 on paid plans. Up to 10 can be on at once.
See how they're doing
The procedures list shows how often each was triggered in the last 30 days, and a chart of procedures triggered and resolved per day. It counts live chats only, not the Playground or Tests. A procedure is Pending when the visitor hasn't replied for 30 minutes.
In Activity, each chat shows which procedure ran and which step it reached. Use the Procedure filter to see the chats where one procedure ran, and the Procedure result filter to see the chats whose latest procedure was resolved, handed off, left, pending or is still running. The two filters work together, for example to read every cancellation that was left halfway.
Tips
- Keep each procedure to one request.
- Test it with a test that expects Starts and Finishes the procedure. See Test your agent.