# Creating a Webhook Alert

1. Open the **Webhook Alerts** module in the **Alerts** section.
2. Click **Create** <img src="https://content.gitbook.com/content/UXBUSBEFFjS09JYc1Hu5/blobs/UoqEt3QpThCRGUNs0pJJ/create-24px.svg" alt="" data-size="line">in the top right corner.
3. Fill in the required fields (marked with \*) for each step in the dialogue.
4. Click **Create**.

## Create Webhook Alert

Below is an example of a Webhook Alert with an Expression requiring a change of the field bankName and the swift address to equal a number for a notification to be sent. The expression builder allows building complex conditions to limit the amount of notifications to be informative and wanted. \
\
Its also possible to create a Webhook Alert with an Alert Script as the trigger.

{% hint style="info" %}
In Expression Builder, the `Field` can be selected with the Customize Columns modal, like in lists. Conditions can be customized in detail using grouping `Add Group` , to allow multiple combinations of `AND` /`OR` conditions. A simplified preview of the conditions are displayed at the bottom of the modal.
{% endhint %}

{% hint style="info" %}
**Fields** limit what fields should be returned in the notification and can look like this {"fieldName1":"\*","fieldName2":"\*"}. Read more about how to specify **Fields** [here](https://api.dataloy.com/dataloy-rest-api/adjust-number-of-fields-to-be-returned-from-a-request).
{% endhint %}

{% hint style="info" %}
Checking `Ignore Subscriber Changes` on an Alert means Webhook Subscriptions created from this will not alert the user that created the subscription of changes they themselves perform.
{% endhint %}

{% tabs %}
{% tab title="Expression" %}

<figure><img src="https://content.gitbook.com/content/UXBUSBEFFjS09JYc1Hu5/blobs/7iKNmap5CNLBbWZVZgcS/image.png" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Alert Script" %}

<figure><img src="https://content.gitbook.com/content/UXBUSBEFFjS09JYc1Hu5/blobs/qpU8clAWsCgch5gYS71s/image.png" alt=""><figcaption></figcaption></figure>

When using an Alert Script, you can configure a schedule for when it should run. The schedule lets you set the start time for the first execution and the interval between each run. The script will then execute automatically at those intervals, regardless of data changes. Scheduling is only available for templates using Alert Script.

<figure><img src="https://content.gitbook.com/content/UXBUSBEFFjS09JYc1Hu5/blobs/OuCfqNPKKpJjqITC5yMU/image.png" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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.dataloy.com/voyage-management-system/step-by-step-guides/alerts/webhook-subscriptions/create-webhook-subscription.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.
