Skip to main content

Automate monthly finance reports with Google Sheets, GPT-4 analysis and Gmail

Workflow preview

Workflow preview
100%
Automate monthly finance reports with Google Sheets, GPT-4 analysis and Gmail preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How It Works ️ This workflow is designed to streamline your monthly financial reporting, turning raw transaction data into actionable insights automatically. Here's a step by step breakdown of its...

Best for

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

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.function, n8n-nodes-base.openai, n8n-nodes-base.gmail, n8n-nodes-base.scheduletrigger, 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 Marth.

Original n8n.io source

1.1 Workflow description

Title
Automate monthly finance reports with Google Sheets, GPT-4 analysis and Gmail
Workflow name
Automate monthly finance reports with Google Sheets, GPT-4 analysis and Gmail

How It Works ⚙️

This workflow is designed to streamline your monthly financial reporting, turning raw transaction data into actionable insights automatically. Here's a step-by-step breakdown of its operation:

  1. Trigger (Cron Node): ⏰ The workflow kicks off automatically on a pre-defined schedule, typically the 1st day of every month, ensuring timely report generation without manual intervention.
  2. Get Finance Transactions (Google Sheets): 📊 The first functional node connects to your designated Google Sheet. It reads all the transaction data from the specified range (e.g., 'FinanceSummary!A:E'), acting as the primary data input for the report.
  3. Filter Previous Month Transactions (Function): 🧹 Once the data is retrieved, this custom JavaScript function meticulously filters out only those transactions that occurred in the complete previous month. This ensures your report is always focused on the most relevant, recently concluded period.
  4. Generate AI Financial Insights (OpenAI): 🧠 The filtered transaction data is then passed to OpenAI's GPT-4 model. Here, the AI acts as your personal finance assistant, analyzing the data to:
    • Calculate the total income.
    • Calculate the total expense.
    • Generate 3 concise, key financial insights in bullet points, helping you quickly grasp the financial health and trends.
  5. Send Monthly Finance Report Email (Gmail): 📧 Finally, all the processed information comes together. This node constructs a comprehensive email, embedding:
    • A table summarizing all the previous month's transactions.
    • The valuable AI-generated total income, total expense, and key insights. The email is then automatically sent to your designated finance recipients, delivering the report directly to their inbox.

Set Up Steps 🚀

Follow these steps carefully to get your "Finance Monthly Report with AI Insight" workflow up and running:

  1. Import Workflow JSON:

    • Open your n8n instance.
    • Click on 'Workflows' in the left sidebar.
    • Click the '+' button or 'New' to create a new workflow.
    • Click the '...' (More Options) icon in the top right.
    • Select 'Import from JSON' and paste the provided workflow JSON code.
  2. Configure Credentials:

    • Google Sheets Node ("1. Get Finance Transactions"):
      • Click on this node.
      • Under 'Authentication', select your existing Google Sheets OAuth2 credential or click 'Create New' to set one up.
      • Important: Replace <YOUR_GOOGLE_SHEET_ID_HERE> in the 'Sheet ID' field with the actual ID of your Google Sheet.
    • OpenAI Node ("3. Generate AI Financial Insights"):
      • Click on this node.
      • Under 'Authentication', select your existing OpenAI API Key credential or create a new one if you haven't already.
    • Gmail Node ("4. Send Monthly Finance Report Email"):
      • Click on this node.
      • Under 'Authentication', select your existing Gmail OAuth2 credential or create a new one.
  3. Customize Email Details:

    • Gmail Node ("4. Send Monthly Finance Report Email"):
      • Replace <YOUR_SENDER_EMAIL_HERE> with the email address you want the report to be sent from.
      • Replace <YOUR_RECIPIENT_EMAIL_HERE> with the email address(es) you want the report to be sent to (multiple emails can be separated by commas).
      • You can also adjust the 'Subject' if needed.
  4. Add & Configure Cron Trigger:

    • Click the '+' icon at the very beginning of the workflow (where it says "first step...").
    • Search for "Cron" and select the 'Cron' node.
    • Connect: Drag a connection from the Cron node to "1. Get Finance Transactions (Google Sheets)".
    • Schedule: Configure the Cron node to your desired monthly schedule. For example:
      • Set 'Mode' to 'Every Month'.
      • Set 'On Day of Month' to '1' (to run on the first day of each month).
      • Set 'At Time' to a specific time (e.g., '09:00' for 9 AM).
  5. Review and Activate:

    • Thoroughly review all node configurations to ensure all placeholders are replaced and settings are correct.
    • Click the 'Save' button in the top right corner.
    • Finally, toggle the 'Inactive' switch to 'Active' to enable your workflow. 🟢 Your automated monthly finance report is now live!

Troubleshooting Tip: If the workflow fails, check the 'Executions' tab in n8n for detailed error messages. Common issues include incorrect sheet IDs, invalid API keys, or data format mismatches in your Google

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 - 1. Get Finance Transactions (Google Sheets)

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

Block 2 - 2. Filter Previous Month Transactions

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

Block 3 - 3. Generate AI Financial Insights

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

Block 4 - 4. Send Monthly Finance Report Email

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

Block 5 - Schedule Trigger

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

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

3. Summary Table

Workflow Automate monthly finance reports with Google Sheets, GPT-4 analysis and Gmail
Complexity intermediate
Nodes 7
Categories Document Extraction, AI Summarization
Author Marth
Published 23 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6294/6294.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 Automate monthly finance reports with Google Sheets, GPT-4 analysis and Gmail do?

How It Works ️ This workflow is designed to streamline your monthly financial reporting, turning raw transaction data into actionable insights automatically. Here's a step by step breakdown of its...

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