Authoring routines
Building routines node by node: the golden rule, transitions and branching, tool chains, loops, common patterns, anti-patterns, and the pre-submit checklist.
The golden rule
- id: handoff
tools: crm:initiate_human_handoff
tool_instruction: "Initiate human handoff."
chat_state: "Inform the customer they are being transferred." # REJECTED - id: handoff-tool
tools: crm:initiate_human_handoff
tool_instruction: "Initiate human handoff."
transitions:
- to: handoff-msg
- id: handoff-msg
chat_state: >
Inform the customer they are being transferred to a human agent.Activation conditions
The graph: entry, transitions, terminals
Tool nodes: instructions are parameter maps
Branching: conditions on transitions
Asking the customer and acting on the answer
Reusable wording: macro interpolation
Anti-patterns
Anti-pattern
Symptom
Fix
Testing a routine
Pre-submit checklist
Last updated
Was this helpful?

