https://discord.gg/botpress logo
Need to View Botpress WhatsApp Chats in External D...
# 🤝help
s
We're currently using Botpress to handle customer chats through WhatsApp, and it's working well. However, we want to build a dashboard in Odoo where human agents can view all incoming/outgoing messages and intervene in conversations when needed. Since the WhatsApp number is already connected to Botpress, we can’t connect it elsewhere without causing conflicts. What’s the best way to mirror all WhatsApp messages (both incoming and outgoing) to another system like Odoo? Can we use custom actions or hooks in Botpress to forward messages via an HTTP request to our Odoo backend? Or is there a better way to get a real-time feed of the conversations while keeping Botpress in control of the WhatsApp integration? Please note that we also want to enable a human agent to take over when needed. Any suggestions, best practices, or sample setups would be greatly appreciated!
p
Hooks would be where I suggest you start, they run before/after before incoming or outgoing messages so you can definitely capture the messages from both bot and user. As for hitl, if you plan on adding that to your external system, it may require building an integration. Hope this helps!
s
Okay, thanks! Really appreciate the help and support
p
For sure, no worries :))
s
By the way, I have been able to put together a simple dashboard where I can see the messages, I can also intervene and send messages, but even if the HITL session is active, the bot still responds. After researching, I came across this guide, "How to use the Botpress Human in the Loop API Integration'. Will Human in the Loop API Integration help me with what I want to achieve? https://cdn.discordapp.com/attachments/1382789889963069550/1383172769448984576/Screenshot_from_2025-06-13_22-51-48.png?ex=684dd386&is=684c8206&hm=f82177c779bd11b0413eeaa83ffbb4c88482a145a74fd0fdf6e8ab28d6be80eb&
p
No the integration is for using the Botpress Hitl conversation manager found in the dashboard.
s
@prehistoric-airplane-85682 Just one more question, please. Can a human agent take over even if the predefined conditions, such as conversation sentiment or keyword detection, are not met? If yes, then how?
p
What predefined conditions are you referring to? Conversation sentiment and keyword detection are not native hitl fields in botpress, meaning if you add restrictions to your workflow/bot then they should be respected, but if there aren't any added, by default the human agent can take over. Hope this helps!
s
I am using this https://botpress.com/integrations/human-in-the-loop-api to build my own external tool to help human agents to monitor and take over when needed. I hope I am on the right path
p
The API you're trying to use is deprecated and trying to force the human agent connection in an existing bot-user conversation is not supported at the moment. Especially, if you are using an Autonomous Node, the bot will always respond.
s
oh no! So what's an alternative to this?
p
You would have to create you own integration or pick one of the existing conversation managers.
s
Ok thank you
2 Views