Templates / Create a Google Analytics data report with AI and sent it to e-mail and Telegram

Create a Google Analytics data report with AI and sent it to e-mail and Telegram

Ready for 3.0

by Friedemann Schuetz ✓ · 13,098 views · created 2024-12-25 · Market Research, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on a schedule (every week at 07:00). Along the way it connects Google Analytics, Telegram and OpenAI.

How it runs

Trigger: On a schedule (every week at 07:00).

  1. Google Analytics: uses Google Analytics
  2. Assign data (Edit Fields (Set)): sets 8 fields: Aufrufe, Nutzer, Sitzungen…
  3. Summarize: summarizes / groups the items
  4. Calculation same period previous year (Code): runs custom JavaScript code
  5. Google Analytics: uses Google Analytics
  6. Assign data (Edit Fields (Set)): sets 7 fields: Aufrufe, Nutzer, Sitzungen…
  7. Summarize: summarizes / groups the items
  8. Processing for email (OpenAI): uses OpenAI, with 1 tool (Calculator)
  9. Send Email: sends an email over SMTP
  10. Processing for Telegram (OpenAI): uses OpenAI

…plus 1 more step. See the full node list below.

Services it uses

Google AnalyticsTelegramOpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

What this workflow does This workflow retrieves Google Analytics data 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 with a small summary. The summary is then sent by email to a…

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.