Do i have to use the User ID for chatbots with multiple conversations at the same time? If so, how?
I cant seem to figure out how to use the User ID, like where to put it, how to update it with information and why i have to use it. And is it crutiual for having m,ultiple conversations at the same time? Does someone have any tips?
16 Replies
I know all about it.
what are you trying to do?
I usually recommend not messing with the userId.
Yeah so basically i was trying to learn more about different variables (User ID) and how to use them and i came upon something saying that when someone is chatting with the same bot at the same time you would have to implement the user ID in some sort so that the bot can differ between the two conversations and not engage in the wrong one with the wrong responses. Is this the case?
If so how could i use the User ID and input information about each user?
The user ID is self assigned by default. There are very, very few cases to mess with it.
You can pass in information about your user using: https://developer.voiceflow.com/docs/customization-configuration#pass-custom-variable-values-optional
Voiceflow
Adding Custom Variables
Send custom variables on web chat load like userID, email, and more.
Yeah that makes sense. Thanks for the replyš
If i want the bot to for example be able to pull out the conversation and send it to their email, wouldnāt it require the user ID? How can i get the different user IDās and use them?
the user_id is available for the current user is available within your assistant. You can then use the transaction API to get the convo and use an API email sending service like Resend to send the email.
Where do i get the diffrent APIs like transaction and transcript?
In the VF docs: https://developer.voiceflow.com/reference/fetchtranscripts
Ah ok, Thanks for helping meš
fair-roseā¢2mo ago
@W. Williams (SFT) Hello, Im trying to do something similar with the transcript API and i need to pick the correct transcript from the list using the sessionID (which i think is the same as userID). However, when i try to send the userID through an API block to a webhook in make.com, it recieves the value as 0. Ive been trying for days and spent hourse on this small issue but I cant find a way of actually acessing the userID variable. Can you please help me?
@a.mustafa.74 If you are testing, there is no UserID. It will only work in production.
You need to set the user_id to something in testing.
I mean a valid user ID
fair-roseā¢2mo ago
I understand thereās no UserID when testing. However, Iāve published the flow and tested it multiple times using the prototype link, exactly as a user would on the website. The results are shown in the attached images.
At the end of the workflowābefore ending the chatāit sends information to Make.com via webhook. All variables are sent correctly except for the user_id. I need the user_id so that, within Make.com, when I make an API request to fetch the transcripts, I can retrieve the correct transcript for this exact chat and use it to update the corresponding Airtable record.


there are no transcripts either
just use the transcript function @ voiceflow.com/functions
fair-roseā¢2mo ago
I know, if I can get the user_id variable to work and find the correct transcript, I can use the transcript ID variable that is returned from the fetch stranscripts api request to do whatever I want with it. Hope it makes sense.
Prototype and test do NOT have transcripts stored.
fair-roseā¢2mo ago
When I test in the prototype and end the chat, I can see the transcript saved in the Transcripts tab. Iāve also reviewed your function. However, my goal is to generate the transcript URL (using the transcript ID returned from the Fetch Transcript API request) and add it to Airtable. This way, my client can simply click the URL in Airtable to open that specific transcript directly in Voiceflow.
