Guides

How to write procedures an AI support agent will follow

A procedure is a short decision script. Learn how to capture what your best support person does and write it as steps an AI agent can follow, with conditions and handovers.

By the Askocto team · · 6 min read

To write procedures an AI support agent will follow, take one request your best person handles well, such as a refund, a lost order or a plan change, and write it as numbered steps with explicit conditions and clear handover points. Plain language is enough. This guide shows how to capture the steps, what every procedure needs, and how to test that the agent follows it.

In short: A procedure is a short decision script. State when it applies, what to check, what to do in each case, what never to do, and when to stop and pass the conversation to a person.

Content answers questions, procedures handle requests

A help article says "Refunds are available within 30 days of delivery." That answers a question. A procedure covers what happens when a customer writes "I want my money back for order 4821." Someone has to find the order, check the date, ask about the condition, decide, act and explain.

Use a procedure whenever a request needs checks or an action. Typical candidates:

  • Refunds and returns
  • Lost or delayed orders
  • Cancellations and plan changes
  • Address or detail changes
  • Account access problems
  • Warranty or damage claims

Plain questions that only need information ("What are your opening hours?") belong in your knowledge base, not in a procedure.

With Askocto you write procedures in plain language, as the steps your best person follows, and the agent follows them. It can also take actions in connected systems and hand over conversations it cannot finish, so a procedure can end in a real outcome rather than just advice.

Start with your best person, not the policy document

A policy states the rule. Your best person knows what actually happens: the order in which they check things, the exceptions they allow and the words they use. Capture that.

  1. Pick one request type.
  2. Sit with the person, or read ten of their recent tickets, and ask them to narrate what they do.
  3. Write down every check, including the ones they do without thinking, such as glancing at the customer's order history.
  4. Ask: "When would you not do this?" The answers are your conditions.
  5. Ask: "When do you ask someone else?" The answers are your handover points.

The last two questions matter most. A first draft written from a policy document usually has a happy path and nothing else.

The parts of a good procedure

Every procedure should answer the same seven questions.

  • Trigger: when does it apply, in the customer's words?
  • Information needed: what must the agent have before acting, such as an order number and the email used at checkout?
  • Checks: which facts must be verified, and where do they live?
  • Steps: numbered, one action each, in the order your best person does them.
  • Outcomes: what the agent tells the customer for each result.
  • Limits: what the agent must never do or promise.
  • Handover: when to stop, and what to include in the summary.

If you cannot fill in one of these, the process is not clear enough yet, for the agent or for a new hire.

Example: a refund procedure

Here is a sample. The policy, the 30-day window and the order limit are made up for illustration. Replace them with your own.

Procedure: Refund request

Applies when: the customer asks for money back on an order.

You need: the order number and the email used at checkout.
If either is missing, ask for it. Never guess.

1. Look up the order. If the email does not match, say you cannot
   find the order and offer to pass the request to the team.
2. Check the delivery date. If it was more than 30 days ago,
   go to step 6.
3. Ask for the reason in one question.
4. If the item arrived damaged or wrong, ask for a photo, then
   start the refund. Say it returns to the original payment
   method and when to expect it.
5. If the customer changed their mind and the item is unused,
   start the refund and send the return instructions.
6. If the order is outside the window, say so kindly, explain the
   policy in one sentence and offer to pass it to the team.
7. Hand over to a person if the order total is above 200, the
   customer mentions a chargeback or legal action, or the
   customer asks for a human.

When you hand over, write a summary: order number, reason,
what you checked and what the customer wants.

Notice what the example does. Each step is one action. Conditions are checkable facts, not judgment calls. The ending for every branch is defined, including the one where the answer is no.

Write conditions and limits as facts, not feelings

Vague instructions get vague behavior. Rewrite every "use judgment" line into something the agent can check.

Vague Specific
Be flexible with loyal customers If the account is older than 12 months and this is the first refund request, approve without a photo
Escalate big orders Hand over if the order total is above 200
Use judgment on damaged items Ask for a photo; if it shows damage, approve; if none arrives in the chat, hand over
Don't over-promise Never state a delivery or refund date unless the order system shows it

A few rules of thumb:

  • Use numbers and field names where you can.
  • Keep one condition per sentence.
  • Put an exception next to the step it affects, not in a list at the bottom.
  • Keep tone and style out of procedures. Those belong in a separate voice guide; see how to set your AI agent's tone of voice.

Decide the handover points on purpose

Every procedure needs a way out. There are three kinds of exit:

  1. The customer asks. If someone requests a person, give them one. Do not make them argue with the procedure.
  2. The procedure cannot decide. Required information is missing, systems disagree or the case does not match any branch.
  3. The risk is too high. Money above a threshold, legal language, safety issues, or an upset customer who has already tried twice.

For each exit, write what the human receives. A good summary lets the person start with the answer, not a question. The design of that summary is covered in AI to human handoff: how to design it so nobody repeats themselves.

Test each procedure with real cases

Before you trust a procedure, replay real past tickets for that request. Take about ten: a few normal ones, a few edge cases, a couple where the customer gives wrong details, and a couple where the customer is angry. Check three things for each:

  • Did the agent follow the steps in order?
  • Did it stop where it should?
  • Did it say the right thing for the outcome?

Askocto's test runs replay real past conversations before anyone sees the agent, so you can see the answers and which source or procedure was used. The method is laid out in how to test an AI support agent before customers see it.

When the agent gets a case wrong, the usual cause is an ambiguous step, not a stubborn agent. Fix the wording, then re-run the same cases.

Keep procedures short and owned

Start with the two or three requests that take the most of your team's time. 15 customer support tasks you can automate this quarter can help you pick. Give each procedure an owner, and review it whenever the policy behind it changes. A procedure that quotes an old refund window does more harm than none at all.

When you are ready to try writing one, you can sign up and start with a single request type.

Frequently asked questions

How long should a procedure be?

As long as the real process, and no longer. Most are between five and twelve steps. If one runs much longer, split it by outcome, for example a separate procedure for damaged items.

Can the agent handle cases I did not write down?

It will try, and that is where mistakes happen. Add a final step to every procedure: if the case does not match any branch, hand over with a summary.

Where do tone and wording rules go?

Keep them separate from the steps. A procedure says what to do; a voice guide says how to sound. Mixing them makes both harder to maintain.

Should I write one procedure per request type or one large one?

One per request type. Short, focused procedures are easier to test, easier to update and less likely to clash with each other.

Train an agent on your own help center

Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.

Keep reading

All articles
Guidesconnect ai agent helpdesk crm
Oct 27, 20267 min read

Connect an AI agent to your helpdesk and CRM: what to sync

Connecting an AI agent to your helpdesk and CRM is four decisions: what it reads, what it writes back, which actions it may take and how you prevent duplicates. Here is how to make each one.

Read article
Guidestest ai support agent
May 20, 20266 min read

How to test an AI support agent before customers see it

Replay real past conversations, score every answer, throw tricky questions at the agent and set a pass mark before launch. A practical method with a scoring table.

Read article