https://discord.gg/botpress logo
Monitoring conversations from multiple bots
# 🤝help
m
As an administrator of a system of many bots, I want to be able to review conversations from multiple bots in one view so that I can quickly skim the responses for possible issues. I have tried building a monitoring bot with a table that captures the conversations, but I can't figure out how to send data from one bot to another. Im new at this - what am I missing?
w
I don't know if this is a Botpress feature, but you can integrate with a third party or develop your own.
f
You’re on the right track with the monitoring bot idea. In Botpress, bots don’t directly talk to each other—you’d usually send the conversation data to a shared place (like a DB, webhook, or API) and have your monitoring bot pull it in. I can help you set that up so all conversations appear in a single view. Quick question: are you already storing chat logs somewhere (e.g., Botpress analytics DB or an external service), or do you want me to help you set up that pipeline from scratch? @magnificent-london-18710
m
thanks! I am able to pull the conversations out from the bots, I was trying to push them back into my Monitoring Bot into a table there but I got stuck on a Save State issue and as I tried to solve that, I wondered if there was a way to do it all in Botpress. I built the workflow in n8n to check for new conversations, get the messages of each conversations, then send them back to the monitoring bot, but the maintenance on it is really gross. Each bot has it's own API key so I have to set credentials at the bot level and can't get a list of bots - unless... there is an easier way? State Save Issue 4 days ago An error occured while saving the state of the bot: Qs: State "userVariables" doesn't exist for user "workflow.user_id" AI tells me that the error is because I'm passing in a variable with a system reserved ID on it, but when I change it, it doesn't seem to make a difference. 🙁
w
If I understood correctly, you pull messages to n8n and then try to push them into another Botpress bot. One problem is that you need to recreate the user and conversation before pushing, but it's not easy to push bot replies. It might be better to use hooks (https://botpress.com/docs/learn/reference/hooks) to extract data to a platform where you can store conversations and messages, along with an interface to display the conversation using filters like bot name, conversation ID, etc. You can develop this yourself or use some Botpress integration.
m
thank you! I'll have a look at these!
thanks for the direction @User - - I'm trying to set this up, but I'm a little green at this. I have an autonomous node in a bot, I want to send the full conversation to another endpoint when the conversation is done, but I am not certain how to know when the conversation is done. Where do I put the hooks (what's the difference between before outgoing and end conversation) and where do I put the execute code if all I have is an autonomous bot? I couldn't figure out how to trigger the "send the whole conversation now that the conversation is done". Thanks!
Hooks are triggered by events; you don’t need to call them. "Outgoing" refers to a message sent by the bot, while "incoming" refers to a message from the user. The "Conversation End" is triggered when a user passes through an END node and enters the Conversation End workflow.
3 Views