WhatsApp Message Templates

Important!  If a customer messages the chatbot via the WhatsApp channel, the chatbot has 24 hours to respond to the customer with a free-form message. After this period, the message sent by the bot has to be a template type message.

Prerequisites:

  • Druid chatbot should be integrated with WhatsApp.

  • In order to use WhatsApp message templates, you need a Facebook Developer account. You get one when you subscribe for a WhatsApp business account.

  • A nexmo-whatsapp channel must already exist in the Druid ChatBot Platform for that user. This means that a free-form message conversation must have existed at least once for that user.

Define WhatsApp Message Templates

Log in Facebook for developers using the account associated to your WhatsApp account and define the message templates.

If someone within your organization have already defined them, then you can start using them in Druid.

The table below provides some message template examples.

Namespace Name Language Message Template
9b6b4fcb_da19_4a26_8fe8_78074a91b584 sandbox_doctors_appointment

en_US,

en_GB

Header: APPOINTMENT CONFIRMATION

Body: Your appointment with Doctor {{1}} is now confirmed for the {{2}} at {{3}} and the {{4}}.Footer: none

9b6b4fcb_da19_4a26_8fe8_78074a91b584 sandbox_shipping_update

en_US,

en_GB

Header: Shipping Update

Body:Your parcel from {{1}} is due to arrive on {{2}} between {{3}} and {{4}}. Not going to be in? You can either change the date of your delivery or instruct us to leave your parcel in your designated safe place. Footer:none

9b6b4fcb_da19_4a26_8fe8_78074a91b584 verify en-US, en-GB, ko, ja, it

Header: none

Body: {{1}} code: {{2}}. Valid for {{3}} minutes. Footer: none

The Namespace and Name are unique identifiers for the WhatsApp message templates.

Note:  Only templates created in your own namespace will work. Using a template with a namespace outside of your own will return an error.

For information on how to create WhatsApp message templates, see Facebook Developer Documentation.