# Close Action

Every conversation needs to be ended at some point. Imagine once the bot has successfully answered your customer and your customer wants to close the conversation. This is where the Close action becomes handy.

#### &#x20;How to insert the Close action in the conversation flow

\
You can use this action whenever you think the customer has received adequate support and needs to close the conversation.

First, we need to head to the [Tiledesk dashboard](https://panel.tiledesk.com/v3/dashboard/#/projects), select the bot we want to modify, and enter the Design Studio.

For this example, I used an “[Ask Knowledge Base](/ai-chatbots-and-automation/actions-explained/ask-knowledge-base.md)” action. Inside its response, insert a button and provide the close chat option, as the user will most likely get the correct answer and want to close the chat after the answer is generated by the knowledge base.&#x20;

As you can see in the image below:

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

Then, connect this button to the Close action.&#x20;

In the left sidebar menu, you can find the Close action. Simply drop it somewhere on the canvas.

Now, you need to connect the button to this new block, as shown in the image below:

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

That’s all! From now on, by clicking on this button, the conversation will end.

Let’s test it together.

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

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

Hope you found it helpful.&#x20;

For more details, please visit [www.tiledesk.com](https://tiledesk.com/).

To get started, [you can create a free account](https://panel.tiledesk.com/v3/dashboard/#/signup).

In case you have questions or need support, do not hesitate to contact us via: <support@tiledesk.com>\
&#x20;


---

# 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://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/close-action.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.
