How to create SCG-WhatsApp Utility Template

 

In the WhatsApp realm, messages that are originated due to consumer actions or are requested by the consumer are in the UTILITY category.

This WhatsApp message category is used by the enterprises to provide feedback to the customer about the ongoing transaction specifics like accounts, amounts, status or any requested information.

Examples: Opt-In Management, Order Management, Accounts Alerts, Feedback Surveys and continue a conversation.

 

Purpose of this document

This document provides information on how to create a UTILITY WhatsApp template using SCG APIs.

 

SCG WhatsApp Template Management API

The SCG WhatsApp templates are the Meta regulated templates created to be used by the SCG API exclusively for the WhatsApp channel / type message. As an alternative for the SCG portal, the SCG API provides a way to manage SCG WhatsApp templates by calling API methods directly.

 

Example: creating a UTILITY Template by API call.

This example shows the SCG API call to create a WhatsApp UTILITY template.

We could use the Postman to directly execute an SCG API call with a POST request to create a simple template:

postman template creation.jpg

When executed, SCG API response looks like:

Postman POST - create template with meadia header - response.jpg

 

The cURL command to create the SCG WhatsApp template is:

curl -L -g 'https://api.syniverse.com/scg-external-api/api/v1/messaging/external_message_templates/{WABA}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {SCG_TOKEN}' \
-d '{
"language": "en_US",
"name": "da_test_043",
"category": "UTILITY",
"components": [
{
"type": "HEADER",
"format": "IMAGE",
"example": {
"header_handle": [
"{Media Handler}"
]
}
},
{
"text": "Thank you! Your order {{1}} is confirmed. We will let you know once your package is on its way.",
"type": "BODY",
"example": {
"body_text": [
[
"12345678"
]
]
}
}
]
}'

 

Example: using a UTILITY Template.

To send the UTILITY message using the new template in Postman

POST a message using the template.jpg

 

The message on the mobile device:

msg on mobile.jpg

 

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful

0 Comments

Please sign in to leave a comment.