# Using the Webhook connector

> 1. **Select the HTTP Webhook trigger**

## Using the HTTP Webhook connector from Studio

1. **Select the HTTP Webhook trigger**

   In Studio, select the **HTTP Webhook** trigger.
2. **Create or select a connection**

   Use an existing connection or create a new one. Learn how to [create connections](https://docs.uipath.com/integration-service/automation-suite/2.2510/user-guide/uipath-http-webhook-authentication).
3. **Copy the webhook URL**

   Retrieve the generated webhook URL from the trigger activity.
4. **Configure your data filter**

   Define the conditions under which the webhook event should trigger.
5. **Publish your process**

   Publish the workflow so it is available to be triggered.

6. **Register the webhook URL in your application**

   Paste the copied webhook URL from step 3 into your vendor application's webhook configuration.

## Using the HTTP Webhook connector from Orchestrator

1. In Orchestrator, select **Open Event Triggers** > **Add a new trigger**.
2. Select your process, provide a name, and click **Next**.
3. Select **Connector: HTTP Webhook**.
4. **Create or select a connection.**
    
    Use an existing connection or create a new one. Learn how to [create connections](https://docs.uipath.com/integration-service/automation-suite/2.2510/user-guide/uipath-http-webhook-authentication).
5. **Configure your data filter.**
    
    Define the conditions under which the webhook event should trigger. Learn how to [configure data filters](#configuring-data-filters).
6. Copy the webhook URL for later use.
7. Add the trigger to complete setup.
8. In your workflow, use the [Get Trigger Event Output](https://docs.uipath.com/en/activities/other/latest/integration-service/uipath-http-webhook-Get-Trigger-Event-Output) activity to utilize the webhook's header or body.

   Pass `UiPathEventObjectId` (data type=Text) as the input argument for the required property **UiPath event object ID**.

## Configuring data filters

Data filters can be applied to both the body and the header of the provider's response.

Let's assume the provider returns a body response as follows:
```
{
  "id": "exampleCartId",
  "token": "exampleCartId",
  "email":"example@email.com"
  }
```

If you want your process to trigger when the token contains `exampleCartId`, here's how you can set it up in Orchestrator event triggers:

![](https://dev-assets.cms.uipath.com/assets/images/integration-service/data-filter-orch-ef5b5baa.webp)

:::note
When a JSON property includes a hyphen (`-`), it must be enclosed in double quotes.\
For example: `header."x-shopify-shop-domain"` contains `ecommerce`.
:::

### Studio event triggers

To accomplish the same behavior using the HTTP Webhook trigger activity in Studio, configure the filter as follows:

![](https://dev-assets.cms.uipath.com/assets/images/integration-service/data-filter-stud-18ae115d.webp)

## Publishing

Publish your workflow starting
from an HTTP Webhook event to activate the public
facing URL. You can then test this by triggering
events in the vendor application or send a direct
`curl` command to the
URL:

```
curl -X POST https://{your-automation-suite-host}/{webhook_url} -d "example 
            curl call"
```

When
Integration Service accepts the event, it responds
back with the following JSON payload:

```
{ "webhookEventId": "wr-4ad55717e1.a7bbf1e8-72a1-4371-82d2-d{example}", "correlationId": "384d496c-2f6d-{example}" }
```

:::note
This payload is useful
for testing, but not necessary anywhere within
your workflow.
:::
