What it does
Ends the playbook execution and returns the agent to general conversation mode.
When to use it
At the end of every path through your playbook. REQUIRED for all complete playbooks.
Can combine with
Yes, can appear at the end of any step with other tools.
Syntax
As its own step:
X. @stop_playbook
Combined with another tool:
X. @mention_specifically: "Thank you!" @stop_playbook
Examples
As its own step:
3. @mention_specifically: "Thank you for your interest!" 4. @stop_playbook
Combined:
3. @mention_specifically: "Thank you for your interest!" @stop_playbook
Multiple exit points:
1. @ask_question: "Interested in a demo?" @show_options["Yes", "No"] - If "Yes", proceed to Step 2. - If "No", proceed to Step 5. 2. @ask_question: "What's your email?" 3. @ask_question: "What's your name?" 4. @mention_specifically: "Great! Someone will reach out to schedule." @stop_playbook 5. @mention_specifically: "No problem! Feel free to reach out anytime." @stop_playbook
Tips
- Every branch must reach
@stop_playbook—this is critical
- The agent returns to normal Q&A mode after stopping
- Can appear multiple times in branched playbooks (different ending paths)
- Always verify all paths eventually reach a stop
What Happens After Stop
- Playbook execution ends
- Agent returns to normal conversation mode
- Visitor can ask general questions
- Other playbooks can still trigger based on their conditions
- All collected information is saved
Troubleshooting
Error: "Missing @stop_playbook"
Check that every branch eventually ends with
@stop_playbook.Learn More
- Getting Started with Playbooks - Overview and all tools
- Core Concepts & Structure - Understanding playbook structure
- Troubleshooting Guide - Fix missing @stop_playbook errors
- Quick Reference - Syntax cheat sheet