Procedures overview
Learn what procedures are, how to write one in plain language under Build > Procedures, and how they guide the agent through refunds, bookings and other tasks.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
A procedure is a set of plain-language, step-by-step instructions for one type of request. Sources tell the agent what is true. Procedures tell it what to do. Write a procedure for any request where the order of steps matters, such as refunds, order changes, bookings or account checks.
An example
Refund request
- Look up the order.
- If it was placed under 30 days ago, offer a refund.
- Otherwise offer store credit, and escalate to a human if the customer objects.
The agent follows these steps in the conversation, asks for any missing detail and uses the connected actions to carry them out. The number of days here is an example. Use your own policy.
Write a procedure
- Open the agent and select Build > Procedures.
- Select New procedure.
- Enter a Name, for example
Refund request. - Write the When to use line: "The customer asks for a refund or says an item was wrong or damaged."
- Write the Steps, one action each, in plain language.
- Select Save.
You should see the procedure in the list with a status of Draft until you publish the agent. Then try it in the Playground.
What makes a good procedure
- One goal. A procedure for refunds should not also cover exchanges.
- Short steps. "Ask for the order number" is better than a paragraph.
- Decisions in the open. Write the condition and each outcome: "If the order has shipped, share the tracking link. If not, offer to cancel."
- Names of actions. Mention the action when you want it used: "Use Collect data to get the order number." The list of actions is in Actions overview.
- A way out. Say when to escalate: "If the customer asks for a person, escalate."
Tip: Write the procedure the way you would explain the task to a new colleague on their first day.
Procedures, sources and actions
| Part | Role |
|---|---|
| Sources | The facts: policies, product details and help articles. |
| Procedures | The method: what to ask, check and do, in order. |
| Actions | The tools: look up an order, collect data or escalate. |
A procedure uses facts from sources, and calls actions at the right step. If a procedure says "offer a refund" but your policy lives in a source, the agent combines the two.
How the agent chooses
The agent reads the When to use line of each procedure and picks the one that fits the conversation. See how procedures run for the details, including what happens when two procedures could apply.
Keep procedures current
Edit a procedure when your policy changes, and run your tests before publishing. Every change is saved in versions, so you can go back. Backstage can also propose procedure changes from failed conversations, which you approve.