Creating workflows in Shopify Flow

To use Shopify Flow, create a workflow. You can create a new workflowmanually, orby using a pre-made template.

For more information about getting started with Shopify Flow, refer to the videoHow To Use Shopify Flow.

Considerations for creating a workflow

Before you create a workflow, review the following considerations.

  • Workflows run as soon as possible. However, there might be a delay between when a trigger starts a workflow and when its actions complete. There is no defined length of time that it takes a workflow to complete.
  • Orders and draft orders are treated separately by Flow. Actions and triggers that affect orders don't affect draft orders, and actions and triggers that affect draft orders don't affect orders. If a draft order is converted into an order, then your workflows that affect orders apply.
  • Workflows that contain conditions that involve tags might not work if there are more than 250 tags associated with the order, product, or customer.
  • All workflows must start with a trigger from Shopify Flow or from an app.
  • Some fields in the GraphQL Admin API are populated asynchronously, particularly on orders. Because these fields might not be populated by the time your workflow runs, data might be unavailable to Shopify Flow and cause unexpected results, such as fulfillments, UTM parameters, or risk levels. Before you activate a workflow, test it to verify that the data is what you expect.

    When possible, use a trigger that starts workflows when a condition is fulfilled other than the creation of an order. For example, to create a workflow that takes actions based on an order's risk level, use theOrder risk analyzedtrigger instead ofOrder created.

Creating a new workflow

Shopify Flow uses a freeform canvas where you can create a workflow. These steps outline how to create a simple workflow, adding onetrigger, onecondition, and oneaction. You can create more complex workflows by adding additional conditions and actions, or by usingadvanced triggers and actions.

Steps:

  1. From your Shopify admin, clickSettings>Apps and sales channels.

  2. From theApps and sales channelspage, clickShopify Flow.

  3. ClickOpen app.

  4. ClickCreate workflow.

  5. ClickSelect a trigger, and then select thetriggerthat starts the workflow.

  6. ClickOutputto create a new step. ClickCondition, and then select theconditionthat must be met before any actions can be run.

  7. ClickThento select the action to be taken if the condition you set is true. ClickActionsand select theaction基于运行条件的结果。

  8. Optional: clickOtherwiseto add to your workflow if the condition you set is false. You can add additional conditions or actions.

  9. ClickNew Workflow, and then enter a title for your workflow.

  10. To start using your workflow, clickTurn on workflow.

Creating a workflow by using a template

A template is a pre-made workflow created by Shopify that you can customize and use.

Templates use triggers, conditions, and actions with placeholder data filled in. Before you activate your workflow, verify that you have edited the workflow and entered the values that you want to use. For example:

  • If a workflow adds tags to customers or orders, then verify that those tags are the tags that you want to use.
  • If a workflow sends messages, then ensure that you change the recipient information, such as the email address.
  • 如果一个工作流使用一个应用程序,你不想我nstall, then you might be able to substitute a similar function, such as replacing an action that sends a message on Slack with an action that sends an email.

Steps:

  1. From your Shopify admin, clickSettings>Apps and sales channels.

  2. From theApps and sales channelspage, clickShopify Flow.

  3. ClickOpen app.

  4. ClickCreate workflow.

  5. ClickBrowse templates, and then select a template.

  6. Review the template to verify that it meets your needs. You can customize the workflow after you install it.

  7. ClickInstall.

  8. Edit the template as needed.

  9. Optional: click the name of the workflow, and then edit the title.

  10. To start using your workflow, switch the toggle in the upper-right to change it fromOfftoOn.

Refer to the examples page for examples of available workflow templates.

Ready to start selling with Shopify?

Try it free