How can i collect information from the user_id?
Hey, How can i collect information from the user_id? For example in a conversation in WhatsApp, how can I extract the users number from the user_id? And what is stored in the user_id? Just trying to learn new stuff
3 Replies
To address your questions:
How can I collect information from the user_id?
The
user_id
in Voiceflow is designed to be a unique identifier for each user interacting with your Voiceflow application. It is important to note that the user_id
should not contain sensitive or personally identifiable information such as real names, emails, or phone numbers. This is to prevent potential security hazards and privacy violations.
What is stored in the user_id?
The user_id
is a string that you can define to uniquely identify each user. It can be any string that fits your domain, such as user1234
or 507f191e810c19729de860ea
. The user_id
is used to track users and persist/continue sessions within your Voiceflow application.
Best Practices
1. Unique: Ensure the user_id
is unique to each user to avoid privacy violations.
2. Non-sensitive: Do not use sensitive information like emails, real names, or phone numbers in the user_id
.
3. Format: Choose a format that fits your domain, such as user1234
.
For more detailed information, you can refer to our best practices documentation here and our customization configuration guide here.user_id is a VF variable. You can output it within your bot. Using the web chat, the user_id is the unique id of the user. When using the API / third parties it is the passed in user id. In your case, it will be the users phone number from WhatsApp.
Thanks, so I can just extract the variable via an API to for example a Google sheet?