For some reason, I can’t find a session ID from my webhook response. The front-end is in voiceflow, where the user asks the chatbot a series of questions, more specifically, I had set them to 5. I want all these questions to have the same sessionID. How can I achieve this?
Thanks for the prompt response. Attached is a voiceflow implementation where five GET API calls are made to the n8n webhook. The user uses a chatbot to ask a series of questions (5). For each of these calls, unfortunately, generates a new sessionID. Instead, I wanted to have all of them have the same session_ID. Let me know if you have more questions.
Thanks for the response. I did implement the solution by sneding session_id with the message. However, I believe the session_id should be unique with every chat. In my case, I keep having the same session_id even after logging out then log in again.
Oh I see.
I thought you wanted to keep the same session ID.
If Voiceflow doesn’t change the session_id at all, I see two possible solutions:
1. Create a logic in Voiceflow to generate the UUID there, and send it to n8n
This would place the control over the UUID in Voiceflow. You would generate the UUID there and renew it there too.
2. Create the UUID in n8n and store it in a database
Your can use the Crypto node to generate a random UUID.
But you would have to store that in a database to use it multiple times.
My idea is to set an expiration date along with the UUID, in the database. So if the UUID is already expired for that username/phone number, you generate a new one with the Crypto node.