Skip to main content

Weekly Magento 2 stuck order reporting with Gmail & Google Sheets

Workflow preview

Workflow preview
100%
Weekly Magento 2 stuck order reporting with Gmail & Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automatically identifies and reports Magento 2 orders stuck for the past 7 business days. Sends a weekly email alert to the store manager with a Google Sheets report, helping streamline order follo...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.gmail

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Kanaka Kishore Kandregula.

Original n8n.io source

1.1 Workflow description

Title
Weekly Magento 2 stuck order reporting with Gmail & Google Sheets
Workflow name
Weekly Magento 2 stuck order reporting with Gmail & Google Sheets

Automatically identifies and reports Magento 2 orders stuck for the past 7 business days. Sends a weekly email alert to the store manager with a Google Sheets report, helping streamline order follow-ups and prevent fulfilment delays.

πŸ” What It Does:

This n8n automation identifies Magento 2 orders that have been stuck in the same status (like "processing") for the past 7 weekdays (excluding weekends), compiles them into a clean Google Sheet report, and emails the store manager every Monday morning with a snapshot and link to the full data for immediate action.

βš™οΈ Technical Highlights:
  • Automatically runs every Monday at 8 AM using the Schedule Trigger.
  • Dynamically calculates business days only (excluding weekends) to identify stale orders.
  • Fetches order data using Magento 2 REST API.
  • Filters and formats key details like customer name, order value, phone, and email.
  • Stores the data in a Google Sheet titled with the current date.
  • Sends a professionally formatted HTML email to the manager with:
  • A summary table of stuck orders.
  • A button linking directly to the full Google Sheet report.
βœ… Ideal For:
  • Magento 2 store owners/managers who need better visibility on stuck or delayed orders.
  • Operations teams who want to avoid lost revenue or customer complaints due to order inaction.
  • Automation engineers looking to integrate Google Workspace and Magento efficiently using n8n.
  • πŸ“ˆ Why This Matters in the Current Market:
  • In e-commerce, stuck orders = lost trust and lost revenue. As fulfillment expectations continue to rise, proactively managing delayed or idle orders is crucial. This workflow empowers store managers to act fast, reduce manual monitoring, and keep operations smooth β€” all while preserving customer satisfaction and operational reputation.
πŸ”§ Modules Used:
  • Schedule Trigger
  • HTTP Request (Magento 2 REST API)
  • Code (JavaScript logic for date filtering, formatting)
  • Google Sheets (Create & Append rows)
  • Gmail (Send custom HTML email)
  • Set/Get Logo (optional media path fetch for branding)
πŸ’Ό Use Cases:
  • Weekly operational check-ins for stuck orders.
  • Root cause analysis of order processing delays.
  • Escalation trigger for order fulfillment teams.
  • Dashboard data feed for pending revenue reports.
  • Enhance Magento store manager awareness with automation.
πŸ”’ Credentials Required:
  • Magento 2 Bearer Auth (Admin API access)
  • Google Sheets OAuth2 (Access to Google Drive & Sheets)
  • Gmail OAuth2 (Authorized sender account)
πŸ“‚ Category:

Magento 2 / E-Commerce Automation / Order Management / Reporting

πŸ’¬ Need Help?

If you'd like help customizing this for your Magento store, such as: Filtering by specific order statuses Adding Slack/Telegram alerts Multi-store/multi-manager support Feel free to reach out β€” we can assist in tailoring the workflow to your unique business logic.

Contact: Author

πŸ‘€ Author Kanaka Kishore Kandregula Certified Magento 2 Developer https://gravatar.com/kmyprojects https://www.linkedin.com/in/kanakakishore

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 - Schedule Trigger

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

Block 2 - Get Media Path

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - SetOrGet Logo

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

Block 4 - Get Processing Orders

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

Block 5 - Get Order Data

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

Block 6 - Create spreadsheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 7 - Send a message

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

Block 8 - Append or update row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 9 - Built Reporting Email

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

Block 10 - Get Past 5 Days Excluding Weekends

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

3. Summary Table

Workflow Weekly Magento 2 stuck order reporting with Gmail & Google Sheets
Complexity intermediate
Nodes 10
Categories Content Creation, Multimodal AI
Author Kanaka Kishore Kandregula
Published 05 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6989/6989.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 Weekly Magento 2 stuck order reporting with Gmail & Google Sheets do?

Automatically identifies and reports Magento 2 orders stuck for the past 7 business days. Sends a weekly email alert to the store manager with a Google Sheets report, helping streamline order follo...

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 Content Creation, Multimodal AI use case.