Skip to main content

Analyze daily metrics with multi-agent GPT-4o, Google Sheets, Slack and Gmail

Workflow preview

Workflow preview
100%
Analyze daily metrics with multi-agent GPT-4o, Google Sheets, Slack and Gmail preview
Open on n8n.io

1. Workflow Overview

How It Works This workflow automates daily business metrics collection, analysis, and reporting using a multi agent AI architecture in n8n. Designed for operations teams, analysts, and business man...

Best for

  • Document Extraction automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agenttool, @n8n/n8n-nodes-langchain.toolcalculator, n8n-nodes-base.googlesheetstool, @n8n/n8n-nodes-langchain.toolcode

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cheng Siong Chin.

Original n8n.io source

1.1 Workflow description

Title
Analyze daily metrics with multi-agent GPT-4o, Google Sheets, Slack and Gmail
Workflow name
Analyze daily metrics with multi-agent GPT-4o, Google Sheets, Slack and Gmail

How It Works

This workflow automates daily business metrics collection, analysis, and reporting using a multi-agent AI architecture in n8n. Designed for operations teams, analysts, and business managers, it eliminates manual data review by orchestrating four specialised sub-agents under a central Planning Agent. Each agent handles a distinct function: metrics computation, trend analysis, alert detection, and report generation. The Planning Agent coordinates task delegation via chat memory, ensuring contextual continuity across agent calls. Raw metrics are read from Google Sheets, processed through a Calculator and Trend Analysis Code Tool, and anomalies trigger Slack alerts in real time. A Structured Output Parser formats the consolidated findings, which are appended back to Google Sheets and simultaneously dispatched via Gmail and Slack. This end-to-end pipeline replaces fragmented manual workflows, delivering consistent, timely insights with full audit trails.

Setup Steps

  1. Connect a Schedule Trigger node for daily execution frequency.
  2. Add OpenAI credentials to the Planning Agent Model and all sub-agent models.
  3. Configure Google Sheets node with OAuth2;
  4. Set up Slack credentials; assign correct channel in Slack Alert Tool and Post Summary nodes.
  5. Add Gmail credentials to the Gmail Report Tool node; set recipient address.

Prerequisites

  • Google Sheets OAuth2 credentials
  • Slack Bot Token with post permissions
  • Gmail OAuth2 credentials

Use Cases

  • Daily sales or operational KPI monitoring for business teams

Customization

  • Swap OpenAI models per agent for cost/performance tuning

Benefits

  • Eliminates manual daily reporting effort
  • Real-time alerts reduce response time to anomalies

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 - Daily Metrics Collection

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

Block 2 - Planning Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 3 - Planning Agent Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 4 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 5 - Metrics Agent Tool

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 6 - Metrics Agent Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 7 - Calculator Tool

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

Block 8 - Metrics Data Sheet Tool

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

Block 9 - Insights Agent Tool

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 10 - Insights Agent Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 11 - Trend Analysis Code Tool

Type / Role
@n8n/n8n-nodes-langchain.toolCode - toolCode
Config choices
Version 1.3

Block 12 - Alerts Agent Tool

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 13 - Alerts Agent Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 14 - Slack Alert Tool

Type / Role
n8n-nodes-base.slackTool - slackTool
Config choices
Version 2.4

Block 15 - Reporting Agent Tool

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 16 - Reporting Agent Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 17 - Gmail Report Tool

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.2

Block 18 - Format Final Output

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

Block 19 - Store Analysis Results

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

Block 20 - Post Summary to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 21 - Sticky Note

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

Block 22 - Sticky Note1

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

Block 23 - Sticky Note2

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

Block 24 - Sticky Note3

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

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Analyze daily metrics with multi-agent GPT-4o, Google Sheets, Slack and Gmail
Complexity advanced
Nodes 27
Categories Document Extraction, AI Chatbot
Author Cheng Siong Chin
Published 15 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15083/15083.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 Analyze daily metrics with multi-agent GPT-4o, Google Sheets, Slack and Gmail do?

How It Works This workflow automates daily business metrics collection, analysis, and reporting using a multi agent AI architecture in n8n. Designed for operations teams, analysts, and business man...

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 Chatbot use case.