User session
# 🤝help
s
I need to configure the user session that enters the bot for a specific time. In Botpress v12 this is done in the bot settings .json file. Where do I do this on Botpress Cloud?
e
What kind of configuration do you need? If you want to define a value that's persistent across sessions like a token or a name, you can create a User Variable in the settings, and set its value in Custom Codes like so:
user.myValue =
s
Hello @early-train-33247 . Thanks for answering. When I say user session time, I mean user time within the bot flow. Let's imagine that the bot's session time is 30 minutes from the moment I started the conversation. If I do not complete the entire conversation flow within these 30 minutes, the service starts again, that is, the user returns to the beginning of the flow. In Botpress v12 this configuration was defined in .json files. More precisely in this format: "dialog": { "timeoutInterval": "30m" }
e
Hey @stocky-lamp-63317, timeouts are actually counted from the last message. So if the user stops responding in BP12, after 30 minutes the conversation will end. In Botpress Cloud the default timeout is 5 minutes, you even have a timeout flow to manage that. In that flow you could ask if the user wants to end the conversation or keep going, it will again start counting down 5 minutes until they respond. Right now there is no way to define a custom timeout I am afraid. I requested this feature already! Cheers
a
@stocky-lamp-63317 I don't think this is possible right now so I went ahead and created a post in #1111026806254993459 -> https://discord.com/channels/1108396290624213082/1115282282148790382 @early-train-33247 I didn't find a post searching "timeout", hopefully I didn't create a duplicate request 😉 If you guys can upvote the post it will bring visibility
e
Hey @acceptable-gold-88171, I requested that feature in the Community website. I will upvote it here though. Thanks
16 Views