Radiant raindrop
Radiant raindrop•17mo ago

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
W. Williams (SFT)
W. Williams (SFT)•17mo ago
I know all about it. what are you trying to do? I usually recommend not messing with the userId.
Radiant raindrop
Radiant raindropOP•17mo ago
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?
W. Williams (SFT)
W. Williams (SFT)•17mo ago
The user ID is self assigned by default. There are very, very few cases to mess with it.
W. Williams (SFT)
W. Williams (SFT)•17mo ago
Voiceflow
Adding Custom Variables
Send custom variables on web chat load like userID, email, and more.
Radiant raindrop
Radiant raindropOP•17mo ago
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?
W. Williams (SFT)
W. Williams (SFT)•17mo ago
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.
Radiant raindrop
Radiant raindropOP•17mo ago
Where do i get the diffrent APIs like transaction and transcript?
W. Williams (SFT)
W. Williams (SFT)•17mo ago
Voiceflow
Fetch Project Transcripts
Retrieve your Voiceflow project transcripts
Radiant raindrop
Radiant raindropOP•17mo ago
Ah ok, Thanks for helping mešŸ™‚
fair-rose
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?
W. Williams (SFT)
W. Williams (SFT)•2mo ago
@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
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.
No description
No description
W. Williams (SFT)
W. Williams (SFT)•2mo ago
there are no transcripts either just use the transcript function @ voiceflow.com/functions
fair-rose
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.
W. Williams (SFT)
W. Williams (SFT)•2mo ago
Prototype and test do NOT have transcripts stored.
fair-rose
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.
No description

Did you find this page helpful?