https://discord.gg/botpress logo
TimeOut Flow
# šŸ¤help
a
I have switched from the hitl plugin to the hitl agent, so my timeout flow has stopped working. After 30 minutes of inactivity, the text message triggered from the workflow is not being received in the channel. As a result, the frontend is successfully archiving the chat, but on the backend, I’m not receiving the event or message indicating that 30 minutes of inactivity have occurred. I’ve written the chat archive logic in the channel. How can I debug this issue?
p
Can you specify what workflow and events/messages you are referring to? Screenshots would be helpful to better understand your issue.
s
I’m currently facing a similar issue related to the timeout flow. Let me share the details: I have a timeout workflow configured (Ref: Image 1), where a text message is sent to the user when their conversation times out. āœ… This message is successfully delivered to the user. āŒ However, when the user is in HITL (Human-in-the-Loop) mode (Ref: Image 2), although the timeout message is sent, it does not reach the HITL channel (I’m using a custom integration for HITL and have defined a HITL channel). āŒ Additionally, the user's conversation does not end or reset as expected when the timeout flow is triggered. This issue started after I switched from the HITL Agent to the HITL Plugin. Everything was working as expected with the HITL Agent, but I had to move to the Plugin version since the Agent is no longer supported (Ref: https://discord.com/channels/1108396290624213082/1397670230054015147). Let me share the Comparison of Timeout Workflow Behavior Action | HITL Agent | HITL Plugin ----------------------------------------------------------------------------------------------------- User receives text message from timeout flow | āœ… Yes | āœ… Yes Message is sent to HITL channel via custom integration | āœ… Yes | āŒ No User’s conversation is terminated/reset (even if HITL is active) | āœ… Yes | āŒ No https://cdn.discordapp.com/attachments/1400065802765336636/1400118638081605782/image.png?ex=688b7998&is=688a2818&hm=373c3aac7fa2ff484b53da842774e7e03ec64cb2c22e95c3caa37fa2b539cb66& https://cdn.discordapp.com/attachments/1400065802765336636/1400118638316355686/image.png?ex=688b7998&is=688a2818&hm=4e6f4c496d0d9b941770f1c8fc148b6e5f64b9d0f19bd8594d0c68c834856e20&
p
That is right the agent is no longer supported. Could you explain why you'd want to interrupt the HITL session to send the timeout message?
s
Ideally, I believe there should be two ways to handle timeouts when a user is in a HITL session: Option 1: When a timeout occurs, the user receive the timeout message, their current conversation should be terminated. At the same time, the HITL session should be informed and closed to maintain consistency between the user and the agent view. Option 2: The timeout flow should not trigger at all if the user is currently in a HITL session. However, I couldn’t find a way to implement Option 2 in Botpress studio. So I’m working towards resolving the issue using Option 1. Let me know if you’ve seen a better way to handle this in the plugin setup.
p
There is a way to implement option 2 and it's by using the set inactivity timeout card before starting the HITL session to extend the regular timeout delay.
Hope this helps!
s
Thanks @prehistoric-airplane-85682 . Will check that.
4 Views