# Create your first webhook

### Steps to create a webhook:

1. [Log in](https://dispatch.esprezzo.io/login) to the Dispatch app
2. From the [Dashboard](https://dispatch-staging.esprezzo.io/dashboard), select a Trigger from the Trigger dropdown (event you want Dispatch to listen for, i.e. when a wallet balance changes or goes above or below a threshold, a smart contract emits certain events, etc.)
3. Select **Webhook** as the Action:<br>

   <figure><img src="/files/iE1V99SpygTIyfvkJzBT" alt="Selecting webhook as the automated action from Esprezzo Dispatch dashboard"><figcaption></figcaption></figure>
4. Click the **Complete Patch** button, which takes you to the Patch Creator
5. Configure Trigger settings
6. Create a new webhook in step 4, Action details: from the Webhook dropdown menu, select "Click here to add a new webhook" <br>

   <figure><img src="/files/rliAe5tDoP6oHkxXk0e7" alt=""><figcaption></figcaption></figure>
7. In the "Create webhook" modal, add a descriptive name for your webhook — this is recommended especially if you plan to use multiple webhooks. Provide the webhook endpoint URL — the callback URL your app will use to accept the incoming webhook&#x20;
8. Test to make sure Dispatch is able to send to your URL
9. Click the **Turn Patch On** button :tada:

{% hint style="info" %}
**Tip**: for quick testing, get a unique webhook URL via [webhook.site](https://webhook.site/), paste the URL into Dispatch, and see webhook notifications as they come in.
{% endhint %}

Once you've created a webhook, you can select it as the output for any other Patches you create by selecting the webhook by name in the Patch Creator and repeating the other steps above.

You can see and manage all your webhooks by visiting [Connected Apps](https://dispatch-staging.esprezzo.io/account/connected-apps) under your account settings.


---

# 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.esprezzo.io/webhooks/create-your-first-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.
