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
Connect a Schedule Trigger node for daily execution frequency.
Add OpenAI credentials to the Planning Agent Model and all sub-agent models.
Configure Google Sheets node with OAuth2;
Set up Slack credentials; assign correct channel in Slack Alert Tool and Post Summary nodes.
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
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Text automations using Apple Shortcuts
Overview This workflow answers user requests sent via Mac Shortcuts Several Shortcuts call the same webhook, with a quer...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments