# Webhook Trigger

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

<figure><img src="https://1153628397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4RDgQr1PbXUjzWMoWZus%2Fuploads%2FdCu8yPjrtlpih6Ks1hQP%2FScreenshot%202024-06-22%20at%207.32.16%E2%80%AFPM.png?alt=media&#x26;token=3f2792b7-9166-422e-905c-7a4d2ace7820" 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="https://1153628397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4RDgQr1PbXUjzWMoWZus%2Fuploads%2FbUChoKb16FUHOMsdbXJB%2FScreenshot%202024-06-27%20at%204.22.25%E2%80%AFPM.png?alt=media&#x26;token=3b90d944-2eea-44bf-9888-6d17f866c1af" 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="<https://1153628397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4RDgQr1PbXUjzWMoWZus%2Fuploads%2F2vtLVF1oFCib9p9z5DXW%2FTag%20A%20Product%20Via%20Webhook.flow?alt=media&token=b6e1e8a9-687c-43d4-ba96-f8c71c8794ba>" %}

**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}
```
````
