Workflow triggers

Custom workflow trigger

Triggers are events that start a workflow. General information about triggers can be found in the Shopify Flow documentation.

Flow Companion adds special triggers that you can trigger by sending events:

Special triggers by Flow Companion

When creating a workflow, select one of the four triggers provided by Flow Companion:

  • Custom trigger triggered - a trigger that only has general parameters (see below) and no specific parameters.
  • Order: custom trigger triggered - a trigger that requires an order to be provided. The provided order can be used in workflow actions and conditions.
  • Customer: custom trigger triggered - a trigger that requires a customer to be provided. The provided customer can be used in workflow actions and conditions.
  • Product: custom trigger triggered - a trigger that requires a product to be provided. The provided product can be used in workflow actions and conditions.

Custom trigger parameters

The parameters for triggering a custom trigger are as follows:

  • Specifier - is used to identify a specific workflow among all existing workflows with the selected trigger type. See more.
  • Additional Parameters - a set of optional parameters that can be used as variables in workflow actions and conditions. Example of using additional parameters

Optimization

When a custom trigger is triggered, the load on Shopify Flow is multiplied by the number of workflows that start with this trigger. Shopify Flow may impose limits on trigger executions that create increased load on the app.

If you have multiple workflows that start with the same trigger, it is recommended to combine them into one. Right after the trigger, add conditions on the trigger field Specifier, then place a Wait action. This lets Shopify fetch data only for the branch that matches that Specifier (see the Shopify Flow documentation).

Example of what a combined workflow might look like: Example of a combined workflow