How to Reset/clear AI Agent chat Conversation if using Chat Widget or Telegram

I’ve looked through the previous posts and can’t find a solid solution to clearing or resetting a conversation with an AI chat agent that is using window memory buffer. Current setup is using Telegram however, i’ve prevoiusly been using just the chat window with no success either. Reloading the page or clearing the chat in telgram does not reset the conversation.

Information on your n8n setup

  • **n8n version: 1.66.0
  • **Database (default: SQLite): Running on Railway.app
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): via Docker
  • **Operating system: MacOS

Hi @A_Bradley

It could be because you’re setting the $json.message.chat.id which is the user’s ID and not the message id. You might wanna try with $json.message.message_id instead?