Skip to main content

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

Workflow preview

Workflow preview
100%
Create a Google Analytics data report with AI and sent it to e-mail and Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 provide...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.googleanalytics, n8n-nodes-base.emailsend, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.openai, @n8n/n8n-nodes-langchain.toolcalculator, n8n-nodes-base.summarize, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Friedemann Schuetz.

Original n8n.io source

1.1 Workflow description

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

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 desired address and, shortened and summarized again, sent to a Telegram account.

This workflow has the following sequence:

  1. time trigger (e.g. every Monday at 7 a.m.)
  2. retrieval of Google Analytics data from the last 7 days
  3. assignment and summary of the data
  4. retrieval of Google Analytics data from the last 7 days of the previous year
  5. allocation and summary of the data
  6. preparation in tabular form and brief analysis by AI.
  7. sending the report as an email
  8. preparation in short form by AI for Telegram (optional)
  9. sending as Telegram message.

Requirements

The following accesses are required for the workflow:

  • Google Analytics (via Google Analytics API): Documentation
  • AI API access (e.g. via OpenAI, Anthropic, Google or Ollama)
  • SMTP access data (for sending the mail)
  • Telegram access data (optional for sending as Telegram message): Documentation

Feel free to contact me via LinkedIn, if you have any questions!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Google Analytics Letzte 7 Tage

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 3 - Send Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 4 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - Processing for Telegram

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.7

Block 6 - Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 7 - Google Analytics: Past 7 days of the previous year

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 8 - Summarize Data

Type / Role
n8n-nodes-base.summarize - summarize
Config choices
Version 1

Block 9 - Summarize Data1

Type / Role
n8n-nodes-base.summarize - summarize
Config choices
Version 1

Block 10 - Calculation same period previous year

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Assign data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Assign data1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Processing for email

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.7

3. Summary Table

Workflow Create a Google Analytics data report with AI and sent it to e-mail and Telegram
Complexity intermediate
Nodes 14
Categories Market Research, AI Summarization
Author Friedemann Schuetz
Published 25 Dec 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2673/2673.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

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

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 provide...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.