AI marketing report (Google Analytics & Ads, Meta Ads), sent via email/Telegram
Needs changesWhat this workflow does
This AI workflow has 46 nodes and runs on a schedule (every week at 07:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Google Analytics, Facebook Graph API and OpenAI and 1 more. It also calls googleads.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (every week at 07:00) (plus 1 other trigger).
- Weekly Report Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 7 tools (Meta_Ads, Google_Ads, Analytics_Domain_, Analytics_Domain_…)
- Call Google Analytics data: Last 7 days (Google Analytics): uses Google Analytics
- Processing for Telegram Report (OpenAI): uses OpenAI
- Send mail report (Send Email): sends an email over SMTP
- Assign Google Analytics data input (current year) (Edit Fields (Set)): sets 8 fields: Page views, Users, Sessions…
- Send Telegram report (Telegram): uses Telegram
- Summarize: summarizes / groups the items
- Calculation same period previous year (Code): runs custom JavaScript code
- Call Google Analytics data: Last 7 days (previous year) (Google Analytics): uses Google Analytics
- Assign Google Analytics data input (previous year) (Edit Fields (Set)): sets 7 fields: Page views, Users, Sessions…
…plus 23 more steps. See the full node list below.
Services it uses
HTTP calls to: googleads.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 Weekly Report 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) Weekly Report 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 (15)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Google Analytics
n8n-nodes-base.googleAnalytics - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Summarize
n8n-nodes-base.summarize - HTTP Request
n8n-nodes-base.httpRequest - Facebook Graph API
n8n-nodes-base.facebookGraphApi - OpenAI
@n8n/n8n-nodes-langchain.openAi - Send Email
n8n-nodes-base.emailSend - AI Agent
@n8n/n8n-nodes-langchain.agent - Telegram
n8n-nodes-base.telegram
From the author
What this workflow does This workflow retrieves Online Marketing data (Google Analytics for several domains, Google Ads, Meta Ads) from the last 7 days and the same period in the previous year. The data is then prepared by AI as a table, analyzed and provided…