Skip to the content

Procedures

Write down how your business handles one task, such as a refund, a booking or a complaint. The assistant loads those instructions only while a conversation needs them, so it handles the task the same way every time.

Where
Assistant menuConfigureProcedures
Permission
Needs Change assistant setup
Time
20 min read
Markdown
01 / 05A procedure for one task. Each row is one task. The dot says whether it is live, and the badge says which kind it is.
  1. A procedure for one task. Each row is one task. The dot says whether it is live, and the badge says which kind it is.
  2. Edit the instructions. Every edit saves to the draft. Customers keep getting the live version until you publish.
  3. Insert a reference. Type / or click Insert to add a tool, a document or a variable as a chip.
  4. Try it before customers do. Test opens the Playground with the draft loaded.
  5. Publish. Publishing makes the draft version 3. Conversations already in the procedure finish on the version they started.
The story

How a procedure runs

Follow one refund from the customer's phone to your dashboard.

1

A customer asks for something

Omar writes in on WhatsApp. The assistant reads the message with its usual instructions and knowledge.

Alongside them it has a short list of the procedures it may start: each one's key and trigger. Only published procedures that are switched on and have a trigger are on that list.

2

The assistant starts the procedure

When a message matches a trigger, the assistant starts that procedure before it replies, even when it thinks it already knows what to do.

The procedure's instructions are added for as long as it runs, together with any tools and documents that are set to be available only inside procedures. The customer never hears about procedures or keys.

3

It follows your steps in its own words

The assistant works through the instructions you wrote, asking only for what is missing and using the tools the procedure names.

Because the instructions are free-form, the assistant adapts them to the conversation. If you need fixed questions in a fixed order, use a structured procedure.

4

It ends the procedure

The assistant ends a procedure when the task is done, when the customer drops it, or when it hands the conversation to a person. The outcome is recorded as completed, cancelled or handed off.

The conversation carries on with the assistant's normal instructions, so the next request starts fresh.

5

You see how it went

Open the procedure and click Show details: the panel lists the last 30 days of runs, how they ended and the average number of turns, with a link to the conversations that ran it.

Playground tests never count, so the numbers show real customers only.

01 / 05A customer asks for something. The message arrives like any other.
  1. A customer asks for something. The message arrives like any other.
  2. The assistant starts the procedure. The message matches the trigger, so the procedure starts before the assistant answers.
  3. It follows your steps in its own words. A free-form procedure guides the assistant; it still talks naturally.
  4. It ends the procedure. When the task is done the procedure ends with an outcome, and its instructions unload.
  5. You see how it went. Each run counts in the procedure's Details panel.

What a procedure is

A procedure holds the instructions for one task: booking a room, handling a refund, checking someone's identity. The assistant starts it when a customer's message matches its trigger, follows it, and ends it when the task is done.

While it runs, the procedure brings only the tools and documents that task uses. This keeps the assistant's main instructions short and makes its behaviour on each task predictable.

KindWhat it isChoose it for
Free-formWritten instructions the assistant adapts. It follows them in its own words.Most tasks: refunds, complaints, bookings, questions that need judgement.
StructuredFixed steps that always run in the same order: questions, checks, tools and exact wording.Identity checks, payments and other strict scripts. See Structured procedures.

Procedures sit beside the workflow, which plans a whole conversation in stages. A workflow stage can start procedures, and procedures stay available everywhere. Events from your own app can start a procedure too.

Who can do what

ToYou need
See proceduresSee assistant setup
Create, edit drafts, rename, move, reorder, switch on or off, delete, Generate from documentChange assistant setup
Publish and Restore as draftPublish changes
TestPermission to use the Playground

Without the right to change assistant setup, the editor opens read-only.

Create a free-form procedure

