Hey everyone, could you please advise on the best way to reset conversation context in a Telegram bot built with n8n?
We’re using an AI Agent with ChatGPT (OpenAI) + Memory (Window Buffer). The bot maintains a dialogue, but:
• after some time it starts to “drift”
• forgets the logic
• or наоборот keeps old context when it’s no longer needed
We’d like to implement a proper reset, for example via a “reset” command, so that:
• the entire conversation history is cleared
• a new interaction starts from scratch
Questions:
1. What’s the correct way to implement a reset? Changing the sessionId, or is there a better approach?
2. Is anyone using Window Buffer with ChatGPT in production, or is it better to switch to persistent memory right away?
3. Are there any best practices specifically for Telegram + n8n + OpenAI?
Would really appreciate any advice ![]()
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: