Mechanic Get Mechanic
Task library

Trigger Shopify Flow with a time delay

This task does exactly as it sounds :) Add time delays to your Shopify Flow workflows. Choose your time delays by using offsets in the Subscriptions field. Learn more about offsets here.

Try this task

When it runs

  • Occurs whenever an order is created, with a 5 minute delay
  • Occurs whenever an order is created, with a 5 day delay
  • Occurs whenever an order is created, with a 5 month delay

Documentation

This task does exactly as it sounds :) Add time delays to your Shopify Flow workflows. Choose your time delays by using offsets in the Subscriptions field. Learn more about offsets here.

Easily modify this task to subscribe to any Shopify webhook. Use either product_id or order_id or customer_id in the Mechanic Flow action to bring the corresponding object into context in Shopify Flow.

Task code and subscriptions

You can edit the Liquid code after installing this task. View on GitHub or ask a question in the Mechanic Slack community.

Subscriptions

shopify/orders/create+5.minutes
shopify/orders/create+5.days
shopify/orders/create+5.months
How task subscriptions work

Task code

{% action "flow" %}
  {
    {% comment %}
      If you want your Mechanic Flow trigger to be associated
      with a Shopify resource, you may include its numeric ID
      below. Only one resource at a time is supported. Leave
      this out entirely to use the General Mechanic Flow trigger.
    {% endcomment %}
    "order_id": {{order.id }},

    {% comment %}
      Keep as many of the following as you like. Any omitted
      keys *will* be submitted anyway, using the default value
      given below. If you don't want to use Mechanic's default
      value, make sure to *keep* the key in place below, setting
      it to whatever you like.
    {% endcomment %}
    "user_boolean": false,
    "user_email":   "hey@mechanic.invalid",
    "user_number":  0,
    "user_string":  "",
    "user_url":     "https://mechanic.invalid/"
  }
{% endaction %}
Mechanic Liquid reference