Templates
What are templates, and how to use them
What are Templates?
Templates are exactly what they sound like, they are pre-designed message formats that businesses use for automated communication with customers.
First Steps
Requests must have a unique name / language pair
name
can only contain lowercase, underscore characters, and numbers
When entering the initial fields, there are some things to keep in mind.
Components
A template will consist of its basic information such as name
, category
, etc. Its structure is determined by components . The request can have up to four objects each having a different type, either HEADER, BODY, FOOTER or BUTTONS.
You can add images, videos, and text to the HEADER
Optional
Maximum of 1 tag
Must have a format of either TEXT, DOCUMENT, IMAGE, VIDEO
Limited to 60 Characters
The image format will require an example image url from https://www.channel360.co.za/api/templates/upload. The url must then again be used in campaign creation as a tag.
Headers don't need an example property, you simply add the parameter and off you go:
Tags
Tags are used in conjunction with the component parameters. They are essentially a means to add dynamic data into the HEADER, BODY and BUTTONS.
Tags can be created for the HEAD or BODY content types
index should start at 1 and increment up
index of tag should match the order that you want to populate replacement tags for the HEAD / BODY / BUTTONS
Tag Structure
Tag Fields
Tag Types
Want to upload an image?
This endpoint facilitates the uploading of an image.
Upload Image
Want to upload a Template?
This endpoint facilitates the uploading of a Template.
Upload Template
Want to ingest a Template?
This endpoint allows you to ingest and process a template.
Ingest Template
Want to get your Template approved?
The link below specifies all that needs to be known about getting your templates approved.
Get your template approved
WhatsApp has rules! We cannot just make any message we want and send them off to millions of people. It must meet the criteria. Only then can we send millions of messages.
Last updated