Skip to main content

Detect dead Shopify inventory and send Gmail + Slack CSV alerts

Workflow preview

Workflow preview
100%
Detect dead Shopify inventory and send Gmail + Slack CSV alerts preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow runs daily to detect dead Shopify inventory by comparing current product stock against recent paid order history, then generates a CSV report and sends it via Gmail and...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.shopify, n8n-nodes-base.code, n8n-nodes-base.gmail, n8n-nodes-base.errortrigger, n8n-nodes-base.slack, n8n-nodes-base.converttofile

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tricore Infotech Pvt Ltd.

Original n8n.io source

1.1 Workflow description

Title
Detect dead Shopify inventory and send Gmail + Slack CSV alerts
Workflow name
Detect dead Shopify inventory and send Gmail + Slack CSV alerts

Quick overview

This workflow runs daily to detect dead Shopify inventory by comparing current product stock against recent paid order history, then generates a CSV report and sends it via Gmail and Slack, with global error notifications posted to Slack.

How it works

  1. Runs every day at 07:00 on a schedule trigger.
  2. Pulls paid Shopify orders from the past configured lookback period and fetches all published Shopify products.
  3. Compares product variants with available stock against order history to find variants that have not sold within the configured number of days, then sorts results by total inventory value.
  4. Stops after producing a “clean” status message if no dead inventory is found.
  5. Formats the dead-inventory list into CSV-ready rows and converts it into a CSV file.
  6. Emails the CSV report through Gmail to the configured recipient and uploads the same CSV file to the configured Slack channel.
  7. Posts any workflow execution errors to Slack with the failed node name and error message.

Setup

  1. Connect Shopify OAuth2 credentials with permission to read orders and products.
  2. Connect a Gmail OAuth2 account that can send email from the Gmail node.
  3. Connect Slack credentials and set the target channel ID for both the report upload and error notifications.
  4. Update the detector settings for your store (daysWithoutSales, orderFetchDays, recipientMail, and slackEscalationChannel) before activating the workflow.

Requirements

  • Shopify store with Admin API access (read orders and read products scopes).
  • Gmail account connected via OAuth2.
  • Slack workspace with a designated channel for reports.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Trigger and Settings

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Dead Inventory Detection

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Report and Alerts

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Error Handling

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Set Detector Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Fetch Shopify Orders

Type / Role
n8n-nodes-base.shopify - shopify
Config choices
Version 1

Block 8 - Fetch Shopify Products

Type / Role
n8n-nodes-base.shopify - shopify
Config choices
Version 1

Block 9 - Identify Dead Inventory

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Email Dead Inventory Report

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 11 - On Workflow Error

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 12 - Post Error to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2

Block 13 - Create Dead Inventory CSV

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 14 - Send CSV Report to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 15 - Daily Inventory Check

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 16 - Prepare CSV Report Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - If Dead Inventory Found

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 18 - Merge Orders and Products

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

3. Summary Table

Workflow Detect dead Shopify inventory and send Gmail + Slack CSV alerts
Complexity advanced
Nodes 18
Categories Market Research
Author Tricore Infotech Pvt Ltd
Published 29 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16016/16016.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Detect dead Shopify inventory and send Gmail + Slack CSV alerts do?

Quick overview This workflow runs daily to detect dead Shopify inventory by comparing current product stock against recent paid order history, then generates a CSV report and sends it via Gmail and...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.