rival-black•2y ago
How to access user id passed through dialog API within Voiceflow?
My whatsapp bot makes the following call to voiceflow. I want to access the user_id within voiceflow and use it in API block or code block? How can I achieve that?
await interact(
user_id,
{
type: 'text',
payload: req.body.entry[0].changes[0].value.messages[0].text.body,
},
phone_number_id,
user_name
)
3 Replies
It should be stored in the user_id VF var. Is it not? If you open up the variable tray when testing your bot, you should see the user_id has "TEST_USER" as a value, I believe.
rival-blackOP•2y ago
Thanks for the help @W. Williams (SFT).
@NayakAvishek#058 did you find it?