# On Close Conversation

**On Close Conversation** is a bot trigger that activates when an agent closes a chat in DoubleTick by clicking the **Mark as Done** option.

In DoubleTick, closing a conversation usually means the support query is resolved or the interaction has been completed. As soon as the agent marks the chat as done, this trigger can automatically start a bot journey.

This helps businesses run automation immediately after a conversation ends.<br>

<figure><img src="/files/BYxCyCXzMaTy6IMvDyqr" alt=""><figcaption></figcaption></figure>

### Where to Use This Trigger

This trigger is most useful for actions that should happen after the chat is completed, such as:

* Collecting customer feedback
* Sending a closing or thank-you message
* Updating customer details in Google Sheets or CRM
* Running post-support follow-up workflows

It is commonly used by support and customer success teams.

***

### How to Use It in Bot Studio

1. Open **Bot Studio** in DoubleTick
2. Create a new journey
3. Select the trigger: **On Close Conversation**
4. Build the automation you want to run after closure\
   Example actions:
   * Send feedback request
   * Add conversation outcome to Google Sheets
   * Notify internal teams
5. Publish the journey

Once published, the bot will trigger automatically whenever an agent closes a chat using **Mark as Done**.

***

### Key Capabilities

* Activates instantly when a conversation is closed
* Helps automate post-chat actions
* Supports feedback collection and reporting workflows
* Ensures consistent closure experience for customers

***

### Example Use Case

A support agent resolves a customer issue and clicks **Mark as Done**.

Immediately, the bot sends an automated message like:

“Thank you for chatting with us. Please share your feedback about the support experience.”

This helps teams improve service quality and collect customer satisfaction data automatically.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.doubletick.io/bot-studio/set-up-bot-triggers/on-close-conversation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