GoalA published procedure the assistant uses with customers.

  1. 1

    Open ConfigureProcedures and click Add

    Choose New free-form procedure. To put it straight into a folder, use the folder's own New procedure in … instead.

  2. 2

    Name it and click Create

    Give it a name your team recognises, such as Refund request. Below the name you see the key it will get, for example refund_request. Pick a Folder if you use them.

    The procedure is created as an unpublished draft.

  3. 3

    Write the Trigger

    One sentence, from the customer's side: When the customer asks for a refund or says an order was wrong or missing.

  4. 4

    Write the Instructions

    The steps, in plain words. Type / to insert tools, documents, other procedures and variables.

  5. 5

    Click Test

    The Playground opens with this draft loaded. Talk to the assistant as a customer would.

  6. 6

    Click Publish

    Add a note about what changed if you like, then confirm. Customers get the procedure from their next message.

Writing the trigger

The trigger tells the assistant when to start the procedure. Write it from the customer's side, as a situation: When the customer wants to book or change a table. The assistant starts the procedure when a message matches it.

  • Keep it to one task. If two tasks share a trigger, split them into two procedures.
  • Say what the customer wants, not what the assistant does.
  • Leave the trigger empty to make a sub-procedure: one that only another procedure can start. The editor shows the warning No trigger: only another procedure can start this one. This is allowed.

The key

The assistant knows each procedure by a key made from its first name: lowercase letters, digits and underscores, up to 40 characters from the name. Book a room becomes book_a_room. A name with no Latin letters, such as one written only in Arabic, becomes procedure. A key that would start with a digit gets p_ in front, and a key that is already taken gets _2, _3 and so on.

The key never changes, even when you rename the procedure, so references to it keep working. Copy it from the status line under the name; the dashboard confirms with Key copied.

The procedures list

The list on the left holds every procedure of this assistant. Folders come first, A to Z, then procedures with no folder. Each row shows a status dot, the name, a Draft pill when there are unpublished changes, and the kind.

Live and onPublished and switched on: the assistant can start it.
Switched offPublished but switched off: it never runs, not even as a sub-procedure.
Never publishedA draft only, shown as a hollow dot. Nothing reaches customers.

Folders

Folders keep a long list tidy. Click AddNew folder…, name it, and click Create folder. A folder stays once a procedure is in it. To move a procedure, open its menu Actions for … and choose Move to folder, or pick No folder to take it out. Folders collapse and expand, and your browser remembers which are open.

Sorting and order

Sort offers Manual order (the default), Name and Last updated. In manual order you rearrange procedures by dragging, or with Move … up and Move … down. The manual order is shared with everyone, and it is also the order in which procedures are listed to the assistant. To rearrange while another sort is chosen, switch back to manual order first.

Search procedures matches a procedure's name, key, trigger or folder, in any case.

The instructions editor

Write the instructions as you would brief a new team member. The editor supports paragraphs, headings (levels 1 to 3), bulleted and numbered lists, bold, italic, inline code and line breaks. It does not keep quotes, code blocks, rules, strikethrough, underline or links.

/Open the insert menu
CtrlBBold
CtrlIItalic

The insert menu

Type / in the text, or click Insert. Keep typing to filter: every word you type must appear in an item's name or description. The menu shows its groups in this order.

GroupWhat it offers
FormatHeading 1, Heading 2, Heading 3, Bulleted list, Numbered steps
ToolsThe tools connected to this assistant, by name, with their description.
System toolsHeyServo's built-in tools (listed below).
Knowledge baseDocuments attached to this assistant, by file name.
ProceduresThis assistant's other procedures, by key. A procedure cannot insert itself.
VariablesValues the assistant always knows, such as {{customer_name}}.

Reference chips

Each reference shows as a chip in the text. You can also type a full reference by hand, or paste text that contains them: it turns into chips. Copying a chip copies its reference text.

ChipWritten asLooks like
A connected tool[[tool:get_room_types]]Amber, with a wrench
A built-in tool[[system:end_conversation]]Teal, with a gear
A knowledge documentA reference to the documentBlue, with a file icon, showing its current file name
Another procedure[[procedure:cancel_booking]]Violet, showing the key
A variable{{customer_name}}Grey

