Let’s say Global Voyager wants to create several message templates for specific purposes. For example, they want to make one template for a customer greeting and another to send PDF copies of relevant documents.
Before you begin coding, take a moment to understand how the template creation iran mobile database process works and which types of parameters it accepts. Additionally, it is crucial to note that Meta reviews templates daily and can reject them if they do not adhere to the guidelines as specified.
The documentation states that you need to make a POST request to message_templates using your WhatsApp Business ID.
The following parameters are accepted:
category of type ENUM
components of a type JSON array
language
name
The components parameter defines the body of the message template. It accepts the following sub-parameters:
type — of the type ENUM of HEADER, BODY, FOOTER, and BUTTONS
format — of the type ENUM of TEXT, IMAGE, DOCUMENT, VIDEO, LOCATION
text — of the type string
buttons — of the type JSON array
Now, you have a text-based message template to greet customers and a media-based message template to send a PDF — and as per our example, these would be perfect for sending travel tickets or itinerary confirmations.
Creating a New Message Template
-
- Posts: 464
- Joined: Mon Dec 23, 2024 5:30 am