sparse-library-86764
05/02/2024, 12:54 AM[whatsapp] Failed to generate messages for sending to Whatsapp. Reason: Error: Reply buttons must have unique titles
at new ActionButtons (/var/task/customer_code.js:232:49938)
at generateOutgoingMessages (/var/task/customer_code.js:232:61289)
at Xz.next (<anonymous>)
at sendMany (/var/task/customer_code.js:232:62872)
at choice (/var/task/customer_code.js:232:64826)
at Ue (/var/task/customer_code.js:206:76994)
at /var/task/customer_code.js:206:75396
at /var/task/index.js:20:13708
at AsyncLocalStorage.run (node:async_hooks:338:14)
at handleHTTPEvent (/var/task/index.js:20:13687)
I checked the obvious, and the buttons do have unique titles. I tried switching from a multiple choice input type to single choice, because I think we used multiple choice by mistake. However, the Studio UI still indicates multiple choice in the workflow. Clicking on the card shows the type to extract set to "Single Choice". Any ideas?sparse-library-86764
05/02/2024, 7:50 AMsparse-library-86764
05/03/2024, 12:42 AMWill complete testing in 2024
Will complete testing in 2025
Gets truncated to:
Will complete testi
Will complete testi
And when this gets sent to WhatsApp, it throws an error because the two labels are now the same, which is not allowed.
Some documentation on this limitation would be useful on the WhatsApp integration page, or a counter/warning in the UI where you enter labels when the WhatsApp integration is activated.
[1] https://github.com/botpress/botpress/blob/a5b98964c81cedec99cc0522ec4d848a63ca3378/integrations/whatsapp/src/message-types/choice.ts#L13