Automate Shopify Weekly Sales Reports with n8n and Slack

Save hours each week by automating your Shopify sales data collection and reporting with n8n. This workflow fetches sales data, calculates totals, sends summaries to Slack, and logs to Google Sheets seamlessly.
shopify
slack
googleSheets
+6
Workflow Identifier: 1388
NODES in Use: cron, shopify, function, googleSheets, slack, dateTime, if, noOp, set
Automate Shopify sales with n8n and Slack

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow runs every week at 10 AM to get all sales orders from a Shopify store.

It finds only orders from the last week, counts how many orders there were, and adds up total money made.

Then it sends a simple message to a Slack channel telling the team the totals.

Finally, it adds the detailed weekly sales data into a Google Sheets document to keep records.


Who Should Use This Workflow

This workflow is good for anyone who has a Shopify online store and wants to save time on weekly sales reports.

If manual reporting takes hours and causes mistakes, this will help.

You need accounts on Shopify, Slack, and Google Sheets and some basic access setup for their APIs.


Tools and Services Used


Inputs, Processing Steps, and Outputs

Inputs

  • Shopify store orders accessed with API keys.
  • Scheduled trigger every Monday at 10 AM.

Processing Steps

  • Cron node: Triggers workflow on schedule.
  • Shopify node: Fetches all orders.
  • Date & Time node: Converts order creation date to usable format.
  • IF node: Filters orders within last week based on date.
  • Set node: Extracts total price from each order for calculation.
  • Function node: Calculates count of orders and sums total revenue.
  • Slack node: Sends summary message to Slack channel.
  • Google Sheets node: Appends detailed sales data to a spreadsheet.

Outputs

  • Slack message showing total orders and total revenue for the week.
  • New rows added weekly in Google Sheet with detailed sales data.

Beginner Step-by-Step: How to Use This Workflow in n8n

1. Import the Workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open your n8n editor and choose “Import from File” to add the downloaded workflow.

2. Configure Credentials and Settings

  1. Add your Shopify API Key credentials in n8n’s credentials settings.
  2. Enter Slack API Key and select the channel where messages will be sent.
  3. Set up Google Sheets OAuth2 credentials with permissions to append data.
  4. Update any IDs, such as Google Sheet ID or Slack channel name, in the workflow nodes if needed.

3. Test the Workflow

  1. Run the workflow manually once to check if it fetches orders, calculates totals, sends a Slack message, and appends data to Google Sheets.
  2. Verify that the message appears in Slack and data in Sheets is added as expected.

4. Activate the Workflow for Production

  1. Turn on the workflow switch in n8n to enable automatic weekly running.
  2. Monitor workflow history for the first runs to confirm proper operation.
  3. Adjust any settings if errors occur.

If using self-host n8n, visit self-host n8n for hosting options.


Customization Ideas

  • Change schedule time in the Cron node to fit your preferred reporting hour.
  • Adjust the IF node conditions to filter orders by specific products or date ranges.
  • Modify the Slack node to send messages to a different channel or include more info.
  • Map extra fields like customer name or order date in Google Sheets for detailed logs.
  • Update the Function node to include discounts or refunds in total revenue calculation.

Handling Failures and Edge Cases

  • If Shopify API credentials are invalid, workflow will not fetch orders — re-check or renew keys.
  • If Slack message does not send, confirm API token and channel name are correct.
  • If Google Sheets data fails to append, check OAuth2 access and Sheet ID permissions.
  • For many orders, the Shopify node may need pagination to avoid missing data.

Summary of Benefits

✓ Run sales reports automatically every week without manual work.

✓ Get correct and up-to-date totals of orders and revenue.

✓ Instantly notify your team on Slack with simple messages.

✓ Keep clean records in Google Sheets for each week.

→ Saves several hours of manual report preparation.

→ Reduces errors from manual data handling.

→ Keeps team informed quickly.

→ Makes sales data easy to review in sheets.


Automate Shopify sales with n8n and Slack

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Users must check Shopify API keys in n8n credentials and renew or re-authenticate if invalid.
Verify Slack API token is correct and the channel name matches exactly in the Slack node configuration.
Common causes are expired OAuth2 tokens or insufficient permissions to write in the specified Google Sheet.
Yes, but users should enable pagination or batch fetching in the Shopify node to handle large order volumes.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.