Templates / AI marketing report (Google Analytics & Ads, Meta Ads), sent via email/Telegram

AI marketing report (Google Analytics & Ads, Meta Ads), sent via email/Telegram

Needs changes

by Friedemann Schuetz ✓ · 54,595 views · created 2025-01-23 · Market Research, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Weekly Report Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 7 tools (Meta_Ads, Google_Ads, Analytics_Domain_, Analytics_Domain_…)
  2. Call Google Analytics data: Last 7 days (Google Analytics): uses Google Analytics
  3. Processing for Telegram Report (OpenAI): uses OpenAI
  4. Send mail report (Send Email): sends an email over SMTP
  5. Assign Google Analytics data input (current year) (Edit Fields (Set)): sets 8 fields: Page views, Users, Sessions…
  6. Send Telegram report (Telegram): uses Telegram
  7. Summarize: summarizes / groups the items
  8. Calculation same period previous year (Code): runs custom JavaScript code
  9. Call Google Analytics data: Last 7 days (previous year) (Google Analytics): uses Google Analytics
  10. 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

OpenAI Chat ModelGoogle AnalyticsFacebook Graph APIOpenAITelegram

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.0Replace 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)

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…

Excerpt from Friedemann Schuetz's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.