Documents are referenced by the document itself, not its name, so renaming a file never breaks a procedure. A chip turns red and struck through when what it points to is gone: a tool that does not exist, a deleted document, a missing procedure, or a procedure pointing at itself. A tool switched off for this assistant shows a note when you hover it.

Built-in tools you can reference

AreaTools
Knowledge and peoplesearch_knowledge, request_human_handoff, end_conversation
Callstransfer_call, hand_to_agent, call_customer
Appointmentsfind_open_slots, get_booking_options, book_appointment, find_customer_appointments, reschedule_appointment, cancel_appointment, confirm_appointment
Ticketsboard_open_ticket, board_my_tickets, board_add_note, board_cancel_ticket, board_set_step
Catalogcatalog_search, catalog_show, catalog_item_details, catalog_check_availability, catalog_quote, catalog_record_interest, catalog_reserve, catalog_my_reservations, catalog_cancel_reservation
Cards and labelsshow_results, show_choices, show_view, clear_view, update_conversation_labels
Only while handling an app eventsend_whatsapp_template, send_message, send_email, get_whatsapp_templates, call_person, find_contact, save_contact, create_lead, add_appointment, find_appointments, change_appointment, alert_team, hand_to_person, notify_app, list_scheduled, cancel_scheduled, board_create_ticket, board_move_ticket, board_note_ticket

Variables

VariableWhat it holds
{{customer_name}}The customer's name, when known
{{customer_phone}}The customer's phone number, when known
{{customer_email}}The customer's email, when known
{{channel}}The channel: web, whatsapp, voice, email and so on
{{today}}Today's date in the business's time zone, such as 2026-11-23 (Monday)
{{now}}The local time, as HH:MM
{{agent_name}}The assistant's name
{{event.type}}, {{event.id}}, {{event.data.<field>}}Only while handling an app event: the event's type, id and data

Known variables are filled in before the assistant reads the instructions. Any other {{…}} stays exactly as written, and the editor warns you: {{token}} is not a known variable: it stays as written.

Drafts and saving

Every edit saves to the procedure's draft by itself, a moment after you stop typing. Customers never see the draft: they keep getting the live version until you publish. The save indicator beside the name shows where things stand.

Saving…Your edit is on its way.
Unsaved changesAn edit is waiting to be saved.
Could not save.Click Retry. Your edits stay in the editor.
SavedThe draft holds your latest edit. Later it reads Draft saved with the time.

If someone else saves the same draft while you have it open, a banner says your latest edits were not saved. Click Reload to see the newest version. If you try to leave with edits that could not be saved, the dashboard asks Leave without saving? first.

Publish, versions and going back

GoalYour draft becomes the version customers get.

  1. 1

    Fix any errors

    Publish stays disabled while there are errors (Fix the errors before publishing.) or when nothing changed (No unpublished changes.).

  2. 2

    Click Publish

    The dialog reads Publish Refund request as v3.

  3. 3

    Add a Note (optional)

    Say what changed, so your team can tell versions apart.

  4. 4

    Confirm

    The toast reads Refund request v3 is live. The status line changes to Live v3.

The first publish reaches customers from their next message. A later publish replaces the live version from the next message, and conversations already in the procedure finish on the version they started. Publishing a procedure that is switched off is allowed, but it will not run until you switch it on.

Versions and Restore as draft

Versions lists every published version, newest first: its number, a Live badge on the current one, its size, when and by whom it was published, and its note. Restore as draft copies an old version into the draft. Nothing changes for customers until you publish again.

Discard draft

When a published procedure has unpublished changes, Discard draft throws them away and returns the draft to the live version. You confirm first, because the changes are lost. A procedure that was never published has nothing to go back to: delete it instead.

Switching a procedure off, and deleting it

The Procedure on switch on the status line takes a procedure out of use without deleting it. A switched-off procedure is never offered to the assistant and cannot be started at all, not even by another procedure. Switch it back on and the live version runs again.

