Userid storage in bot


#1

how to get user id ?
do we need to set the userid ?
if so how to do it?


#2

@Priyadharshini-Mohan The ID is automatically generated, but you can set the user id yourself.

Here’s the instructions to set the ID of your visitor: https://botpress.io/docs/tutorials/existing-backend/#using-a-custom-user-id

And here the instructions to get the ID generated by Botpress: https://botpress.io/docs/tutorials/webchat-embedding/#obtaining-the-user-id-of-your-visitor