6 min · Jul 31
Learn how to set up a webhook to send WhatsApp from a form: one POST to the Blind Agents API with your API key creates the contact and fires the message.
Want a WhatsApp message to reach someone the instant they submit your form? The cleanest way to do it is a webhook to send WhatsApp from a form: your form makes an HTTP call (a POST) to the Blind Agents API, we create the contact, and we fire the WhatsApp message in seconds. This guide walks you through the API event automation step by step, with the request body example and the API-key header included.
The idea is simple: every time your form is submitted, an event travels to Blind Agents and triggers an action. No polling, no batch export, no waiting for a nightly sync—the message goes out while the lead is still warm and thinking about you. Here is the path:
WhatsApp only lets you start a conversation with an approved template, which then opens a 24-hour window for free-form chat. That is why the first message the webhook fires is always a template; the back-and-forth with the agent happens inside that window.
Everything is managed in the Automations section. You will create an automation whose trigger is an API event.
The API key is the credential that identifies your organization on every call. It is sent in the BLIND-AGENTS-API-KEY header. Treat it like a password: keep it on your server or inside your no-code tool, never in code that runs in a visitor's browser.
When someone submits the form, your backend (or Zapier/Make) sends a POST to the events endpoint with the API-key header. Here is the full request:
“curl -X POST https://api.blindagents.com/v1/events -H "BLIND-AGENTS-API-KEY: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"event":"new_lead","contact":{"name":"Ada","email":"ada@acme.com","phone":"+57..."},"company":{"name":"ACME"}}'”
The body carries the event name plus the contact and company data. This is the minimal example:
“{"event":"new_lead","contact":{"name":"Ada","email":"ada@acme.com","phone":"+57..."},"company":{"name":"ACME"}}”
With that, Blind Agents creates or updates the contact (matching it by email or phone), records or updates the company ACME, and fires the WhatsApp message using your approved template.
Send the phone number in E.164 international format, with the + sign and country code (for example, +573001234567). A number without a country code cannot be reached on WhatsApp. And remember: the API key belongs on the server, never exposed in the browser.
If your form can't POST on its own, you don't need to program anything. Tools like Zapier or Make ship a ready-made "Webhook" step: paste the endpoint URL, add the BLIND-AGENTS-API-KEY header, and build the body from your form fields. The result is the same webhook to send WhatsApp from a form, set up in minutes and with no code.
También te puede interesar
3 min
Configura tu primer agente de IA en 5 minutos sin código
Sin developers, sin prompts complejos, sin SQL. Aquí los pasos exactos.
3 min
Cómo darle un objetivo a tu agente sin saber prompting
No hace falta entender LLMs. Hace falta saber qué quieres que haga el agente. Aquí la fórmula.
3 min
Cómo conectar tu base de datos al agente sin escribir SQL
Conexiones predefinidas, queries con un wizard visual, y el agente decide cuándo usarlas.