Discover methods to disconnect live Bolna Voice AI calls. Implement time-based hangups, custom prompts, and personalized messages for seamless call termination.
Set a silence time threshold (in seconds) for detecting user inactivity. If no audio is detected for the specified duration, the call disconnects automatically, preventing unnecessary call durations.
Disconnecting calls on silence
Add a custom prompt that evaluates whether the conversation is complete. The LLM assesses the conversation context and decides when to end the call.
Custom prompt for intelligent call hangup
Since this is prompt-based, it may not be 100% accurate. Tune the prompt based on your use case for best results.
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.
Add a closing message spoken by the agent as the final message before the call ends. This accepts dynamic context variables using {} for a personalized closing statement.
Adding a custom hangup message
Use variables like {first_name} in your hangup message for a personal touch, e.g., “Thank you , have a great day!”
Set a maximum call duration (in seconds) for automatic termination. Once the limit is reached, the call ends automatically — a safety net against runaway calls.