Home Campaigns and templates Use a header and buttons with variables in a campaign

Use a header and buttons with variables in a campaign

Last updated on Nov 05, 2026

If your template has data that changes with each send, the wizard asks for it in "The message" («El mensaje») step: the header variable, the file for a header with an image, video or document, a button's address or the code of a copy button.

Who it's for: any panel user with write permission (the Collaborator and Developer roles can only view). Screen: https://micuenta.whatsmarketing.es/campanas/nueva

Before you start

  • A Meta-approved template with one of these elements: a variable in the text header, a header with a file, a link button with a variable or a "Copy code" («Copiar código») button.
  • If the header has a file, have it published at an address that starts with https://.
  • If the data comes from the contact, check your contacts have it. Variable 1 and Variable 2 are filled in when you import your list.

Steps

  1. In the campaign wizard, go to "The message" («El mensaje») step and choose the template. Its row says how much data needs completing.
  2. In the "Data for each send" («Datos de cada envío») table you'll see one row per item: {{1}}, {{2}}…, "Header" («Encabezado»), "Header image" («Imagen del encabezado»), "Header video" («Video del encabezado»), "Header document" («Documento del encabezado») or "Button" («Botón») with its text.
  3. Under "Comes from" («Sale de»), choose a contact field (First name, Full name, Company, Phone, Email, Country, Variable 1 or Variable 2) or "Fixed text" («Texto fijo»).
  4. If you chose a field, type a fallback text if you want one in case it's empty. If you chose "Fixed text", type the text, which will be the same for everyone.
  5. On the file rows, paste the file's address under "Fixed text or fallback" («Texto fijo o reserva»).
  6. Check the preview and click "Next: review and send →" («Siguiente: revisar y enviar →»).

What you see when you're done

  • Each recipient gets the header and the buttons with their data.
  • The "Next: review and send →" button activates when all rows are complete.

If something goes wrong

  • "It must start with https://" («Tiene que empezar con https://»): the file's address isn't valid. Use a full https address.
  • The "Next: review and send →" button doesn't activate: a row hasn't been chosen, a "Fixed text" is empty or the file's address is missing.
  • The template isn't on the list: it must be approved and match the category and number you chose in the first step.

When to ask 24/7 Support for help

If Meta rejects the sends because of the header or the buttons even though the data is complete. 24/7 Support: https://whatsappmarketing.zendesk.com/hc/es