Skip to main content

Generate weekly sales insights with Google Sheets, Gemini AI and Gmail

Workflow preview

Workflow preview
100%
Generate weekly sales insights with Google Sheets, Gemini AI and Gmail preview
Open on n8n.io

1. Workflow Overview

How it works This workflow automatically generates a weekly sales performance report from Google Sheets data. It runs on a schedule, cleans and filters the dataset, and calculates week over week pe...

Best for

  • CRM automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.gmail, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Generate weekly sales insights with Google Sheets, Gemini AI and Gmail
Workflow name
Generate weekly sales insights with Google Sheets, Gemini AI and Gmail

How it works

This workflow automatically generates a weekly sales performance report from Google Sheets data. It runs on a schedule, cleans and filters the dataset, and calculates week-over-week performance metrics. An AI model generates a concise business summary, while a chart visualizes category performance. Finally, the report is formatted into a professional HTML email and sent via Gmail.

Step-by-step

  • Trigger & fetch data

  • Schedule Trigger1 – Runs the workflow weekly at a defined time.

  • Get row(s) in sheet1 – Fetches raw sales data from Google Sheets.

  • Clean & prepare data

  • Removing Empty Rows1 – Cleans dataset by removing empty rows and formatting numbers.

  • Filter Latest Week1 – Filters data to include only the relevant weekly range.

  • Sales Analytics Engine – Calculates totals, growth %, category performance, and prepares structured output.

  • Generate insights & visuals

  • Message a model – Uses AI to generate a short performance summary and recommendations.

  • HTTP Request1 – Generates a bar chart comparing category performance using QuickChart.

  • Format & send report

  • Format Email1 – Builds a styled HTML email with KPIs, insights, and tables.

  • Send Email1 – Sends the final report via Gmail to the configured recipient.

Why use this?

  • Automates weekly reporting with zero manual effort
  • Provides AI-driven insights for better decision-making
  • Visualizes performance trends clearly with charts
  • Improves communication with clean, professional email reports
  • Saves time on data cleaning, analysis, and formatting

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 - Format Email1

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

Block 2 - Send Email1

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

Block 3 - Get row(s) in sheet1

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

Block 4 - Removing Empty Rows1

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

Block 5 - Filter Latest Week1

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

Block 6 - HTTP Request1

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

Block 7 - Schedule Trigger1

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

Block 8 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 9 - Sales Analytics Engine

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

Block 10 - Sticky Note2

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

Block 11 - Sticky Note3

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

Block 12 - Sticky Note4

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

Block 13 - Sticky Note5

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

Block 14 - Sticky Note6

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

3. Summary Table

Workflow Generate weekly sales insights with Google Sheets, Gemini AI and Gmail
Complexity intermediate
Nodes 14
Categories CRM, AI Summarization
Author Avkash Kakdiya
Published 01 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14563/14563.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 Generate weekly sales insights with Google Sheets, Gemini AI and Gmail do?

How it works This workflow automatically generates a weekly sales performance report from Google Sheets data. It runs on a schedule, cleans and filters the dataset, and calculates week over week pe...

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 CRM, AI Summarization use case.