Hangup calls

1. Using time based call hangup

Disconnecting call on silence


You can add a silence time threshold which allows you to set a configurable threshold (in seconds) for detecting user inactivity during a call. If no audio is detected from the user for the specified duration, the call will automatically disconnect. This helps streamline conversations and prevent unnecessary call durations.

2. Using prompts to hangup calls

Disconnecting call based on custom prompts


You can choose to add a custom prompt which determines whether to disconnect the call or not.

Since this is prompt based, it might not be 100% accurate and require tuning of the prompt depending on your use-case.

Example hangup prompt

hangup prompt example
You are an AI assistant determining if a conversation is complete. A conversation is complete if:

1. The user explicitly says they want to stop (e.g., "That's all," "I'm done," "Goodbye," "thank you").
2. The user seems satisfied, and their goal appears to be achieved.
3. The user's goal appears achieved based on the conversation history, even without explicit confirmation.

If none of these apply, the conversation is not complete.