Shopify Flow
Run workers from Shopify Flow workflows
Bound adds a Run worker action to Shopify Flow, so any workflow can call one of your workers and use its response in later steps.
Basic usage
- In a Flow workflow, add an action and choose Run worker from Bound.
- Set Worker name to the handle of the worker to run (as shown in the Bound app). It must exist and be published — drafts are rejected when the workflow runs.
- Optionally set Request body — the POST body sent to the worker. Use Flow template variables like
{{ order.id }}to pass trigger data through; Flow renders the variables before the worker is called, so your worker receives plain, already-substituted text (most workers treat it as JSON).
When you save the step, Bound validates the worker name and shows an error listing your available workers if it doesn’t match one — so typos surface before the workflow ever runs.
Using the response
The worker’s response body is returned to Flow as the action’s output, available to later workflow steps as a variable — for example {{ runWorker.body }}. Return JSON from your worker if later steps need to parse it.
Flow only persists an action’s output when a later step references it. A workflow that ends at the Run worker step shows “No data returned” in the run log even when the worker succeeded — add a step that uses the output to see it.
Response bodies are truncated at 45 KB — Flow treats larger action responses as failures and retries them, so keep worker responses small.
Retries and failures
- 5xx responses are transient failures: Flow retries them at increasing intervals for up to ~36 hours. Retries are deduplicated by Bound (for 48 hours per run), so a retry after a lost response returns the original result instead of running the worker twice.
- 400 responses are permanent failures, shown to you in the workflow run log — Bound returns these for problems that retrying won’t fix: an unknown or unpublished worker, an invalid name, or your shop being over its monthly run limit.
Every run attempt counts toward your shop’s monthly run limit, including retries.