https://discord.gg/botpress logo
How to prevent the conversation from persisting wh...
# 🤝help
e
Hello! I'm having a problem because I integrated BotPress into my website as a chatbot to collect data. However, my website uses users, so when I log in with one user and have a conversation with a bot, when I log out and log in with a completely different user, I see the same conversation I was having before.
w
1. If you did it for testing, use the circular arrow to start a new conversation 2. Another way is to change the settings: https://botpress.com/docs/webchat/get-started/configure-your-webchat#settings
e
Is there any way to prevent the conversation from being saved in either local storage or session storage? To restart the conversation, I must close the browser, and I can't give them the option to use the circular arrow because the chat with the other person's data shouldn't be visible directly.
w
On the same computer, are there different people who use the same browser with the same profile?
there's a couple of Cons - **Privacy Issues**: Personal searches and activities can be viewed by others, chatbot conversations. - **Confusion**: Settings and preferences may get mixed up or overwritten. To maintain privacy, it's advisable to create separate profiles or use private browsing modes.
e
Ok, thanks for your help! I have another question, maybe you could answer it. The documentation says that when you create another user, you receive a key. Is this key the x-user-key that you then use to run getUser? https://botpress.com/docs/api-reference/chat-api/openapi/createUser
w
The API returns a User object, and yes, in x-user-key, you must pass the user ID to retrieve the information.
The Chat API is for extensions; you may want to use the Runtime API instead
e
Thank you for your response, it was very helpful. 🙌
3 Views