> ## Documentation Index
> Fetch the complete documentation index at: https://docs.withflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto-Tag Flex Shopify Orders

> Automatically tag Flex orders in your Shopify admin so you can easily filter, organize, and review them alongside the rest of your orders.

Use [Shopify Flow](https://apps.shopify.com/flow) to automatically apply a tag to every Flex order, eliminating manual work while making it easy to identify and manage Flex orders at a glance.

## Set up the workflow

<Steps titleSize="h3">
  <Step title="Open Shopify Flow and create a workflow">
    From your Shopify admin, open **Flow** — a free workflow-automation app from Shopify — and create a new workflow. If Flow isn't installed yet, add it from the Shopify App Store [here](https://apps.shopify.com/flow).

    <img src="https://mintcdn.com/flex-87/tnzaZUNrTTHPB5yw/images/shopify/auto-tag-orders/1-auto-tag-flow.png?fit=max&auto=format&n=tnzaZUNrTTHPB5yw&q=85&s=04ef2ed71aae7761ddf6a9ef000a5403" alt="Creating a new workflow in the Shopify Flow app" width="3434" height="1900" data-path="images/shopify/auto-tag-orders/1-auto-tag-flow.png" />
  </Step>

  <Step title="Describe the workflow">
    Use the Shopify AI to generate the workflow. Enter a prompt such as *"Auto-tag orders with flex-hsa-fsa when the payment gateway is Pay With Flex"* to start building the flow.

    <img src="https://mintcdn.com/flex-87/tnzaZUNrTTHPB5yw/images/shopify/auto-tag-orders/2-ask-ai.png?fit=max&auto=format&n=tnzaZUNrTTHPB5yw&q=85&s=3c870c81e57c18eefa2c939b7615d0b9" alt="Using the Shopify AI in Flow to describe the auto-tag workflow" width="3434" height="1900" data-path="images/shopify/auto-tag-orders/2-ask-ai.png" />
  </Step>

  <Step title="Preview the workflow">
    Click **Preview** to review the generated workflow before adding it to your store.

    <img src="https://mintcdn.com/flex-87/tnzaZUNrTTHPB5yw/images/shopify/auto-tag-orders/3-preview.png?fit=max&auto=format&n=tnzaZUNrTTHPB5yw&q=85&s=364d3b7f746fa8a10146dba3b0413a9a" alt="Previewing the generated workflow in Shopify Flow" width="3434" height="1900" data-path="images/shopify/auto-tag-orders/3-preview.png" />
  </Step>

  <Step title="Verify the flow steps">
    Confirm the workflow includes these steps:

    * **Order created:** The workflow runs whenever a new order is created.
    * **Condition:** Payment gateway name is equal to **Pay With Flex**.
    * **Add order tags:** Adds the tag `flex-hsa-fsa`. You can change this to any tag you prefer.

          <img src="https://mintcdn.com/flex-87/tnzaZUNrTTHPB5yw/images/shopify/auto-tag-orders/4-verify-flow-steps.png?fit=max&auto=format&n=tnzaZUNrTTHPB5yw&q=85&s=7a5f671b95d8778b5b8d9e29adc751c1" alt="The Shopify Flow workflow steps: order created trigger, payment gateway condition, and add order tags action" width="3434" height="1900" data-path="images/shopify/auto-tag-orders/4-verify-flow-steps.png" />
  </Step>

  <Step title="Add the workflow and turn it on">
    Add the workflow to your store, then turn it on.

    <img src="https://mintcdn.com/flex-87/tnzaZUNrTTHPB5yw/images/shopify/auto-tag-orders/5-add-to-store.png?fit=max&auto=format&n=tnzaZUNrTTHPB5yw&q=85&s=7c96349696e0b82a9c9cd5297a5f8498" alt="Adding the workflow to the store and turning it on" width="1019" height="591" data-path="images/shopify/auto-tag-orders/5-add-to-store.png" />
  </Step>

  <Step title="Verify your next Flex order is tagged">
    On your next Flex order, open the order and check the **Notes** section for the payment gateway. If the gateway is **Pay With Flex**, the order will now carry your tag.

    <Note>
      Flow tags orders going forward only. Orders placed before you turned the workflow on won't be tagged retroactively.
    </Note>

    <img src="https://mintcdn.com/flex-87/tnzaZUNrTTHPB5yw/images/shopify/auto-tag-orders/6-verify-order.png?fit=max&auto=format&n=tnzaZUNrTTHPB5yw&q=85&s=0128a834125fc10bb441a2fab381e3b0" alt="A Flex order in the Shopify admin showing the auto-applied tag" width="3434" height="1900" data-path="images/shopify/auto-tag-orders/6-verify-order.png" />
  </Step>
</Steps>

<Card title="Install the Flex Marketing App" icon="shopping-bag" href="/merchant-success/overview/shopify-marketing" horizontal>
  Promote HSA/FSA across your storefront with dynamic badges, a prebuilt landing page, and product eligibility synced from Flex.
</Card>
