# Flow

The **Flow** action sends data to Shopify Flow, arriving as one of four possible Flow triggers.

{% hint style="info" %}
This page is about the Mechanic action that sends data to Shopify Flow. For a review of Mechanic's entire integration with Flow, see [Shopify Flow](/platform/integrations/shopify-flow.md).
{% endhint %}

## Options

### Resource options

The Flow action accepts at most one resource option, identifying a specific Shopify resource, and resulting in a resource-specific Flow trigger. If no resource option is provided, Mechanic will use the General trigger.

{% hint style="warning" %}
These resource options only accept fully-numeric resource IDs (i.e. 12345). They do not accept global IDs (i.e. gid://shopify/Customer/12345).
{% endhint %}

| Resource option                    | Flow trigger                  |
| ---------------------------------- | ----------------------------- |
| `customer_id`                      | "Mechanic sent customer data" |
| `product_id`                       | "Mechanic sent product data"  |
| `order_id`                         | "Mechanic sent order data"    |
| (when no resource option is given) | "Mechanic sent general data"  |

### Data options

This action also sends user-defined data, with one option available for each of Flow's supported datatypes. These options are *always* sent to Flow, even if they're omitted from the action definition; when omitted, their values are set to the documented default.

<table><thead><tr><th width="198.0845070422535">Option</th><th width="150">Type</th><th>Default</th></tr></thead><tbody><tr><td><code>user_boolean</code></td><td>Boolean</td><td><code>false</code></td></tr><tr><td><code>user_email</code></td><td>Email address</td><td><code>"hey@mechanic.invalid"</code></td></tr><tr><td><code>user_number</code></td><td>Number</td><td><code>0</code></td></tr><tr><td><code>user_string</code></td><td>String</td><td><code>""</code></td></tr><tr><td><code>user_url</code></td><td>URL</td><td><code>"https://mechanic.invalid/"</code></td></tr></tbody></table>

## Usage

For a detailed review of usage, see [Shopify Flow](/platform/integrations/shopify-flow.md#mechanic-flow).


---

# 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://learn.mechanic.dev/core/actions/integrations/flow.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.
