This advanced n8n workflow template automates weekly e-commerce reporting, using an HTTP request n8n node to fetch order data, logging detailed reports to Google Sheets, and notifying users via Gmail.
Download this n8n workflow template and start using it instantly.
This robust automation provides a complete solution for scheduled business intelligence reporting. Many businesses struggle with manually pulling e-commerce sales data, processing it, and compiling comprehensive weekly reports. This n8n workflow eliminates that manual labor entirely. It is designed to run on a set schedule (the critical n8n trigger), automatically calculates the relevant reporting period, queries an external API (like Magento 2) using the HTTP Request n8n node, and meticulously processes the raw data. It then splits the information into a high-level weekly summary and a detailed product breakdown, logging both records into separate Google Sheets. Finally, it uses the Gmail n8n node to send a notification once the data logging is complete, ensuring stakeholders are immediately informed. This approach guarantees timely, accurate reporting and maximizes the value of your existing n8n setup.
This n8n workflow executes a precise sequence of steps to deliver a complete weekly sales report:
To use this powerful n8n template, follow these steps:
Schedule Trigger (n8n trigger): The starting point of the n8n workflow. Configured to run automatically on a recurring schedule (e.g., weekly) to initiate the reporting cycle.
GET Week Dates (Code n8n node): Essential for dynamic reporting. This node uses JavaScript to calculate the precise start and end dates/times for the previous week, feeding these values into the subsequent API request.
Get Last Week Orders (HTTP Request n8n node): Acts as the primary data extractor. It connects to the external e-commerce platform API (likely Magento 2) and filters the orders based on the dates provided by the previous n8n node.
Code (n8n node): Intermediate data transformation. Processes the raw JSON response from the HTTP request, often normalizing field names or filtering unnecessary data before the summaries are calculated.
Weekly Summary & Product Breakdown (Code n8n nodes): These two nodes calculate the required business metrics. They aggregate the processed order data into two distinct reports: high-level totals and detailed item performance metrics.
Log Weekly Summary & Log Products Breakdown (Google Sheets n8n nodes): Critical output nodes for logging historical data. They append the summarized and product-specific data, respectively, into designated rows within Google Sheets, building a permanent data store.
Use this powerful n8n workflow to automate image retrieval from Google Drive, including dynamic resizing and sorting, for bulk insertion into Google Docs. A highly efficient n8n template.

Learn how to use the Magic Inbox n8n node to securely share n8n workflows and complex automation templates between self-hosted n8n instances using a peer-to-peer system, triggered by a Telegram n8n trigger.

Automate Telegram video uploads to Google Drive, log metadata in Google Sheets, and enable data queries using a contextual Gemini AI n8n workflow. This n8n template handles file management and AI chat routing.

Automate scheduled TikTok profile and video analytics retrieval using RapidAPI and log the metrics directly into Google Sheets using this powerful n8n workflow.

Use this powerful n8n workflow to automatically generate standardized Google Drive folder structures from a predefined template. Perfect for agencies needing consistent project organization, leveraging an n8n trigger and Google Apps Script.


Experienced Magento 2 Developer with 10+ years of expertise in building and optimizing eCommerce solutions. Over the past year, I’ve expanded my skills into workflow automation using n8n, streamlining business processes and integrating systems for efficiency. Passionate about solving complex problems, enhancing performance, and leveraging automation to drive smarter workflows.







































