Trigger Shopify Flow with a time delay, with Mechanic.

Mechanic is a development and ecommerce automation platform for Shopify. :)

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.

Runs Occurs whenever an order is created, with a 5 minute delay, Occurs whenever an order is created, with a 5 day delay, and Occurs whenever an order is created, with a 5 month delay.

15-day free trial – unlimited tasks

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.

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Shopifolks, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

(By the way, have you seen our documentation? Have you joined the Slack community?)

Open source
View on GitHub to contribute to this task
Subscriptions
shopify/orders/create+5.minutes
shopify/orders/create+5.days
shopify/orders/create+5.months
Tasks use subscriptions to sign up for specific kinds of events. Learn more
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 %}
Task code is written in Mechanic Liquid, an extension of open-source Liquid enhanced for automation. Learn more