⚙️ Monitor Shopify orders and send no-order alerts via Slack and email

⚡ 133 views · ⚙️ DevOps & CI/CD

Description

🛒 Shopify “No Orders in X Minutes” Alert

📌 Summary

Never miss a revenue-impacting failure. This n8n workflow monitors your Shopify store and triggers an alert if X minutes pass without a single new order. By automatically detecting unexpected drops in order flow based on your custom schedule. It tracks downtime duration, sends rich multi-channel alerts, and can optionally send an automated “all clear” message when orders resume.


✨ Key Features


🛠️ How It Works

  1. Trigger & Validate: The workflow runs on a schedule you choose (for example, every 30 minutes). Validates configuration to prevent silent failures (e.g., missing email addresses or no channels enabled).
  2. Fetch Order: Queries Shopify for any new orders created within the last trigger interval.
  3. Logic Branch:
    • Orders Found: Calculates total downtime, resets the tracking counters, and sends a Recovery notification (if an outage was actively ongoing and the recovery toggle is enabled). ✅
    • No Orders: Increments the downtime counter and initiates the alert sequence. 🚨
  4. Route: Checks configuration toggles and delivers formatted messages to your enabled channels.

📦 Nodes Used


🚀 Setup Instructions

  1. Credentials: Connect Shopify (orders:read), Slack (chat:write), and Gmail (gmail.send). Important: Open the Slack node and manually select your target channel from the dropdown.
  2. Config Node: Open the Configuration node and set your preferences:
    • enableSlackAlert: Toggle to true to enable Slack notifications.
    • enableEmailAlert: Toggle to true to enable Email notifications.
    • enableRecoveryNotification: Toggle to true if you want a follow-up message when orders resume.
    • sendEmailTo: Enter your target email address (mandatory if email alerts are enabled).
  3. Activate: Toggle the workflow to Active and you’re ready to go. It will start checking on schedule.
  4. Testing the Recovery Path (Optional): To manually simulate a recovery, temporarily delete the expression in the Shopify node’s createdAtMin field and pick a date in the past. Execute the node so it finds orders and triggers the recovery alert, then paste the default expression back in.

⚙️ Customization Ideas


📋 Requirements


⚠️ Limitations

🔗 Nodes Used

Slack, Shopify, Gmail, Stop and Error, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup