> For the complete documentation index, see [llms.txt](https://docs.hablla.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hablla.com/hablla-docs-es/flujos-de-automatizaciones/todos-los-componentes/activadores-y-http/webhook.md). Agents can also search and read this documentation through its [MCP server](https://docs.hablla.com/~gitbook/mcp).

# Webhook

### Visión General

El componente Webhook de la plataforma Hablla se utiliza para iniciar flujos automatizados basados en eventos externos. Actúa como una puerta de entrada, recibiendo datos mediante solicitudes HTTP (generalmente POST) y activando el flujo correspondiente de inmediato.

***

### Funcionalidad Principal

* 🔄 Integración en tiempo real con sistemas externos\ <br>
* 🔧 Activación automática de flujos\ <br>
* ✅ Ejecución inmediata tras la recepción de los datos\ <br>
* 📁 Transmisión de datos estructurados (JSON)\ <br>

***

### Cómo Funciona el Webhook

En la imagen proporcionada, tenemos dos ejemplos de ejecución de webhook:

#### Ejemplo 1 – Ejecución con Código y POST

1. Webhook (IMMEDIATELY): El componente recibe una solicitud externa con datos (ej.: CRM, formularios, ERPs, etc.).\ <br>
2. Código: Se ejecuta un bloque de código inmediatamente después. Este puede procesar, limpiar o transformar los datos recibidos.\ <br>
3. Solicitud HTTP (POST): Los datos procesados se envían a otro sistema o servicio mediante una nueva solicitud HTTP.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdv40lAbKoEOW5_FBQ_hNT5LDYcqgk7JvF3v6B8kx5GupTct8po6J1Objw0csyPftPuk--bWxJtHPSAvxUlf7eSTeUexBTLWr_Sfm17aSFCVpULYNiohjaGrntrv9T--nm68bTpnA?key=sgLkhO3rLtu4xk-SUxqLWQ)

#### Ejemplo 2 – Ejecución con Formateo, Creación y Envío de HSM

1. Webhook (IMMEDIATELY): Recibe los datos del lead o cliente.\ <br>
2. Formatear Teléfono: El número de teléfono recibido se normaliza al formato internacional, necesario para el envío vía WhatsApp.\ <br>
3. Hablla (CREATE\_OR\_UPDATE): Crea o actualiza la persona (person) dentro del CRM de Hablla con los datos recibidos.\ <br>
4. HSM de WhatsApp: Tras el registro, una plantilla (mensaje HSM) se envía automáticamente para retomar la atención con el cliente.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXehdYtgA0dsBK0gYOwvR9AV559oNyFSEx-MeX3ddtRer6wlBQgNbT6kE_-7D344Gxrogsk1-p2gbjrUxmZpp1r_B6jReXkSVXtDyHk5J6PJvy71JFzebLRPmOsSa7Z0rsuuCyEZNw?key=sgLkhO3rLtu4xk-SUxqLWQ)\ <br>

***

### Principales Casos de Uso

* ✨ Integración con ERPs y CRMs\ <br>
* 🚀 Disparo automático de flujos desde landing pages o formularios\ <br>
* 📊 Envío de datos a sistemas de BI o monitoreo\ <br>
* 🛠️ Actualización de registros o leads\ <br>
* 💬 Reenganche automático con leads vía HSM (Plantilla de WhatsApp)\ <br>

***

### Beneficios

* ⏱ Ejecución instantánea\ <br>
* 🛑 Reducción de errores manuales\ <br>
* 📊 Estandarización en la recepción de datos\ <br>
* 🚀 Capacidad de escalar integraciones de forma rápida\ <br>

***

### Ejemplo de Solicitud Webhook

POST <https://webhook.hablla.com/v1/682f73fc0a50>...........

{

&#x20; "nombre": "João Silva",

&#x20; "email": "<joao@email.com>",

&#x20; "teléfono": "11999998888"

}

Este webhook activa un flujo que, al recibir los datos, formatea el teléfono, crea o actualiza el contacto dentro de Hablla y envía un mensaje vía WhatsApp (HSM) retomando la atención con el lead.

***

El componente webhook es ideal para operaciones que requieren respuesta inmediata a eventos externos, promoviendo integraciones eficaces, fiables y en tiempo real.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hablla.com/hablla-docs-es/flujos-de-automatizaciones/todos-los-componentes/activadores-y-http/webhook.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
