WhatsApp Integration Issues.
# 🤝help
f
So I integrated my bot with whatsapp but when I use it it starts bugging out. I understand that whatsapp doesn't allow to send a set of questions more than 3 which is why they appear in a weird way on whatsapp. But what I don't understand is why the bot stops responsing completely. I tried using dropdowns instead and same issue. The only thing that was working was using questions that had 3 options or less and the options where added manually inside botpres studio and not using a user variable. This is ofcourse something that cannot be used in production because I need to manipulate my choices depending on the previous ones and other factors. This is the error that I see in the logs when I pick an option and the bot stops responding:
Copy code
[whatsapp] Error while handling request: O [Error]: Tag "whatsapp:id'" in payload is invalid as it's not defined in the available message tags
    at Pe (/var/task/customer_code.js:9:31281)
    at Q (/var/task/customer_code.js:9:31062)
    at m (/var/task/customer_code.js:9:75076)
    at /var/task/customer_code.js:9:67979
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async handleMessage (/var/task/customer_code.js:82:168146)
    at async handler (/var/task/customer_code.js:82:166964)
    at async Object.handler (/var/task/customer_code.js:82:101912)
    at async /var/task/customer_code.js:9:191126
    at async /var/task/index.js:20:13511 {
  isApiError: true,
  code: 400,
  description: 'The request payload is invalid.',
  type: 'InvalidPayload',
  error: undefined
}
I need help asap I have a client that needs this bot.
a
@famous-zoo-73118 do you have any ideas? Also @fresh-article-37001 could you use the "report a problem" button and give us the number?
f
I'm still using a Test number right now I can add your number if you want.
a
I meant this number

https://cdn.discordapp.com/attachments/1141701643457527890/1141704649800429639/image.png

f
Let me just fix the bot back to how it was because I am currently debugging
I'll send it in a few
This is the id:
b51c549a-1d34-4ba8-8b9d-ee2c41717f32
f
@fresh-article-37001 @acceptable-kangaroo-64719 I'm looking into this now, should have more info later today!
@fresh-article-37001 the issue you found should be fixed now, could you try again please and let us know? Thanks!
f
Hi, the issue was fixed. I tested the bot today various times with different method and stuff and the issue never occured again. Huge thanks!
15 Views