JSON array with the WhatsApp recipients (Telefono parameter) and their associated variables if you want to personalize. You can add variables to personalize Header, footer, buttons, etc. per recipient. Only the phone is mandatory, plus the template variables when sending that message type; the other variables are added to personalize other message types and must be included in the message sections as {{Variable}} (for example in the header, body or footer of the message)
For example:
[
{
\"Telefono\": \"34600000001\",
\"Nombre\": \"Pedro Aicart\",
\"Email\": \"pedro@dominio.com\"
\"idMensajeRespondido\": \"100299924445\"
},
{
\"Telefono\": \"34600000002\",
\"Nombre\": \"Ana Aguado\",
\"Email\": \"ana@empresa.com\"
}
]
At minimum you must provide each recipient phone; you can also include idMensajeRespondido if the message is a direct reply to one you have received. In certain message types such as Reaccion it is mandatory to provide the idMensajeRespondido parameter per recipient, since it is a direct reaction to a received message.
The additional Variables (besides Telefono and any variables you include to personalize the DatosMensaje parameter) to include per recipient depend on the message type.
NOTE: To send emojis (for example in the "REACCION" message type or anywhere in the text of other message types), you can do it directly with the emoji 😃 or by using UTF-16 codes, for example: \uD83D\uDE01
Plantilla For each recipient you must include the template variables to personalize the message (those written when creating it as {{Nombre}}, {{1}}, etc.).
Texto - You must send the "Texto" parameter per recipient; it can be personalized.
Texto - The text message for each recipient
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.
Imagen - Image message; for each recipient you must include:
Imagen - URL of the image to send to that recipient
Descripcion - Text message accompanying the image for that recipient.
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.
Documento - Sending a document
Documento - URL of the document to send
Descripcion - Text message accompanying the document (may contain per-recipient variables).
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.
Ubicacion - Sending a location.
Latitud - Latitude of the location, for example 40.7522 (dot as decimal separator)
Longitud - Longitude of the location, for example -3.4562 (dot as decimal separator)
Nombre - Name of the location
Direccion - Address of the location
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.
SolicitarUbicacion - Requests the recipient location.
Texto - The text message to send to the recipient to request their location. Example: To send you restaurant suggestions in your area we need your location.
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.
Lista - Sends a list of options
Lista You must include a Lista parameter that is itself an array with ID, Titulo and Descripcion for each list item. This way the list is personalizable per recipient. Example "lista":[{"ID":"1","Titulo":"first","Descripcion":"This is the first"},{"ID":"2","Titulo":"second","Descripcion":"This is the second"},{"ID":"3","Titulo":"third","Descripcion":"This is the third"}]
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.
BotonesRespuesta - Sending a list of reply buttons.
Botones It is an array with ID and Valor for each Button. This way, the button list is personalizable per recipient. Example "Botones":[{"Id":"Id1","Valor":"Button 1"},{"Id":"ident2","Valor":"My second button"}]
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.
Reaccion - Send a reaction to a message received from your customer
Emoji - Value of the Emoji to send as a reaction to the received message.
idMensajeRecibido (Required) - Value of the id of the received message you want to react to.
BotonesCTA - Sending a CTA (Click to Action) button
Boton button text
Url The URL to which the recipient will be redirected when they tap the button
idMensajeRecibido (Optional) - Value of the id of the received message if you want the reply to appear related to it.