Tag product when webhook received
When a supplier, PIM or ERP calls your webhook with a SKU and a tag, add that tag to the product. Keeps collections, filters and badges in sync with data from outside Shopify.
One trigger from Workflow Webhooks and Shopify's built-in actions, no other app needed.

What it needs
A webhook in Workflow Webhooks with this payload mapping. See Payload mapping and Flow variables.
| Field | What to map to it |
|---|---|
fieldOne |
The variant SKU, for example TSHIRT-RED-M |
fieldTwo |
The tag to add, for example back-in-stock |
A call to the webhook then looks like this:
bash
curl -X POST https://<your webhook URL> \
-H "Content-Type: application/json" \
-d '{"sku": "TSHIRT-RED-M", "tag": "back-in-stock"}'Get the workflow
- Download the
.flowfile attached at the bottom of this page. - In your Shopify admin open Flow, click Import and choose the file.
- Check the steps, then click Turn on workflow.
The file is an export from Shopify Flow itself. Do not edit it by hand; change the workflow in Flow after importing it.
How it works
- Webhook Trigger starts the workflow each time your webhook URL is called and hands it the mapped fields.
- Get product variant data looks up the variant with the query
sku:{{fieldOne}}and keeps at most one result. - For each runs once for the variant it found, and not at all when no SKU matches.
- Add product tags adds
{{fieldTwo}}to the product of that variant.
Make it yours
- Replace
{{fieldTwo}}with a fixed tag such assupplier-updateif the caller cannot send a tag. - Use Remove product tags instead to clear a tag, for example when a supplier reports stock again.
Next steps
- Create your first webhook - create the webhook this workflow listens to.
- Workflow templates - all templates.
- History and troubleshooting - check that the webhook reached Flow.

