How to implement follow-up questions within a single session in a bot?

I’m working on a bot where users can ask questions, and the bot may need to ask additional clarifying questions to provide a better response. However, currently, each question from the bot starts a new session, which disrupts the flow of the conversation.

How can I ensure that follow-up questions from the bot are part of the same session, allowing the conversation to continue seamlessly without restarting the session?

Thank you for your help!

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:

Hi @walker

you will need to make sure the bot receives the sessionId. Can you share your current workflow setup?

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


PS. I recommend watching our YouTube tutorial on AI Agents :wink: