Saltar al contenido principal

BroadcastVariables

De dónde viene cada variable de la plantilla: header y body por el marcador ("1", "2"… o el nombre), buttons por el índice del botón. Toda fuente de contacto o campo exige un fallback para quien no tiene el dato. Un encabezado de medio necesita headerMedia.

header object
property name* VariableSource

contact (un dato del contacto), attribute (un campo personalizado) o static (un valor fijo).

sourcestringrequired

Possible values: [contact, attribute, static]

keystring
Example: first_name
fallbackstring

Possible values: non-empty and <= 200 characters

valuestring

Possible values: non-empty and <= 1000 characters

body object
property name* VariableSource

contact (un dato del contacto), attribute (un campo personalizado) o static (un valor fijo).

sourcestringrequired

Possible values: [contact, attribute, static]

keystring
Example: first_name
fallbackstring

Possible values: non-empty and <= 200 characters

valuestring

Possible values: non-empty and <= 1000 characters

buttons object
property name* VariableSource

contact (un dato del contacto), attribute (un campo personalizado) o static (un valor fijo).

sourcestringrequired

Possible values: [contact, attribute, static]

keystring
Example: first_name
fallbackstring

Possible values: non-empty and <= 200 characters

valuestring

Possible values: non-empty and <= 1000 characters

headerMedia object
typestring

Possible values: [image, video, document]

linkstring<uri>

Possible values: <= 2000 characters

idstring

Possible values: <= 100 characters

filenamestring

Possible values: <= 240 characters

BroadcastVariables
{
"body": {
"1": {
"source": "contact",
"key": "first_name",
"fallback": "cliente"
},
"2": {
"source": "static",
"value": "BLACK20"
}
}
}