https://discord.gg/botpress logo
#🤝help
Resume chat
# 🤝help
c

creamy-oyster-8997

06/19/2023, 9:21 AM
How can I save a users conversation with my bot, so they can resume the chat at a later date? I want to use bots in my mobile app, so logged in users can resume their conversation at any moment. Browsing through the API docs, I can't find how to do this, as conversations don't seem to be linked to users directly.
a

acceptable-kangaroo-64719

06/19/2023, 11:05 AM
Hey @creamy-oyster-8997, you're right that conversations aren't linked directly to users, but we do have user variables. https://botpress.com/docs/cloud/studio/variables/#user-variables
However if you're trying to show previous chat history on web chat, we don't have that feature yet.
User variables will let you store the context of the conversation only. If you're looking to always be showing previous chat history, have you considered using another channel like WhatsApp or Telegram?
c

creamy-oyster-8997

07/12/2023, 10:15 AM
@miniature-daybreak-51854 here
f

future-nest-52537

07/12/2023, 11:30 AM
Hi. Please how I can save users conversations in my database?
Can you give me more example please?
c

creamy-oyster-8997

07/12/2023, 1:47 PM
I am not looking to save conversations in my database
What more do you want? my usecase is quite specific, so no more examples to give really
f

future-nest-52537

07/12/2023, 1:52 PM
I want to record the bot's conversations so that I can use a query to determine the number of conversations established with the chat bot. Is this possible?
a

acceptable-kangaroo-64719

07/12/2023, 3:33 PM
f

future-nest-52537

07/12/2023, 10:04 PM
Gracias