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:
Combined with another tool:

Examples

As its own step:
Combined:
Multiple exit points:

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

  1. Playbook execution ends
  2. Agent returns to normal conversation mode
  3. Visitor can ask general questions
  4. Other playbooks can still trigger based on their conditions
  5. All collected information is saved

Troubleshooting

Error: “Missing @stop_playbook” Check that every branch eventually ends with @stop_playbook.

Learn More