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
app.heyservo.ai/agents/golden-oven/procedures
ProceduresAsk HandymanDocsOW
Procedures
Add
Search procedures
Orders
Custom cake order
Structured
Refund request
Free-form
Allergy question
Free-form
Draft
Refund request
Live v2
refund_request
Procedure on
Saved
TestVersionsPublish
Trigger
When the customer asks for a refund or says an order was wrong or missing.
Instructions
Insert
1. Ask for the order number and what went wrong.
2. Apologise once, plainly.
94 / 50,000 characters
Guide
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.
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.
Edit the instructions. Every edit saves to the draft. Customers keep getting the live version until you publish.
Insert a reference. Type / or click Insert to add a tool, a document or a variable as a chip.
Try it before customers do. Test opens the Playground with the draft loaded.
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.
The customer
9:41
GGolden OvenBusiness account
Message
Your dashboard
app.heyservo.ai/agents/golden-oven/conversations
ConversationsAsk HandymanDocsOW
Omar Khalil
WhatsApp
Procedures
Steps appear here as they happen.
Guide
01 / 05A customer asks for something.The message arrives like any other.
A customer asks for something. The message arrives like any other.
The assistant starts the procedure. The message matches the trigger, so the procedure starts before the assistant answers.
It follows your steps in its own words. A free-form procedure guides the assistant; it still talks naturally.
It ends the procedure. When the task is done the procedure ends with an outcome, and its instructions unload.
You see how it went. Each run counts in the procedure's Details panel.
Scroll to play
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.
Kind
What it is
Choose it for
Free-form
Written instructions the assistant adapts. It follows them in its own words.
Most tasks: refunds, complaints, bookings, questions that need judgement.
Structured
Fixed steps that always run in the same order: questions, checks, tools and exact wording.
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
To
You need
See procedures
See assistant setup
Create, edit drafts, rename, move, reorder, switch on or off, delete, Generate from document
Change assistant setup
Publish and Restore as draft
Publish changes
Test
Permission 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
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
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
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
Write the Instructions
The steps, in plain words. Type / to insert tools, documents, other procedures and variables.
5
Click Test
The Playground opens with this draft loaded. Talk to the assistant as a customer would.
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
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.
The tools connected to this assistant, by name, with their description.
System tools
HeyServo's built-in tools (listed below).
Knowledge base
Documents attached to this assistant, by file name.
Procedures
This assistant's other procedures, by key. A procedure cannot insert itself.
Variables
Values 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.
Chip
Written as
Looks 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 document
A reference to the document
Blue, 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.
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
Fix any errors
Publish stays disabled while there are errors (Fix the errors before publishing.) or when nothing changed (No unpublished changes.).
2
Click Publish
The dialog reads Publish Refund request as v3.
3
Add a Note (optional)
Say what changed, so your team can tell versions apart.
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.
app.heyservo.ai/agents/saffron-bay/procedures
ProceduresAsk HandymanDocsOW
Generate from document
Upload a procedure document, help article or playbook, or paste its text. You get one draft per task it describes and pick which to keep.
Upload a filePaste text
Drop a file here, or click to choose
PDF, Word (.docx), text, Markdown, HTML or EPUB, up to 10 MB
Guide
01 / 03Give it a document.Upload the front-desk handbook, or paste its text.
Give it a document. Upload the front-desk handbook, or paste its text.
Review the drafts. One card per task the document describes. Untick any you do not want.
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
Click AddGenerate from document
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
Click Draft procedures
Reading and drafting can take a minute. Drafting uses credits like other model calls.
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
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.