Please Botpress not working well on wassup
# 🤝help
w
Text message fires two times one will appear on the single items list. the dropdown list also fires two times, and when you select a choice nothing happens it hangs. Please find attach images.

https://cdn.discordapp.com/attachments/1140667875829481582/1140667876240539808/Screenshot_2023-08-14-15-18-22-386.jpg

https://cdn.discordapp.com/attachments/1140667875829481582/1140667876517367919/Screenshot_2023-08-14-12-02-51-043.jpg

c
Can you please report the issue & send us the report ID?

https://cdn.discordapp.com/attachments/1140667875829481582/1140669973660958770/report_issue.gif

w
ok
Please report ID: 6b219ec8-86e6-4667-975c-e833eb3d675f
c
Hey @white-spoon-79644 this is being worked on to improve the experience but this isn't a bug but a contraint of the Whatsapp platform. They only allow 3 buttons to be displayed at a time. To circumvent this restriction, we decided to repeat the question with each set of 3 buttons. I hope this helps! 👍
w
Yes please, what about the dropdown issue, If I select an item nothing happens and it also fires twice
f
Repeating the question makes it worse
And the dropdown isn't working
And for some reason the bot randomly stopped answering and I have to choose options from the beginning of the conversation to get it to restart.
c
We decided to use a dropdown instead of buttons when there are more than 3 choices. This will stop the bot from repeating and fix the issues you currently have.
f
I have an issue. When I am chatting to the bot for some reason it stops responding. I checked the logs and I have this
Copy code
Error sending outgoing message {
  integration: 'whatsapp',
  messageType: 'choice',
  payload: '{"type":"choice","text":"Choose the time that suits you:","options":[{"label":"7:00A.M","value":"7:00A.M"},{"label":"8:00A.M","value":"8:00A.M"},{"label":"9:00A.M ","value":"9:00A.M "},{"label":"10:00A.M","value":"10:00A.M"}]}',
  error: X [Error]: An unknown error occurred
      at Mr (/var/task/customer_code.js:8:27984)
      at Ot (/var/task/customer_code.js:8:27764)
      at w (/var/task/customer_code.js:8:67151)
      at /var/task/customer_code.js:8:62051
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Object.flushSendMessages (/var/task/customer_code.js:294:4946)
      at async runDialogEngine (/var/task/customer_code.js:315:3624)
      at async startEventProcessing (/var/task/customer_code.js:315:3220)
      at async Object.onEvent (/var/task/customer_code.js:315:8649)
      at async Object.onMessage (/var/task/customer_code.js:315:8162) {
    isApiError: true,
    code: 500,
    description: 'An unknown error occurred',
    type: 'Unknown',
    error: undefined
  }
}
I read that to make them dropdowns I need to have 5 choices or more and a total of 140 characters. Is this the only way? or can I force them to be a dropdown?
I changed it to a dropdown and still I get no response after I pick an option
c
We are looking into this issue wee received reports on the Whatsapp interaction working on and off. 🧐
f
I have this error right now
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 hope this can help
Can you please try and fix it asap I have a client that I need to submit my bot to tomorrow noon.
c
On it! 🚀
f
Any updates?
f
@white-spoon-79644 @fresh-article-37001 The Whatsapp integration has been fixed so that choices with more than 3 options will now always display as a dropdown. The
Tag "whatsapp:id'" in payload is invalid
issue has also been fixed now.
f
Hi, I published a bot about 3 hours ago. It has more than 3 options they weren't dropdowns but the issue was not happening
To get dropdowns I had to have at least 140 characters total in all the choices.
f
Yes correct, before the logic for displaying a dropdown was that the total length of all options needed to be more than 140 chars in total. Now it will always be a dropdown as long as there are more than 3 options.
f
Is there a way to make the dropdowns fit more options? I have 12 options for my first question and it comes in two messages. Is it a whatsapp thing or can I somehow control it?
Is there a way to add something like (1/2), (2/2) for each message so that people know that each message contains different options? Or is there nothing I can do about it?
f
Whatsapp has a limitation of 10 choices per dropdown, so that's why it's split in multiple groups when there's more than that.
41 Views