Procedures: repeatable workflows for your AI agent
Write plain-language, step-by-step procedures so your agent handles refunds, returns and other requests the same way every time.
Procedures give your agent a written playbook for each type of request. You describe the steps in plain language, and the agent follows them in the same order every time.
What a procedure looks like
A procedure is a short list of steps. For example, a refund request:
- Look up the order.
- If it is under 30 days old, offer a refund.
- Otherwise offer store credit, and escalate if the customer objects.
There is no flow chart to draw and no code to write. You can mention actions by name, such as looking up an order in Shopify or escalating to a human, and the agent uses them when the step calls for it.
Create one
- Open an agent and go to Build > Procedures.
- Select New procedure and give it a name, such as Refund request.
- Write the steps and save.
- Try it in Test > Playground. The answer shows which procedure the agent chose.
Keep them reliable
Write one procedure per kind of request, and keep each step to one decision. When the agent gets a case wrong, change the step that caused it and replay your saved conversations in Test > Tests before you publish.
Read the procedures overview, see how procedures run and visit the Procedures page.
See every update in one place.