WhatsAppTemplateComponentParameter
Text parameters require variable and text. DYNAMIC template media requires a link in the first header parameter (id alone does not satisfy TEMPLATE_HEADER_MEDIA_LINK_REQUIRED); STATIC media uses the catalog sample URL. Special button parameters remain subject to provider/template compatibility.
- Option 1
- Option 2
Possible values: [text]
- Option 1
- Option 2
Possible values: [payload]
Possible values: [text, image, document, video, location, coupon_code, action, payload]
Possible values: non-empty
image object
document object
video object
location object
Coordinates are required. WhatsApp and Telegram use native location/venue presentation; Telegram venue needs name and address. Instagram/Messenger use a text Maps link fallback.
Possible values: >= -90 and <= 90
Possible values: >= -180 and <= 180
Required for type:text. Positional identifier such as "1", or a named template variable; named templates map this value to parameter_name.
Possible values: non-empty
Possible values: non-empty and <= 1024 characters
action object
Provider-specific action record. Flow components use the stricter WhatsAppTemplateFlowParameter shape.
Provider-specific action record. Flow components use the stricter WhatsAppTemplateFlowParameter shape.
{
"type": "text",
"text": "string",
"image": {
"link": "string",
"id": "string"
},
"document": {
"link": "string",
"filename": "string",
"id": "string"
},
"video": {
"link": "string",
"id": "string"
},
"location": {
"latitude": 0,
"longitude": 0,
"name": "string",
"address": "string"
},
"variable": "string",
"coupon_code": "string",
"payload": "string",
"action": {}
}