# Webhook

### What is a Webhook?

A **webhook** is a mechanism that enables one system (the sender) to automatically send real-time data to another system (the receiver) when a specific event occurs. Instead of the receiver repeatedly asking (polling) for updates, the sender “pushes” the data to a specified **URL endpoint**.

### Overview

* **Flexible Event Processor:**\
  **EdgeTag webhook** can process any incoming event/data and forward it to either an external system or directly into the EdgeTag platform.
* **Custom JavaScript Logic:**\
  The webhook is written in plain JavaScript, allowing developers to fully customize how the input data is handled.

### Capabilities

* **Forward Data to External Servers**
  * Accepts incoming payloads and sends them to external APIs or endpoints.
  * Useful for integrations with third-party tools or internal services.
* **Format & Transform Data Before Forwarding**
  * Modify, enrich, or sanitize incoming payloads before sending them out.
  * Ensures compatibility with external systems that expect a specific structure.
* **Send Lead Events to EdgeTag**
  * Capture lead generation events and pass them into the EdgeTag system for tracking and automation.
* **Send Custom Events from CRMs to EdgeTag**
  * Connect with any CRM (HubSpot, Salesforce, Zoho, etc.) and forward custom events (e.g., deal updates, contact changes).
* **Create a Lead in HubSpot**
  * Automatically push incoming lead data into HubSpot CRM, enabling instant contact creation and workflow triggers.
* **Create a Lead in Salesforce**
  * Seamlessly integrate with Salesforce by creating new leads from incoming webhook data.
  * Helps align sales teams by automatically updating records with fresh leads.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgetag.io/channels/webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
