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

# End call step

> Finish a call with an End call step: write an optional goodbye, static or generated, and learn what the caller hears before the agent hangs up.

An End call step finishes the call. The agent says a final message, if you wrote one, and hangs up. It's the last step on a path, so it has no transitions.

## When to use it

* At the end of every path that completes the caller's request.
* After an **On Failure** path when there's nothing more the agent can do.
* As a [global step](https://docs.tryhamsa.com/agents/flow/global-steps.md), so the caller can end the call from anywhere by saying goodbye.

## Add an End call step

**1. Add the step**

On the canvas, click **Add node** and choose **End call** ("End the conversation").

**2. Write the final message (optional)**

Choose **Static** or **Prompt** and write the **Final message:**, or leave it empty to hang up without a word.

**3. Connect the steps that lead here**

Connect the transitions of earlier steps to this step.

## Fields

| Field | What it does | Default |
| - | - | - |
| **Final message:** | "The final message to speak before ending the call. Leave empty for silent termination." | Empty |
| **Static** / **Prompt** | **Static** speaks your text as written, for example "Thank you for calling. Goodbye!" **Prompt** lets the agent write the goodbye from your instructions, for example "Generate a personalized goodbye message based on the conversation...". | **Static** |

The step also has **Variables** (a **Local variable** to set a final value) and **Global**, which includes **Confirm before proceeding**. It has no **Transitions** section; its card shows that it ends the flow.

![The Goodbye End call panel with a Static final message, 'Thank you for calling. Have a lovely day.'](https://mintcdn.com/hamsa-452fa79a/Rl78D_qJIpinmg19/images/agents/flow/steps/end-call-step-light.webp?fit=max\&auto=format\&n=Rl78D_qJIpinmg19\&q=85\&s=5356257e5080975698ddbcd8a0a2f0bb)

## How it works on a call

1. Any hold music from an earlier step stops.
2. The step's local variables are set.
3. The agent speaks the final message. The caller can't interrupt it, and the agent waits until it has finished playing.
4. The agent hangs up about half a second later.

With no final message, the agent hangs up straight away. What the caller said while the flow was working stays in the transcript but isn't answered.

## Good to know

* Use **Confirm before proceeding** on an End call step that the caller reaches by asking, so a misheard "that's all" doesn't end the call.
* A **Prompt** goodbye can use what was said in the call, such as the caller's name or what was booked. A **Static** one can use variables: "Thanks, `{{customer_name}}`. Goodbye!"
* To end calls without an End call step, for example when the caller says goodbye, see **Smart call end** in [Call behavior settings](https://docs.tryhamsa.com/agents/settings/call-behavior.md).

## Related

> [card] [Global steps](https://docs.tryhamsa.com/agents/flow/global-steps.md)
>
> Let the caller end the call from any point.

> [card] [Call behavior settings](https://docs.tryhamsa.com/agents/settings/call-behavior.md)
>
> Smart call end, maximum call length and inactivity timeout.

> [card] [Transitions](https://docs.tryhamsa.com/agents/flow/transitions.md)
>
> Route calls to the End call step.

> [card] [Step types](https://docs.tryhamsa.com/agents/flow/steps/overview.md)
>
> Every step type at a glance.


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