I don't understand, what I need is that once a use...
# 💻developers
l
I don't understand, what I need is that once a user speaks the corresponding number on WhatsApp, they are responded to with the flow of my chatbot created in Botpress Studio.
a
That sounds more like a flow problem than a whatsapp problem. Does your bot work as expected in the emulator?
l
Yes, it work's fine
As shown in the guide video you sent, once the user writes to the bot, it responds with the created flow.
a
Are there any errors in your bot's logs?
l
I'm seeing this error
a
Could you try disabling the summary agent, re-publishing, and trying again?
I have a suspicion something might be wonky with the summary agent....
l
On it
Disabled
Now trying again
Same issue
@acceptable-kangaroo-64719 might be a botpress problem?
a
did you re-publish between attempts?
oh actually, it looks liek you ahve a hook in use. What is the hook? Could you share the code?
l
yes
yes
a
What is generating that "hooks Context" log?
l
Mmm don't know...
a
If you click the "hooks" icon is there anything?
l
No, nothing. I had a hook that i thought i need it for the whatsapp integration and delete it
a
are you using the summary agent variables anywhere in your flow?
l
I don't think so
a
could you double check? Also if you re-enable the summary agent, does the error message change?
l
Confirmed, I don't use it
Re-enable
Same error
a
interesting. Have you tried your bot in the webchat?
l
Yes
a
does the same error pop up when talking to the webchat bot?
looks fine to me
l
I think it's looking fine, I saw that you enter your email and name. But I'm still seeing this error
Botpress isn't presenting any error in the whatsapp integration @acceptable-kangaroo-64719 ?
a
Well given that we see the error in webchat, too, we know that it isn't specific to the whatsapp integration
Would you mind exporting & sharing your bot? You can DM me the file if you want
l
Yes
Thank you very much for your help!
Hey @acceptable-kangaroo-64719 , did you see any issue?
a
Could you try this: 1. Go to Library > No intent and add something to the list like "nope" This will make the bot re-train itself 2. Refresh the page, re-publish your bot
l
Let me try
I already have "nope"
Should I add something else?
Hey @acceptable-kangaroo-64719, I've added "nowi" (just to add something) to the intentions no list and I have received on the logs the message I've send via whatsapp
That's some progress!
But if you see in the line 6, it sends text but I don't receive it on my whatsapp as a message
a
That is indeed progress!
are there any other errors?
l
No more errors
a
Is your WA access token still valid?
l
I changed it today, and I thinks is 24hs valid
a
but the bot's messages aren't going to WhatsApp?
l
Exactly
a
can you verify that you've gotthe right webhooks and everything on the Meta side?
l
I must have everything right, right? So that the message is arriving from whatsapp to botpress
a
Not necessarially. I've never seen that message when I've done WA integrations
cuz that looks like it is coming from Meta, not your bot
But you see the WhatsApp messages in your bot's logs?
l
Yes, that message it's coming from meta because I'm sending the test message
Yes, i'm seeing the whatsapp messages in my bot's log
a
I think the problem then lies in outgoing connection from Botpress to Meta
which webhook fields are you subscribed to in your meta app? Could you share a screenshot?
For example, this is how I have my WA bot webhooks configured
l
the messaging_postbacks I don't have it activated
a
let's activate it and see if it works 😄
l
I think I'm not seeing it like an option
This ones are the only available
a
oh I have a lot more of those activated, too
The messages_postbacks was in messenger config btw
l
Sorry I didn't understand, where i can find the messages_postbacks input?
a
l
Should I activate it too?
a
might as well, yeah. Let's see if it helps at all
l
I don't have anything configured in Messenger product of Meta
Should I configure here with the same url of the hook of whastapp?
a
I just took a look at the docs, I don't think you need it
but now that you've enabled all those other webhooks on the WhatsApp side, are you able to get bot responses?
l
I have enabled all the webhooks
And it don't seem to be working
In line 146 you can see that he received the message "Hello" that I've just send
And in line 149 tries to send message but it never arrives
a
you don't happen to be in Cuba or Turkey, right?
l
Nono, I'm in argentina
a
okay. If you pop your access token into this app https://developers.facebook.com/tools/debug/accesstoken does it give you any errors?
and what scopes is it active for?
l
a
yep those are the same scopes I've got
l
😭
What else can we try?
a
have you verified your phone number with Meta?
l
Mine as a receiver?
yes
And as a sender i'm using a test number provided by meta
a
how are you using WhatsApp? On a phone or emulator?
l
phone
a
have you updated WhatsApp recently?
l
It's up to date
a
well shucks, I'm not sure then 😅
l
There is a way I can open a ticket with the dev team of botpress and get an answer?
a
we can @ a few more people. @acceptable-gold-88171 @bright-magazine-792 y'all got any experience with WhatsApp?
l
Ok
Hey @acceptable-gold-88171 and @bright-magazine-792
how are you?
@famous-zoo-73118 . We didn't get to solve this issue
f
@lemon-receptionist-60189 I just tested on my end with the exported bot you provided and I was able to make it reply without issues. Check the following screenshot, please note that the messages before 5:53pm are from another bot I have (which is basically an "echo" bot, just replies me with the same message I sent) which also shows the Whatsapp integration itself is working.
I basically just created a new bot, imported the .bpz file you provided of your bot, installed the whatsapp integration, and entered the webhook URL, verify token, phone number ID, and access token matching what I have in my Meta dashboard, enabled the integration, saved changes, and just sent a message over whatsapp to my test phone number.
l
Hello @famous-zoo-73118 , thank you for your info. I will try to create a new bot and I will tell you about it
@famous-zoo-73118 what country code is your cellphone? Might be that my number is from Argentina?
f
hmm, that could be a factor, my phone number's country code is +1
you could try deleting the chat with your bot from Whatsapp and instead adding your bot as a contact using its full international number and sending it a whatsapp message from scratch
BTW, before you do, could press on the "Whatsapp Bot" label at the top of the whatsapp chat window, and share the screenshot?
I'm curious to see how its phone number looks like when the conversation was initiated by the whatsapp number
f
@famous-zoo-73118 I'm having the same issue, maybe it is the country code. I'm from Mexico.
l
Here you have
I have tried this and nothing happen
@fierce-restaurant-71002 hey maxo, could you manage to fix the issue?
@acceptable-kangaroo-64719 how are you? Do you have some information about the problem of getting messages in the cellphones that have different area code than US/CANADA?
a
I can add that I've been able to get messages to & from a bot on WhatsApp and my phone number is Malaysian, so I don't think the country code has anythign to do with it
Have you gone through any ID or business verification with Facebook?
l
DONE IT!!!!! @acceptable-kangaroo-64719 @famous-zoo-73118 Thank for the support. I had to use a real number instead of the test number that is provided by Meta. I think that there is an issue with the phone numbers of Argentina or Mexico. Maybe you can add to the docs that is prefered to try the integration with a real number instead of using Meta test numbers
f
I wasn’t able to fix it but I see that you could, that’s great. I’m gonna try to do it with a phone number.
l
Now the issue that I'm having is that the bot answers two times. Any fix to this?
a
This is a known bug, we're working on a fix ASAP
l
Oh, perfect. Thanks
Hey @acceptable-kangaroo-64719 how are you? The problem of repeating messages started again on whatsapp
a
yep we haven't pushed the fix yet, still doing some internal testing. Our goal is to get it out soon though!
3 Views