Sending messages in workflows

You can create workflows that send messages to you or your staff. For example, you could create a workflow that sends you an email whenever you receive a high risk order.

To send a message in a workflow, you need to select from one of the following actions:

  • Send emails: Use this action to send an email. These emails are automatically sent from flow@shopify.com. If you have trouble receiving emails from Flow, make sure that your email isn't filtering out emails from this address. To send emails to multiple people, separate their email addresses with a comma:
    Email template with multiple addresses.
  • Send Slack messages: Connect your Flow to Slack and then use this action to send messages to your Slack channels.

    To connect Flow to Slack, you need to provide your Slack credentials. Flow can send messages to any Slack channel that your Slack account has access to. For example, if you want Flow to send messages to private channels, then make sure that your Slack user has the roles and permissions to do so.

  • Send HTTP requests: Connect your workflow to a web server or URL and send HTTP requests.

When you send a workflow message, it's often helpful to include details about the customer, order, or product involved. To include these details, you need to add template variables to your messages.

Template variables

Template variables are placeholders that are replaced with values when a workfow runs. These variables describe the attributes of the customers, orders, and products that are involved in your workflows. For example, there are template variables for the order number, order price, customer name, and so on.

You can add template variables to any text field that contains the Add template variable link:
A close-up of the workflow builder that shows the Send email action with the Add template variable link.

You can add template variables to actions that send messages or update notes. The template variables in the Add template variable list are filtered, so that you only see the variables that apply to the trigger that you've chosen. After you choose a variable from the list, it is properly formatted and added to the text box for you.

The names of most template variables are self-describing. For example, the template variable that displays the name of the product is {{ product.title }}. When the message is sent, this variable will be replaced with the name of the ordered product: Large Coffee Mug.

Examples

For example, you have a workflow that sends an email when a customer spends more than $500 on an order.

To Joe@mycompany.com

Please send a personal thank you note to {{order.customer.firstName}} {{order.customer.lastName}}({{order.customer.email}}) for placing an order for  {{order.totalPrice}}

When a customer, Jeanne Dupont, creates an order for $1000, the following message is sent by the workflow:

Joe@mycompany.com

Please send a personal thank you note to Jeanne Dupont (jeanne@jeanneemail.com) for placing an order for $1000.00

Learn more

Want to discuss this page?

Visit the Shopify Community

Ready to start selling online with Shopify?

Try it free