End Call
The End Call tool lets your voice agent programmatically hang up a call based on conversation context. Instead of waiting for the caller to disconnect, your agent can end the call gracefully after resolving the issue, completing a booking, or when the conversation reaches a natural conclusion.When to Use
- The caller’s issue is resolved and they say “goodbye” or “thank you”
- The agent has completed its task (e.g., appointment booked, order status provided)
- The caller is unresponsive or silent for too long
- The conversation reaches a predefined time limit
- The caller is abusive or violating usage policies
Configuration
Via the Dashboard
- Open your agent and scroll to Voice Settings.
- Enable End Call.
- Configure the options:
| Setting | Description | Default |
|---|---|---|
| Farewell message | What the agent says before hanging up | ”Thank you for calling. Goodbye!” |
| Silence timeout | Seconds of silence before auto-ending | 30 seconds |
| Max call duration | Maximum call length before auto-ending | None (unlimited) |
| Post-call webhook | URL to notify after the call ends | None |
- Click Save.
Via the API
System Prompt Guidance
Add instructions to your agent’s system prompt to control when it should end calls:Post-Call Webhook
When a call ends, thinnestAI sends a webhook to your configured URL with the call summary:end_reason field indicates why the call ended:
| Reason | Description |
|---|---|
agent_ended | Agent triggered End Call |
caller_hangup | Caller disconnected |
silence_timeout | No speech detected for the configured timeout |
max_duration | Call reached the maximum duration limit |
error | Technical error during the call |

