Flow Trigger

In order to use the Flow Trigger, you must create any workflow in Flow and add the Activate Flow trigger ACTION. Add applicable data in the Data field in the action. In a separate flow, start the flow with the Flow Trigger and add any Flow actions you’d like.

Now, you can run the original flow (the one with the “activate flow trigger” action) and verify that the second flow (the one with the flow trigger) has run.

Storefront Trigger

In Flow, create a workflow that use the Storefront Trigger as the trigger. Add any Flow actions that you’d like.

In order for the Storefront Trigger to trigger a flow, you must add some code to your storefront theme. The code in the storefront theme must make an API request and the data that you send will be the data that will be available in Flow.

For example, here is a fetch method that will POST data to your store domain.

fetch("https://{SHOP_DOMAIN}/a/t/storefront", {
  method: "POST",
  body: JSON.stringify({
    name: "wishlist",
    data: {
      type: "add",
      c_id: "{SOME_ID}",
      variantIds: [
        "gid://shopify/ProductVariant/{VARIANT_ID_FROM_YOUR_STORE}",
        "gid://shopify/ProductVariant/{VARIANT_ID_FROM_YOUR_STORE}"
      ],
    },
  }),
})
  .then((r) => r.text())
  .then((j) => console.log(j))
  .catch((e) => console.log(e));

The storefront trigger requires that a name and data property be in the POST body. You can pass any data you’d like in each of the properties. Concerning the URL that you POST the data to, you must use your store domain followed by /a/t/storefront.

Once the fetch method is configured and placed in your storefront theme code, you can now invoke the method. Once the method runs, confirm that your workflow has been triggered.

Note: Generally, the data from the Storefront Trigger will need to be parsed as it will be a string. Therefore, use the Run Code action to parse the data from this trigger into values that can be used by Flow.

Screenshot 2025-09-03 at 7.48.17 PM.png

Webhook Trigger

Because you have already configured your webhooks, which is in the How to configure webhooks section, you will be able to start flows using webhooks. Create a workflow using the Webhook Trigger as the trigger. Add any Flow action that you’d like. Now trigger your webhook. For example, if you have configured a products/update webhook, you can now update a product, and confirm that your workflow has been triggered.