TheDocumentation Index
Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
Use this file to discover all available pages before exploring further.
[END_CALL] tag tells the engine to end the call after Claude has finished speaking. The agent says its goodbye line first, then the call is terminated.
Syntax
Example
Caller: “Great, thanks for the help.” Agent: “You’re welcome. Have a lovely day. [END_CALL]”The caller hears the goodbye. Then the engine ends the call cleanly.
When to use it
Tell Claude in the system prompt when it should end calls:Behaviour
When the engine sees[END_CALL]:
- The remaining text in Claude’s response is spoken to the caller
- The engine waits for the TTS audio to finish playing
- Twilio hangs up the call
- Post-call processing runs (recording saved, summary generated, webhook fired)
Other ways calls end
[END_CALL] is the graceful option. Calls also end automatically when:
- Caller hangs up — no action needed; the call object is marked
ended_by: caller - Silence timeout — caller is silent for
silence_hangup_seconds(default 30s) - Max duration —
max_call_duration_secondshard cap is hit (default 300s) - Voicemail detected on outbound calls — engine hangs up immediately
- Error — provider failure; the engine ends safely and logs the cause
ended_reason field on the call record tells you which one fired.