Tell customers their order left the warehouse, with a dynamic tracking link and delivery estimate. Approved as a utility template.
Share of submissions of this template that Meta approved.
✳Approval tip
Utility templates must stay transactional: no discount or upsell in the text, or Meta recategorizes them as marketing.
Order {{order}} shipped
Hi {{name}}, your order *{{order}}* left our warehouse today and arrives within _3 business days_.
Acme Store{{name}}Maria{{order}}4512</>For developers
The template as JSON for @talqui-oss/template-builder, and the Cloud API request that creates it. Replace the $ variables with your account values.
order_shipped.json
{
"name": "order_shipped",
"language": "en_US",
"category": "UTILITY",
"header": {
"type": "TEXT",
"text": "Order {{order}} shipped"
},
"body": {
"text": "Hi {{name}}, your order *{{order}}* left our warehouse today and arrives within _3 business days_."
},
"footer": {
"text": "Acme Store"
},
"buttons": [
{
"type": "URL",
"text": "Track order",
"url": "https://acme.com/track/{{order}}"
}
],
"variables": {
"name": {
"example": "Maria"
},
"order": {
"example": "4512"
}
}
}Create with the Meta Cloud API
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "order_shipped",
"language": "en_US",
"category": "UTILITY",
"parameter_format": "NAMED",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Order {{order}} shipped",
"example": {
"header_text_named_params": [
{
"param_name": "order",
"example": "4512"
}
]
}
},
{
"type": "BODY",
"text": "Hi {{name}}, your order *{{order}}* left our warehouse today and arrives within _3 business days_.",
"example": {
"body_text_named_params": [
{
"param_name": "name",
"example": "Maria"
},
{
"param_name": "order",
"example": "4512"
}
]
}
},
{
"type": "FOOTER",
"text": "Acme Store"
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "URL",
"text": "Track order",
"url": "https://acme.com/track/{{1}}",
"example": [
"https://acme.com/track/4512"
]
}
]
}
]
}'+Related