Triggering messages on its now.
# 🤝help
n
I have setup whatsapp integration but from last night it is sending messages at random time after conversation ends and there is no message from user to start conversation again.
e
Make sure there is nothing in your Timeout Flow that may be causing this.
n
@early-train-33247 - There is nothing in timeout. Even after conversation ends, the conversation starts on its own at random times and start sending messages.
a
do you have any triggers in your bot's flow?
n
@acceptable-kangaroo-64719 - No triggers. Is the feature available for public yet?
a
yes, you can right click on the flow editor to make them
Though we haven't released a lot of documentation yet- that's coming soon
n
It does not happen on all numbers, it seems only on few numbers. I use my number for testing, that is where happen to see conversation starts on its own at random time
a
that is interesting. Are you doing anything special on the WhatsApp side?
n
Nothing special. I have setup a KB and let the bot answer based on the users questions and at the end of conversation it sends out a email of chat history
a
do the random messages coincide at all with the chat history emails?
n
The chat history emails are also duplicated, I receive 3-4 emails everytime, though the email code is setup at end conversation
For the random messages, the chat history emails are going out, but weird thing is randon message conversation does not show up in the Botpress Inbox - https://github.com/devguilhermy/botpress-inbox
a
That is interesting. And this only happens when you're talking to the bot on WhatsApp, and not on web chat?
n
Yes, only with WhatsApp. Webchat and emulator does not seems to have this issue
I dont see triggers available yet in editor
a
yeah that one is still on its way, I'm using an internal build so that's why I can see it. Hopefully it'll go public soon 🤞
@bright-magazine-792 do you know much about how the WhatsApp integration works and why it could be sending multiple events after a conversation ends?
e
There could be some bad config in the WhatsApp side. Maybe reset your tokens.
n
@early-train-33247 - None of the options I tried seems to resolve the issue. The messages are duplicated and conversation starts automaticallly after conversation ends. There seems to some issue with WhatsApp and botpress integration. Also I have choice list and the bot seems to think the user has picked a choice even there was not any and start anwering randomly for the choice defined
e
@nutritious-apartment-71300, the problem with the choices could be because you haven't built them properly. If you are using an variable with the options list, the structure should be the following:
Copy code
js
[{
  label: 'Option 1 Text',
  value: 'option 1 value' (has to be a string)
}, {
  label: 'Option 2 Text',
  value: 'option 2 value'
}]
Now regarding the WhatsApp issue. Try and delete the WhatsApp Business account that's you integrated, or even the Meta app. That will clear out definitely any misconfig on Meta servers. Is that possible? Make sure to find out if no other integrated service will break. Then you should get the new phone number ID and new tokens and use them in the integrations settings in Botpress. If that doesn't work still, we will keep trying to figure it out.
n
@early-train-33247 - Thank you, Let me try resetting on Meta side
@early-train-33247 - WhatsApp integration works as expected after removing Phone number and adding it again on Meta. Thanks for your help
e
That’s great to know @nutritious-apartment-71300!
5 Views