We are testing the capabilities of the platform to create a Telegram bot based on N8N AI-Agent node. We are faced with the problem of the lack of ready-made instructions for preserving the context of the dialog with each new execution of the Telegram message trigger. For example, a user asks a question to a bot, the bot requests confirmation, and the next message should be recognized as confirmation and refers to the user’s previous request. Where and how is it better to store the context in order to maintain a dialogue with the user, as is done in the web version of ChatGPT?
(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.)
- n8n version: 1.18.0
- Database (default: SQLite): PostgreSQL
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: Ubuntu 22.04