Receive User Information through chatbot
I know that I can receive a userid using the chatbot. but what if want to receive more information as soon as the user login. I would pass this information through my frontend. Which fields can I pass in my request to recive the information
1 Reply
You can send much more than just the
• Grab the values at the start of the flow with a JS step, e.g.: 3. Add transcript-only metadata (shows up in the Transcripts UI, not in your logic) Full example That’s it—when the chat opens your assistant immediately receives all the values you placed in
userID
when you initialise the web-chat. All the data is added to the object you pass to window.voiceflow.chat.load()
.
1. Identify the user
2. Pre-fill variables your agent needs
• Every key inside payload
must already exist as a Voiceflow variable (e.g. user_name
, user_email
, plan_type
).• Grab the values at the start of the flow with a JS step, e.g.: 3. Add transcript-only metadata (shows up in the Transcripts UI, not in your logic) Full example That’s it—when the chat opens your assistant immediately receives all the values you placed in
payload
, plus {user_id}
, letting you personalise the conversation from the very first step.
Docs: https://docs.voiceflow.com