Runbooks are natural-language instructions that guide your agents through conversations while allowing them to adapt to unique situations.Documentation Index
Fetch the complete documentation index at: https://docs.duckie.ai/llms.txt
Use this file to discover all available pages before exploring further.
What is a Runbook?
A runbook is a set of instructions written in plain language that tells your agent how to handle conversations. Unlike rigid scripts, runbooks give agents flexibility to adapt while following a general procedure. Example:When a customer asks about refunds:The agent follows this structure but adapts its language and approach based on the specific conversation.
- Acknowledge their request and express understanding
- Ask for their order number if not provided
- Look up the order using the Order Search tool
- Check if the order is within the 30-day refund window
- If eligible, process the refund and confirm the timeline
- If not eligible, explain the policy kindly and offer alternatives
- Ask if there’s anything else you can help with
When to Use Runbooks
Runbooks are ideal when:| Situation | Why Runbooks Work |
|---|---|
| Conversations vary | AI adapts to different phrasings, contexts, and edge cases |
| Judgment is needed | Agent can make decisions within guidelines |
| Flexibility matters | Not every conversation follows the exact same path |
| Quick iteration | Easy to update instructions without rebuilding |
Runbook Structure
A good runbook includes:Objective
What the runbook should accomplish:Objective: Help customers with password reset requests while maintaining account security.
Steps
Sequential instructions to follow:
- Greet the customer and confirm their request
- Verify identity by asking for their registered email
- Check account status using the Account Lookup tool
- …
Tool References
Links to specific tools when actions are needed:Use the [Password Reset Tool] to send the reset email.
Conditional Guidance
Instructions for different scenarios:If the account is locked, escalate to the security team. If the customer can’t access their email, offer alternative verification.
Snippets
Reusable instruction blocks included from your snippet library:
Insert the Verify Customer Identity snippet from the editor’s @ menu.
Runbooks vs Workflows
| Aspect | Runbooks | Workflows |
|---|---|---|
| Format | Natural language | Visual graph |
| Flexibility | High — AI interprets and adapts | Low — follows exact paths |
| Best for | Judgment-based processes | Strict, repeatable processes |
| Complexity | Easy to write and update | More setup, but visual clarity |
| Auditability | AI reasoning is logged | Exact path is traceable |
- The conversation could go many directions
- You want AI to handle edge cases intelligently
- Instructions are easier to write than flowcharts
- Every step must happen in exact order
- Compliance requires deterministic execution
- Multiple tools must coordinate precisely
Example Runbooks
Customer Support Runbook
Order Inquiry Runbook
Next Steps
Create a Runbook
Build your first runbook
Snippets
Create reusable instruction blocks
Compare to Workflows
Understand when to use each