Make your Botpress understand WhatsApp Interactive List Messages.
- Open the modules dashboard and upload the
whatsapp-menu.tgzusing the Upload Module button. - Restart the server.
- Unpack the module in the modules dashboard.
- Activate the module in the modules dashboard.
- Open the bot you want to add the custom type to
- Go to the code editor
- Add the following line to the
bot.config.jsonfile under the ``content-types` key:
{
"whatsapp-menu-choice"
}For example, it should be like this:
"contentTypes": [
"builtin_action-button",
"builtin_audio",
"builtin_card",
"builtin_carousel",
"dropdown",
"builtin_file",
"builtin_image",
"builtin_location",
"builtin_single-choice",
"builtin_text",
"builtin_video",
"whatsapp-menu-choice"
]- Restart the server (again!). A red gear will appear on the bottom right of the screen. Click on it to restart.
The custom type is now available in the content editor.
From the content editor, click on the + button and select WhatsApp Menu Choice. You will be prompted to enter the data for the menu:
The message content is the text that will be displayed to the user when offering the menu. You have to write the section of each row, even if you are using the same section as the row above.
The button is the text displayed as button on the interactive message on WhatsApp.
Once created, add a new choice skill node to your bot. When picking what content you want to display, select the 'All' category and pick the content you just created.
Tada! You now have a WhatsApp menu in your bot.
This project is not affiliated with WhatsApp or Facebook in any way and has been created with ❤️ by the Maldita.es Foundation and Botalite.
The Maldita.es Foundation is a non-profit organization based in Spain focused on the control of disinformation and public discourse through fact-checking and data journalism techniques.
Botalite is a tech solution that serves both citizens & fact-checkers: A natural language chatbot in WhatsApp, and adaptable social messaging apps, linked to a platform to tackle disinformation in private messaging channels in all formats: text, audio, image and video. It was awarded with the 2021 European Press Prize for Innovation.








