# Webhook Trigger

Here's an example of a flow that is triggerd via a webhook to tag a product:

<figure><img src="/files/1lQ7B3Qz4Ej0S1nwMCwU" alt=""><figcaption></figcaption></figure>

Here's how you can do this on your store

**1- Install Flow Helper**

<https://apps.shopify.com/flow-helper>

**2- Copy your Webhook URL from the main page of the app:**

You can find the **Webhook URL** here on the main page of the Flow Helper app:

<figure><img src="/files/vFutBLySvTPHes8Zake9" alt=""><figcaption></figcaption></figure>

**3- Download this flow template and import it**

This will give you a good starting point - you can see how the **Run Code** step parses the payload. Because Flow input fields need to be defined individually, in order to support generic webhooks, we're passing them into Flow as stringified JSON and then parsing them into an object within the flow.

{% file src="/files/Guv5BDhwvVPhfDKyMzdG" %}

**4- POST to the webhook URL**

To start a flow with a webhook trigger, send a POST that looks like this:

````sh
```shellscript
curl -X POST -H "Content-Type: application/json" -d '{
  "payload": {
    "productId": "10308866408641",
    "tag": "test from webhook"
  }
}' https://flow-helper.gadget.app/actions/webhook-trigger/{YOUR_WEBHOOK_KEY}
```
````


---

# 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://kalenj.gitbook.io/webhook-trigger.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.
