Send weekly SEO keyword email reports with Google Search Console, GPT-4o-mini and Gmail
Needs changesWhat this workflow does
This AI workflow has 9 nodes and runs on a schedule (cron 0 8 * * 1). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (cron 0 8 * * 1).
- 2. Set — Config Values (Edit Fields (Set)): sets 4 fields: siteUrl, clientName, recipientEmail…
- 3. HTTP — Fetch GSC Top Keywords (HTTP Request): calls an HTTP API (POST)
- 4. Set — Extract Fields (Edit Fields (Set)): sets 7 fields: siteUrl, clientName, recipientEmail…
- 5. Code — Format Data for GPT (Code): runs custom JavaScript code
- 6. AI Agent — Write SEO Report Email (AI Agent): runs an AI agent, with model: 7. OpenAI — GPT-4o-mini Model
- 8. Set — Prepare Final Email (Edit Fields (Set)): sets 4 fields: toEmail, emailSubject, emailBody…
- 9. Gmail — Send Weekly Report (Gmail): uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623)
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 6. AI Agent — Write SEO Report Email (v1.7): 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) 6. AI Agent — Write SEO Report Email (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - 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 - Gmail
n8n-nodes-base.gmail
From the author
Every Monday morning, this workflow pulls your top 10 keywords from Google Search Console, passes the data to GPT-4o-mini, and emails a polished 150–200 word SEO digest to your client — automatically. You configure it once with four values, and it runs on its…