Send weekly blended ad performance reports with Meta Ads, Google Ads, GA4 and OpenAI
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs on a schedule (every week at 08:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Gmail and Slack. It also calls graph.facebook.com, googleads.googleapis.com and analyticsdata.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every week at 08:00) (plus 1 other trigger).
- Fetch Meta Ads Insights (HTTP Request): calls graph.facebook.com
- Fetch Google Ads Report (HTTP Request): calls googleads.googleapis.com (POST)
- Fetch GA4 Conversions (HTTP Request): calls analyticsdata.googleapis.com (POST)
- Notify Ops (Slack): uses Slack
- Blend Data Sources (Merge): merges the data from its input branches
- Compute Blended Metrics (Code): runs custom JavaScript code
- Summarize What Moved (AI Agent) (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Build Report (Edit Fields (Set)): sets 1 field: reportHtml
- Email Report to Client (Gmail): uses Gmail
- Post to Agency Channel (Slack): uses Slack
Services it uses
HTTP calls to: graph.facebook.com, googleads.googleapis.com, analyticsdata.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 Summarize What Moved (AI Agent) (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).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Summarize What Moved (AI Agent) (v1.7) | 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 - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow runs every Monday at 8am, pulls last-7-days performance data from the Meta Ads API, Google Ads API, and Google Analytics 4, calculates blended KPIs, uses OpenAI to generate a client-friendly insight summary, and delivers an HTML…