> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hangup and disconnect Bolna voice AI calls

> Discover methods to disconnect live Bolna Voice AI calls. Implement time-based hangups, custom prompts, and personalized messages for seamless call termination.

## How to configure call hangup

Bolna offers multiple ways to intelligently end voice calls based on user behavior and conversation context. In Agent Studio, prompt-based hangup lives in the **Agent** tab under [Hangup Using Prompt](https://www.bolna.ai/docs/agent-setup/agent-tab.md#hangup-using-prompt); the silence timer, total call timeout and closing message live in the **Engine** tab under [Final Call Message & Call Management](https://www.bolna.ai/docs/agent-setup/engine-tab.md#final-call-message-%26-call-management).

***

## Hangup methods

> [tab] Silence Detection
>
> Set **Hangup on User Silence** (in seconds) under **Engine → Call Management** for detecting user inactivity. If no audio is detected for the specified duration, the call disconnects automatically, preventing unnecessary call durations.
>
> ![Engine tab Call Management card showing the Hangup on User Silence toggle and slider next to the Final Call Message card](https://mintcdn.com/bolna-54a2d4fe/8jDnjX_l2tK5UC80/images/disconnect_calls_1.png?fit=max\&auto=format\&n=8jDnjX_l2tK5UC80\&q=85\&s=8200d7632428251d1b4abdabd029dd9d)
>
> Disconnecting calls on silence

> [tab] Prompt-Based Hangup
>
> Turn on **Hangup using a prompt** in the [Agent Tab](https://www.bolna.ai/docs/agent-setup/agent-tab.md#hangup-using-prompt) and add a custom prompt that evaluates whether the conversation is complete. The LLM assesses the conversation context and decides when to end the call.
>
> ![Hangup using a prompt card in the Agent tab with the toggle enabled and a custom conversation-completion prompt in the text area](https://mintcdn.com/bolna-54a2d4fe/vlPn4lzPQ372t9yX/images/disconnect_calls_2.png?fit=max\&auto=format\&n=vlPn4lzPQ372t9yX\&q=85\&s=f9f399c6b32814e9fa6873a346d04658)
>
> Custom prompt for intelligent call hangup
>
> > [!WARNING]
> >
> > 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:**
>
> ```text hangup prompt example theme={"system"}
> 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.
> ```

***

## Personalized hangup message

Add a closing message spoken by the agent as the final message before the call ends, under **Engine → Final Call Message**. For multilingual agents, pick a language chip to set a message per language. This accepts [dynamic context variables](https://www.bolna.ai/docs/prompting/using-context.md#user-variables) using `{}` for a personalized closing statement.

![Engine tab Final Call Message card with a language chip and message input, next to the Call Management card](https://mintcdn.com/bolna-54a2d4fe/8jDnjX_l2tK5UC80/images/disconnect_calls_4.png?fit=max\&auto=format\&n=8jDnjX_l2tK5UC80\&q=85\&s=543b19986d64d6e957ccf0ce3587ac20)

Adding a final call message

> [!TIP]
>
> Use variables like `{first_name}` in your hangup message for a personal touch, e.g., *"Thank you {first_name}, have a great day!"*

### Let the caller interrupt the goodbye

Turn on **Allow interruption** under **Engine → Final Call Message** to let the caller speak over the agent's goodbye. If the caller cuts in with something new, the agent stops, the hangup is canceled and the conversation continues. This applies to prompt-based hangups only; silence and duration hangups always end the call. See [Engine Tab](https://www.bolna.ai/docs/agent-setup/engine-tab.md#final-call-message-%26-call-management) for details.

***

***

## Call duration limits

Set **Total Call Timeout** (in seconds) under **Engine → Call Management** for automatic termination. Once the limit is reached, the call ends automatically — a safety net against runaway calls.

![Engine tab Call Management card showing the Total Call Timeout slider](https://mintcdn.com/bolna-54a2d4fe/8jDnjX_l2tK5UC80/images/disconnect_calls_3.png?fit=max\&auto=format\&n=8jDnjX_l2tK5UC80\&q=85\&s=da7cb329165dc44c45b4b9a5be309953)

Configuring maximum call duration

### Duration limits vs. hangup prompts

| Feature | Duration Limits | Hangup Prompts |
| - | - | - |
| **Trigger** | Hard time-based cutoff | Context-aware conversation analysis |
| **Accuracy** | 100%, always triggers at set time | Prompt-dependent, may need tuning |
| **Use case** | Safety net for runaway calls | Natural, intelligent call endings |
| **Configuration** | Set duration in seconds | Write a custom evaluation prompt |

> [!TIP]
>
> **Use both together**: hangup prompts for natural conversation endings, duration limits as a hard safety net.

***

## Related features

> [card] [Call status list](https://www.bolna.ai/docs/post-call/list-phone-call-status.md)
>
> Monitor call statuses in real time

> [card] [Hangup status codes](https://www.bolna.ai/docs/post-call/list-phone-call-hangup-status.md)
>
> Understand who ended the call and why

> [card] [Call pricing](https://www.bolna.ai/docs/pricing/call-pricing.md)
>
> Understand how call duration affects cost


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.