I'm currently working on an integration between Botpress and Zenvia, which is our WhatsApp-based customer support tool (similar to Zendesk). The bot is already running and we’ve successfully connected it to Zenvia for sending and receiving messages.
However, we are trying to implement a HITL (Human-In-The-Loop) system, where a human agent can take over a conversation and later hand it back to the bot.
The problem is: messages sent directly by human agents through Zenvia are not recognized or processed by Botpress as part of the conversation context. In other words, the bot continues operating but does not "see" or consider the human-sent messages when generating its next responses.
What we've noticed/tried so far:
The bot works perfectly in fully automated flows.
When a human sends a message, it appears in the conversations tab within the dashboard, but Botpress does not include it in the dialogue history.
We haven't found any official method to inject those human messages into the Botpress context retroactively.
My question:
➡️ Is there any way (official or workaround) to feed human-sent messages from Zenvia into the Botpress context so that the bot can continue conversations seamlessly after HITL interventions? Any API or strategy to manually append to the conversation history?
Appreciate any ideas, insights, or examples you can share. Thanks in advance! 🙏
https://cdn.discordapp.com/attachments/1390085199626240172/1390086148369416202/image.png?ex=6866fa1c&is=6865a89c&hm=26a8c7a65a51105034025e7f946d1acee2f5de2203dcbfacc11dca3527f1cbbd&