# End chat

This functionality is not activated by default; it must be activated in the Interface Settings page:

<figure><img src="https://3203401256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdP6xFXXyeBbibro1Ywnq%2Fuploads%2FXP9c2tAIyqPXQtFLNIi4%2F2023-11-09_19-07-11.png?alt=media&#x26;token=9befa5c3-1ea1-4673-b040-c9306789f797" alt="" width="375"><figcaption><p>End chat toggle in interface settings</p></figcaption></figure>

<figure><img src="https://3203401256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdP6xFXXyeBbibro1Ywnq%2Fuploads%2FV34VD4bAAcxglcU5Urix%2F2023-11-09_19-08-09.png?alt=media&#x26;token=b90b0c65-71c1-4777-8e02-331d20b13bd5" alt="" width="366"><figcaption><p>End chat link in user interface</p></figcaption></figure>

Clicking on the **End Chat** button generates an intent to end the chat. Similar to no match and restart, the conversation engine will look for an intent.core.TurnEndChat intent in a turn in the current scene. If no intent is found, the engine will look for an intent.core.SceneEndChat intent in the conversation, and if no intent is found, the engine will look for an intent.core.ConversationEndChat.&#x20;

If none of these are found, the global intent.core.endChat is executed.&#x20;

{% hint style="warning" %}
Note the End Chat is not handled out of the box; you will need to set this up in your scenario.&#x20;
{% endhint %}
