https://discord.gg/botpress logo
Action based on conversation duration
# 🤝help
r
How do I set up so user gets summary of the conversation after 10 minutes?
n
First of all, set your conversation timeout time to 10 minutes
Then, you want to go into the conversation timeout flow and use the conversation.SummaryAgent.Summary variable to output the conversation summary to the user
THus, after 10 minutes of inactivity, the conversation ends but first flows into the conversation timeout flow to output the summary
Before then flowing out and endinmg
Hope that helps!
Let me know if you want to see screenshots as to how to do it
r
Thank you, Enoch! I thought about using TimeOut but what if user is conversing during the 10 minutes (instead of inactive for 10 minutes)? The goal is to start ending conversation after 10 minutes to avoid endless chats.
n
Ohh ok. In that case, I'd suggest that you use an external system
Perhaps send a webhook to a system that will wait for 10 minutes after receiving the post and then send one back
Then have a trigger to begin ending the conversation after the bot receives the webhook back which would be after 10 minutes
r
Thanks for the idea!
2 Views