Send weekly KPI executive summaries from Google Sheets via Gemini, Gmail and Slack
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on a schedule (every day). Along the way it connects Google Sheets, Google Gemini, Gmail and Slack. It also calls jsonplaceholder.typicode.com over HTTP.
How it runs
Trigger: On a schedule (every day).
- Set Weekly Report Context (Edit Fields (Set)): sets 3 fields: report_run_date, report_title, week_label
- Read Weekly KPI Data (Google Sheets): uses Google Sheets
- Fetch Benchmark KPI Data (HTTP Request): calls jsonplaceholder.typicode.com
- Normalize Sheet KPI Data (Code): runs custom JavaScript code
- Normalize Benchmark KPI Data (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Calculate Weekly KPI Trends (Code): runs custom JavaScript code
- Build Executive Summary Prompt (Edit Fields (Set)): sets 1 field: summary_prompt
- Generate Weekly KPI Summary (Google Gemini): uses Google Gemini
- Format Email and Slack Message (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
HTTP calls to: jsonplaceholder.typicode.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs weekly to read KPI rows from Google Sheets, merge them with benchmark KPI data from an HTTP API, calculate week-over-week trends, generate an executive summary with Google Gemini, then send the result via Gmail and Slack and…