To delete, open More actionsDelete procedure. The procedure and all its versions go; conversations that ran it keep their history. You cannot delete a procedure that other procedures reference, or that a workflow stage uses: remove it from them first.

Test in the Playground

Test saves the draft and opens the Playground in preview mode, with this procedure loaded before the first answer. A banner reads Previewing procedure drafts, starting with refund_request. In preview, drafts and never-published procedures run, so you see your changes before customers do. Preview runs in text chat only, and Exit preview goes back to the live setup.

Generate procedures from a document

If you already have a handbook, a help article or a playbook, the assistant can draft procedures from it: one draft per task the document describes.

01 / 03Give it a document. Upload the front-desk handbook, or paste its text.
  1. Give it a document. Upload the front-desk handbook, or paste its text.
  2. Review the drafts. One card per task the document describes. Untick any you do not want.
  3. Create them as drafts. They arrive as unpublished drafts in the folder you picked.

Saffron Bay drafts three front-desk procedures from its handbook.

GoalDraft procedures you can review and publish.

  1. 1

    Click AddGenerate from document

  2. 2

    Upload a file or paste text

    Upload a file takes PDF, Word (.docx), text, Markdown, HTML or EPUB up to 10 MB. Or choose Paste text.

  3. 3

    Click Draft procedures

    Reading and drafting can take a minute. Drafting uses credits like other model calls.

  4. 4

    Choose the drafts to keep

    Each card shows the kind, the trigger and a preview of the steps or instructions, plus any errors to fix. Tick Create … on the ones you want.

  5. 5

    Pick a folder in Put them in and click Create selected

    They are created as unpublished drafts. Review each one, then publish it.

Drafts only reference tools, documents and variables that exist on this assistant. A structured draft whose steps are not valid is created as free-form instead. If the document describes no task, the dialog says No tasks were found in this document.

Tools and documents only inside procedures

On the assistant's Tools page each tool, and on Knowledge each document, has an Available choice: Always or Only inside procedures.

  • Always: the assistant can use the tool, or search the document, in any conversation.
  • Only inside procedures: only while a procedure that references it is running. This keeps the assistant's context small and keeps a task's tools out of unrelated conversations.

For an assistant whose knowledge is read in full rather than searched, documents referenced by a running procedure are added to its context, up to 20,000 characters per turn. A workflow stage can also allow such a tool with Also allow.

The Details panel

Click Show details to open the panel on the right. It has three parts.

Details panel6 controls
ReferencesShown
Everything the procedure points to, grouped as Tools, System tools, Knowledge base, Procedures and Variables. As of the last save.
Last 30 daysShown
Runs, Completed, Cancelled, Handed off, Unloaded (stopped because too many procedures were active) and Avg turns, plus how many are still running. Live conversations only.
See its conversationsButton
Opens Conversations filtered to this procedure.
Guardrails for this procedureList
Guardrail rules checked only while this procedure is active, each with its mode, or Off. Rules that always apply still do.
Add ruleButton
Opens a new guardrail rule already scoped to this procedure. See Guardrails.
Open GuardrailsButton
Goes to the assistant's Guardrails page.

How the assistant uses procedures

Which procedures it can start

The assistant sees a short list of procedures it may start: each published, switched-on procedure that has a trigger, by key and trigger. Sub-procedures appear on the list only while a procedure that references them is running. The list follows your manual order.

Starting

  • By the assistant: when a customer's request matches a trigger, the assistant starts that procedure before it answers. One procedure per task: when the customer moves to a different task, it starts that one.
  • By another procedure: a reference to it in free-form instructions, or a Sub-procedure step in a structured one.
  • By a workflow stage: listed under Procedures for this stage, optionally started when the stage begins. See Workflow.
  • By an app event: an event type set to A procedure, or a message the assistant sent for an event that starts a procedure when the person replies. See Events.

Ending

The assistant ends a procedure when the task is done, when the customer drops it, or when it hands over to a person. The outcome is recorded as completed, cancelled or handed off, and its reply goes out in the same step. The customer never hears about procedures, keys or these instructions.

