# N8n clear chat button feature

**URL:** <https://community.n8n.io/t/n8n-clear-chat-button-feature/48734>\
**Category:** Feature Requests\
**Tags:** node, embed\
**Created:** [June 19, 2024, 7:41am UTC](https://community.n8n.io/t/n8n-clear-chat-button-feature/48734 "2024-06-19T07:41:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sankalp-kalangutkar](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sankalp-kalangutkar/32/40939_2.png) [@sankalp-kalangutkar](https://community.n8n.io/u/sankalp-kalangutkar)\
**Post date:** [June 19, 2024, 7:41am UTC](https://community.n8n.io/t/n8n-clear-chat-button-feature/48734/1 "2024-06-19T07:41:48Z")

</div>

### Question: How to Insert a Clear Chat Button in the Existing n8n Chat Embed

Hi n8n Community,

I’m currently using the n8n chat embed provided via CDN for integrating a chat interface on my website. While the chat embed works great, I have noticed that it lacks a “Clear Chat” button, which would be a useful feature for users to reset the chat history without refreshing the page.

**Issue:**  
There is no built-in option or feature in the current n8n chat embed to include a “Clear Chat” button.

**Desired Solution:**  
I would like to know if there is any way to add a “Clear Chat” button to the existing n8n chat embed. Ideally, this button should be able to clear the current chat history when clicked.

Has anyone faced a similar issue or found a way to implement such a feature? Any insights, code snippets, or alternative solutions would be greatly appreciated!

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [June 19, 2024, 7:41am UTC](https://community.n8n.io/t/n8n-clear-chat-button-feature/48734/2 "2024-06-19T07:41:49Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![bartv](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bartv/32/156374_2.png) [@bartv](https://community.n8n.io/u/bartv)\
**Post date:** [June 19, 2024, 8:21am UTC](https://community.n8n.io/t/n8n-clear-chat-button-feature/48734/3 "2024-06-19T08:21:59Z")

</div>

Moved from #Questions to #Feature Requests. Don’t forget to vote!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 17, 2024, 8:22am UTC](https://community.n8n.io/t/n8n-clear-chat-button-feature/48734/4 "2024-09-17T08:22:50Z")

</div>

Closed on September 17, 2024, 8:22am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
