Multiple Bot and Multiple Whatsapp Accounts -> Rep...
# 🤝help
f
Hi Team! I have build 5 differents robots in Botpress and using 5 different whatsapp accounts and 5 different OpenAI Assistant. Each Open AI AssistantRobot is connected to a single whatsap account and to a single botpress bot. Each of the 5 whatsaap account have different verify codes, number and webhook. All whatsapp accounts live in the same business account of Meta. But each number solves a different business for my clients. Whenever i send a message to, lets say Botpress Bot A, the message is replicated to bot A, but also to bot B and C. When i send a message to bot B , it replicates the message to bot B but also to bot C and a behavior like that. Im really confused in about what to do, because i already revoked the advanced access to whatsapp_business_management. Haver anyone of you solved the same issue? PD: For the moment i have a filter in botpress so the replicated message can be filtered out of the conversation so it doesn't affect the end user experience and the bot never answers effectively. But the bug is accumulating garbage in the form of one sided conversations.
f
This sounds very weird! Maybe @limited-pencil-78283 or @bumpy-addition-21507 have experienced something similar before?
l
Is the same system user and API used for all bots?
That could be the only possible reason I can think of
Since you mentioned that your incoming messages is responded by all bots
f
Not by all bots at the same time. Thats part of the weirdness. I send to bot A and is received by A and B. I send to B and its Sent to A and B. But i send it to C and only C. Send to D, is received by D and E. Send to E and is received by C, D and E. I have the same system user. But the 5 numbers have 5 different api token, webhook and meta App. Each whatsapp account
At first i guessed it was part of the whatsapp_business_management permissions issue. (That permissions usually means that it listen to all webhooks). I removed that from all meta api permissions, but the behaviour is unexpected
l
I remember facing this issue in the past, however it was only between the test account and the real account. Since they shared the systemuser. Can you try adding a system employee and generating an API token for one to see if things change
f
i will try that! Thanks!
p
I am facing the same issue...
r
if i understood correctly , you have a WABA account with several numbers and several bots for each number.....and they all get mixed together..... I had that same issue . Resolved it by creating one WABA account per number per bot. Seems like if you are on the same WABA account al APIS will be pointed to the same place. For this solution you may need different permissions for Whatsapp , such as beeing a certified Bussines https://cdn.discordapp.com/attachments/1243642176852721725/1245170447021117520/image.png?ex=6657c6d8&is=66567558&hm=880f1d4b999eed4b44033ec8dd386dc10684dea0a0e3fa05f4bc058b428b1d37&
l
True, if these are for different business, then always create separate business accounts. There could be a limit to number of business portfolios you can create. I mean there is a limit to everything 🙂 including system admin or employee
f
Thabks @refined-actor-91340 and @limited-pencil-78283 for the suggestions! Ill try a workaround with that. Just FYI: Currently i set an "env" variable with the WSP phone number ID and i filter whatsapp integrations to have that id or they are filtered out. I do this same thing with the inbound analytics.
248 Views