> For the complete documentation index, see [llms.txt](https://docs.empowergpt.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.empowergpt.ai/workflows/block-types/webhook-trigger.md).

# Webhook Trigger

The **Webhook Trigger** allows external applications and services to start an EmpowerGPT workflow by sending an HTTP request to a unique webhook endpoint.

It acts as a bridge between EmpowerGPT and external systems, enabling workflows to react to events and receive data from applications that may not have a native integration with EmpowerGPT.

<div data-with-frame="true"><figure><img src="https://2192711725-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc2KRGWrkyRO0iZN5Lyeg%2Fuploads%2FucnrI2NfOJldNE6czFlt%2Fimage.png?alt=media&amp;token=5c10b762-1dcc-40b5-8a2c-e119968e81e3" alt="" width="563"><figcaption></figcaption></figure></div>

### When to Use the Webhook Trigger

Use the Webhook Trigger when a workflow needs to be initiated by an external system.

Common use cases include:

* Receiving events from external applications
* Starting workflows from your own application or backend
* Processing data sent by third-party services
* Building custom integrations with EmpowerGPT
* Creating API-driven workflows
* Connecting applications that support webhooks
* Triggering one workflow from another system or process

For example, an external application could send customer information to an EmpowerGPT webhook whenever a new customer is created. The workflow could then analyze the information, process documents, or perform additional actions.

***

### Configuration

Add the **Webhook Trigger** as the starting block of your workflow.

The Webhook Trigger provides the information required for an external application to send requests to the workflow.

You can configure:

* **Authentication Methods**

The available options depend on the selected authentication method.

***

## Authentication Methods

Authentication determines how EmpowerGPT verifies requests sent to the webhook.

The Webhook Trigger supports three authentication methods:

1. **No Authentication**
2. **Bearer Token**
3. **Basic Authentication**

Choose the authentication method according to the requirements of the system calling your webhook.

### No Authentication

Select **No Authentication** when the external system does not need to provide authentication credentials when calling the webhook.

Requests can be sent directly to the webhook endpoint.

This option is useful for testing or scenarios where authentication is handled through another mechanism.

> **Note:** Anyone with access to an unauthenticated webhook URL may be able to trigger the workflow. For production workflows, use an authentication method whenever authentication is required for your use case.

***

### Bearer Token

Select **Bearer Token** to authenticate webhook requests using a secret token.

The calling application must provide the configured token with its request.

#### Webhook Secret

The **Webhook Secret** is used to authenticate incoming requests.

Configure the secret that the external application must provide when calling the webhook. The secret should be treated as sensitive information and should only be shared with systems authorized to trigger the workflow.

The calling system sends the token as part of the request's authorization information.

#### Fields to Add

Use **Fields to Add** to define the information that the webhook is expected to receive.

Each configured field becomes available as input data within the workflow and can be referenced by subsequent blocks.

For example, you could define fields such as:

* `customer_name`
* `email`
* `document`
* `request_type`

The fields you configure should correspond to the data sent by the external application.

#### Webhook cURL

The **Webhook cURL** provides a ready-to-use example request based on the current webhook configuration.

For Bearer Token authentication, the generated cURL includes the webhook endpoint, authentication information, configured fields, and request structure required to call the webhook.

You can copy the cURL command to test the webhook or use it as a reference when configuring the external application.

> **Tip:** When you change the authentication or fields configured in the Webhook Trigger, use the latest Webhook cURL as the reference for your request.

***

### Basic Authentication

Select **Basic Authentication** when the calling application should authenticate using a username and password.

Both credentials must be provided by the external application when sending a request to the webhook.

#### Username

Enter the **Username** that should be used to authenticate incoming webhook requests.

The external application must provide the same username when calling the webhook.

#### Password

Enter the **Password** associated with the configured username.

The username and password together are used to authenticate the incoming request.

Keep these credentials secure and only provide them to applications authorized to trigger the workflow.

#### Fields to Add

Use **Fields to Add** to define the data that the external application will send to the workflow.

For example:

* `customer_id`
* `event_type`
* `message`
* `file`

These fields become available as variables and can be used by subsequent blocks in the workflow.

#### Webhook cURL

The **Webhook cURL** provides an example request containing the webhook URL, Basic Authentication credentials, configured fields, and required request structure.

Copy the generated cURL command to test your webhook or use it as a reference when configuring the calling application.

***

## How It Works

When an external application calls the webhook, EmpowerGPT receives the request and uses it to start the workflow.

The process is:

**External Application → Webhook Trigger → Workflow Execution**

When authentication is enabled, EmpowerGPT first verifies the credentials provided with the request.

If authentication succeeds, the data received through the configured webhook fields becomes available to the workflow.

For example:

**External Application → Webhook Trigger → Agent → Output**

The external application could send a document or other information through the webhook. An Agent could then process the received information, and the result could be passed to subsequent blocks.

***

## Using Webhook Fields in Your Workflow

Fields received by the Webhook Trigger can be used as variables in subsequent workflow blocks.

For example, suppose you configure the following fields:

`customer_name`

`email`

`request`

When an external system sends values for these fields, they become available to other blocks in the workflow.

You could then configure an Agent with instructions such as:

> Review the request received from the customer and generate a concise response.

The values received through the Webhook Trigger can be selected as inputs for the Agent.

This allows external applications to dynamically provide information each time the workflow executes.

***

## Testing the Webhook

After configuring the Webhook Trigger, use the generated **Webhook cURL** to test your configuration.

Copy the cURL command and execute it from a supported terminal or API testing tool.

When the request is received successfully, the Webhook Trigger starts the workflow and passes the received fields to the connected blocks.

If the webhook does not trigger as expected, verify:

* The correct webhook endpoint is being used.
* The selected authentication method matches the request.
* The Bearer Token or Basic Authentication credentials are correct.
* All required fields are included in the request.
* The request structure matches the generated Webhook cURL.

***

### Security Recommendations

Webhook URLs and authentication credentials should be treated as sensitive information.

For production workflows:

* Use **Bearer Token** or **Basic Authentication** when the endpoint needs to be protected.
* Do not expose webhook secrets, usernames, or passwords in public repositories or client-side code.
* Store credentials securely in the calling application.
* Share webhook credentials only with systems that are authorized to trigger the workflow.

The Webhook Trigger provides a flexible way to connect EmpowerGPT Workflows with external applications while allowing you to control how requests are authenticated and what information enters the workflow.


---

# 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.empowergpt.ai/workflows/block-types/webhook-trigger.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.
