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

# Setup End Calls Function

> Define when and how your AI ends a call gracefully.

## Setup End Calls Function

Control **when** and **how** your AI hangs up — avoid awkward silences and ensure compliance.

***

<CardGroup cols={1}>
  <iframe width="720" height="400" src="https://www.loom.com/embed/2f50e63739b44b2ca440302d0612786e" title="End Call Logic Guide" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />
</CardGroup>

***

### End Call Triggers

| Trigger              | Action                                         |
| -------------------- | ---------------------------------------------- |
| **Goal Achieved**    | "Thanks! Your appointment is booked. Goodbye!" |
| **User Says "Stop"** | Immediate polite exit                          |
| **Max Duration**     | Auto-end after X minutes                       |
| **Silence Timeout**  | End after 8+ sec silence                       |
| **Transfer Failed**  | "I'll send a follow-up. Have a great day!"     |

***

### How to Configure

1. **Agent Editor** → **Call Flow** → **End Call Rules**
2. Enable desired triggers
3. Customize **exit message** per scenario
4. Set **post-call action**:
   * Send SMS summary
   * Tag in CRM
   * Schedule callback

***

### Client-Specific End Calls

* **Clone** agent per client
* Customize exit:
  * `Spa Client`: “Enjoy your relaxation!”
  * `Law Firm`: “We’ll email your case summary.”
* Assign via **Client Portal**

***

<Warning>
  Always include **"Goodbye"** and **confirmation** to avoid abrupt hangups.
</Warning>
