AskMavis
HelpChangelogRoadmapFeedback
  • Getting started
  • Your AI agent
  • Actions and procedures
    • What actions do
    • Custom actions
    • Collect leads and data
    • Talk to a person
    • Procedures
    • Start a custom action from a template
    • Send to a webhook
    • Lookup table
    • Email the team
  • Install your agent
  • Helpdesk
  • Contacts
  • Help center and boards
  • Workspace and account
  • FAQ
Actions and procedures

Procedures

Give your agent step-by-step scripts for refunds, cancellations and other requests that need a set process.

AT
Written by AskMavis Team
Published 49m ago

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.

The Procedures tab of an AI agent, with the New Procedure button and the Procedures, Templates and Analytics tabs.

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

  1. Click New Procedure.
  2. Give it a Name. It's shown in the chat log and analytics.
  3. Under When to use, describe the request it handles, for example "The customer wants to cancel their subscription".
  4. 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.
  5. 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.
  6. 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.

Related

  • What actions do
  • Custom actions

Was this article helpful?

Contact support

Related articles

  • What actions doLet your AI agent do more than answer, from showing a button to calling your own API.
  • Custom actionsConnect your agent to your own API so it can look up orders, bookings and accounts.
  • Collect leads and dataHave your agent ask for contact details or the information a request needs, right in the chat.
  • Talk to a personChoose when visitors can reach your team, and what happens if nobody is free.
← Back to Help Center

On this page

  • Start from a template
  • Create a procedure
  • Limits
  • See how they're doing
  • Tips
  • Related
Powered by AskMavis