How many run at once

Up to 5 free-form procedures can be active in one conversation. Starting a sixth unloads the oldest, and the trace shows Unloaded … (too many active). Only one structured procedure runs at a time: starting another interrupts it. Procedures started from procedures nest at most 4 deep.

Seeing it in a conversation

In a conversation's trace, the Procedures section shows lines such as Started Refund request and Ended Refund request · completed. In the Conversations list, the Procedure filter shows the conversations that ran one procedure, or A deleted procedure.

Errors and warnings

The editor checks the procedure as you write. Errors block Publish; warnings are only shown. The list reads Errors to fix before publishing and Worth a look, with a count, and clicking an item jumps to it.

Errors (block publishing)
  • Trigger over 1,000 characters
  • Empty instructions, or over 50,000 characters
  • A tool or built-in tool that does not exist
  • A knowledge document that was deleted or is not attached to this assistant
  • A procedure that references itself, or one that does not exist
  • Sub-procedures that lead back to this procedure, so it would never end
Warnings (shown only)
  • No trigger: only another procedure can start it
  • A tool that is switched off for this assistant
  • A {{…}} that is not a known variable

Limits

Reference

Procedures list6 controls
AddButton
Opens a menu: New free-form procedure, New structured procedure, Generate from document, New folder….
Search proceduresText
Filters by name, key, trigger or folder. With no match: No procedure matches.
SortChoice
How the list is ordered. Your browser remembers the choice.
Default Manual orderOptions Manual orderNameLast updated
New procedure in …Button
Creates a procedure straight into that folder.
Move … up / Move … downButton
Rearranges in manual order, for everyone.
Actions for … > Move to folderChoice
Moves a procedure into a folder, or to No folder.
New procedure dialog4 controls
NameText
What your team calls it. Placeholder Book a room.
Limit 120 characters
KeyShown
Shown as you type, marked fixed once created. Made from the name and never changes.
FolderChoice
Optional folder for the new procedure.
CreateButton
Creates it as an unpublished draft.
New folder dialog2 controls
Folder nameText
Placeholder Bookings. If the folder already exists, it is used.
Limit 60 characters
Create folderButton
Makes the folder. It stays once a procedure is in it.
Editor top bar and status line10 controls
Procedure nameText
Click to rename. Enter or leaving the field saves; Escape reverts. It cannot be empty.
Live v… / Never publishedShown
The live version number, or that it was never published.
KeyShown
With a copy button.
Procedure onSwitch
Takes the procedure in or out of use. Off: it never runs, not even as a sub-procedure.
TestButton
Saves the draft and opens the Playground with this procedure loaded. Needs permission to use the Playground.
Discard draftButton
Only when a published procedure has unpublished changes. Returns the draft to the live version.
VersionsButton
Opens the list of published versions.
PublishButton
Makes the draft live, with an optional note.
Show details / Hide detailsButton
Opens or closes the Details panel.
More actions > Delete procedureButton
Deletes the procedure and all its versions.
Trigger and instructions3 controls
TriggerText
When the assistant should start the procedure, from the customer's side. Empty makes it a sub-procedure.
Limit 1,000 characters
InstructionsText
What the assistant does, with references as chips.
Limit 50,000 characters
InsertButton
Opens the same menu as typing /.
Publish dialog2 controls
Note (optional)Text
What changed. Shown in Versions.
Limit 300 characters
PublishButton
Makes this the live version from the next message.
Versions2 controls
LiveShown
Marks the version customers get.
Restore as draftButton
Copies that version into the draft. Needs Publish changes.
Generate from document6 controls
Upload a file / Paste textTab
Where the document comes from.
Draft proceduresButton
Reads the document and drafts one procedure per task.
Create …Switch
Keep or skip each draft.
Put them inChoice
The folder for the new procedures.
Start overButton
Goes back to choose another document.
Create selectedButton
Creates the ticked drafts.

Questions people ask

Keep going
Procedures · HeyServo Docs