Home Integrations Trigger an automation with a webhook

Trigger an automation with a webhook

Last updated on Nov 05, 2026

With the "arrives by webhook" trigger («llega por webhook»), your phone system or your form calls a URL with the person's phone number and your WhatsApp template reaches them right away. For example: "Press 1 to receive it on WhatsApp". It works with any provider.

Who it's for: the organisation's administrator. Only that role sees the URL. Screen: https://micuenta.whatsmarketing.es/automatizaciones/nueva

Before you start

  • A template approved by Meta with what the person asked for. For a phone system, preferably in the Utility category.
  • Someone who can configure your phone system or form: all it needs to do is call a URL with the phone number.
  • If it's a phone system, it should say clearly "press 1 to receive it on WhatsApp": pressing 1 counts as the person's acceptance.
  • Each send counts like that of any other template.

Steps

  1. Go to Send → Automations («Enviar» → «Automatizaciones») and click "New automation" («Nueva automatización»).
  2. Choose the "They press 1 in your IVR" («Pulsan 1 en tu IVR») template and click "Use" («Usar»). You can also get there from Account → Integrations («Cuenta» → «Integraciones»), with "See how" («Ver cómo») on the "Your phone system or IVR" («Tu centralita o IVR») card and then "Create the automation" («Crear la automatización»). If you start from scratch, choose the trigger "arrives by webhook (IVR, form…)" («llega por webhook (IVR, formulario…)») under "When" («Cuando»).
  3. In the "Then" («Entonces») step, choose the approved template to send.
  4. If your system sends numbers without an international prefix, choose their country in "Numbers without an international prefix, from" («Números sin prefijo internacional, de»).
  5. Click "Save and activate" («Guardar y activar»). The URL only works while the automation is active.
  6. Under "Your URL" («Tu URL»), click "Copy" («Copiar») and pass it to your technician. Anyone with the URL can trigger it, so share it only with that person.
  7. Your technician sets up the phone system or form to call the URL with the "telefono" field. The URL block includes guides for "Any system" («Cualquier sistema»), "Asterisk, FreePBX o Issabel", "Twilio (Studio)" and "3CX, Vonage, Aircall, Genesys y otros".

What you see when you're done

  • Under the URL, "Last notice received…" («Último aviso recibido…») as soon as the first one arrives. Until then you see "No notice has arrived yet" («Todavía no llegó ningún aviso.»).
  • On the "History" («Historial») tab, each run of the automation.
  • The contact is created or reused by phone number. If your system sends "nombre", "variable1" or "variable2", they stay on the contact's record.
  • If the same person presses several times within 10 minutes, they receive a single message. Anyone who has opted out receives nothing, even if they press.

If something goes wrong

  • Your technician gets a 400: the phone number is missing or invalid. Send it with the international prefix or choose the country in the automation.
  • They get a 404: the URL was copied wrong or another one was generated.
  • They get a 409: the automation isn't active. Activate it.
  • The URL has reached its cap, 300 notices in an hour or 3,000 in a day: it stops sending to protect your balance and we let you know through the bell. If those notices aren't from your system, generate another URL.
  • You think someone else has the URL: click "Generate another URL" («Generar otra URL») and "Yes, generate another" («Sí, generar otra»). The old one stops working immediately, so the new one must be pasted into your system.
  • You don't see the URL: save your changes. If it still doesn't appear, check that your role is administrator.

When to ask 24/7 Support for help

If your phone provider doesn't allow calling a URL, if you need more volume than the cap, or if the automation is active and doesn't run. 24/7 Support: https://whatsappmarketing.zendesk.com/hc/es