Generate executive decision briefings from APIs with OpenAI and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 21 nodes and runs on a schedule (cron 0 7 * * *) (plus 1 other trigger). Along the way it connects OpenAI Chat Model. It also calls sheets.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 7 * * *) (plus 1 other trigger).
- Set - Tag Schedule Trigger (Edit Fields (Set)): sets 2 fields: triggerSource, lookbackDays
- Set - Tag Webhook Trigger (Edit Fields (Set)): sets 2 fields: triggerSource, lookbackDays
- Set - Prepare Reporting Window (Edit Fields (Set)): sets 5 fields: requestId, reportDate, requestTimestamp…
- Fetch Financial Metrics (HTTP Request): calls an HTTP API
- Fetch Operational KPIs (HTTP Request): calls an HTTP API
- Fetch Market Data (HTTP Request): calls an HTTP API
- Code: runs custom JavaScript code
- Wait: waits 15 seconds
- AI - Detect Patterns & Anomalies (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Wait: pauses before continuing
…plus 7 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011)
HTTP calls to: sheets.googleapis.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI - Detect Patterns & Anomalies (v1.6), AI - Generate Executive Briefing (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI - Detect Patterns & Anomalies (v1.6), AI - Generate Executive Briefing (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow runs daily or via an on-demand webhook to pull financial metrics, operational KPIs, and market quotes via HTTP APIs, then uses OpenAI to detect anomalies and generate an executive briefing that is POSTed to a dashboard endpoint…