https://discord.gg/botpress logo
Bot Handoff Issue: Preventing Bot Restart After Hu...
# 🤝help
w
How do you handle muting the bot during a human handoff? The issue is that after the bot flow ends and an agent takes over, any new message from the user triggers the bot to restart its flow from the beginning, disrupting the live chat.
d
Yes, this is usually caused by the bot still being active after the HITL handoff. In Botpress, the handoff should pause the bot until the agent ends the session; when the agent is done, you can explicitly Resume Chatbot. I’d handle it by checking the HITL/Desk handoff state and adding a conversation-level flag/state so incoming messages are ignored by the bot while a human session is active. I’d also check the workflow trigger that’s restarting the flow, since the issue may be coming from a workflow being re-entered rather than the handoff itself. I can help trace and fix that setup so the bot stays completely silent until the human handoff is closed. @wonderful-finland-98510