WhatsApp templates#

Note

This feature is only available in Tattler’s enterprise edition.

Address type

Mobile number, in E.164 format.

Default gateway

WhatsApp’s business platform

Encoding

UTF-8.

Content type

Plain text or markdown.

Maximum content length

1024 characters.

Emojis

Yes.

Upstream cost

Limited free tier, then payment by volume. See WhatsApp pricing.

WhatsApp templates are similar to SMS templates.

Hint

WhatsApp requires you to have the user’s mobile phone number as the address of the recipient.

If you want to notify an event via WhatsApp, add the whatsapp folder within the event folder, and its content into a text file named body within it:

templates_base/
└── mywebapp/
    └── password_changed/
        └── whatsapp/                 <- WhatsApp vector
            └── body                  <- content template

Caution

The WhatsApp platform poses some requirements to deliver messages!

Meta – the company owning WhatsApp, poses a number of requirements to send WhatsApp messages:

  • You need to setup a developer account and business account.

  • You need to register a mobile number that your messages will appear as sent from. Meta will provide you one such number for testing purposes.

  • There are fees to pay beyond a certain volume of messages.

  • Your recipient obviously needs to have WhatsApp active on their mobile phone. WhatsApp provides no feedback on whether this is the case, so Tattler will always return success when delivering to WhatsApp.

  • New requirements are introduced over time. For example, you may be only be able to open a conversation with a template message, unless the user had contacted your source number first.

See WhatsApp Cloud API’s documentation for more details.