# Automate multi-website Google Analytics reports with OpenAI: n8n workflow

> Started by a clock, and works across Email, Gmail, Outlook, Slack and one other. It puts OpenAI behind a retrieval step, so answers are drawn from documents...

Source: https://millionrounds.com/workflow/automate-multi-website-google-analytics-reports-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Automate multi-website Google Analytics reports with OpenAI

Started by a clock, and works across Email, Gmail, Outlook, Slack and one other. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-multi-website-google-analytics-reports-with-openai)

**25 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**5** Services it connects to

## The flow

Starts it 1 Model 3 Logic 3 Service 18

The steps in the order they run, from what starts it.

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Simple Memory** Memory Buffer Window *Model*
- 3 **GPT 4.1 nano** Lm Chat Open Ai *Model*
- 4 **Send report by email (Gmail)** Gmail *Service*
- 5 **Send report by email (outlook)** Microsoft Outlook *Service*
- 6 **Send notification process complete on Telegram** Telegram *Service*
- 7 **Send email for ERROR in credentials (Outlook)** Microsoft Outlook *Service*
- 8 **Send email for ERROR in credentials (Gmail)** Gmail *Service*
- 9 **Send Telegram notification for ERROR in credentials** Telegram *Service*
- 10 **yoursite.com** Google Analytics *Service*
- 11 **yoursite.com 2** Google Analytics *Service*
- 12 **yoursite.com 3** Google Analytics *Service*
- 13 **yoursite.com 4** Google Analytics *Service*
- 14 **yoursite.com 5** Google Analytics *Service*
- 15 **yoursite.com 6** Google Analytics *Service*
- 16 **yoursite.com 7** Google Analytics *Service*
- 17 **yoursite.com 8** Google Analytics *Service*
- 18 **Report maker agent** Agent *Model*
- 19 **Check if error** If *Logic*
- 20 **Merge** Merge *Logic*
- 21 **Send report by email (SMTP)** Email Send *Service*
- 22 **Send email for ERROR in credentials (SMTP)** Email Send *Service*
- 23 **Aggregate** Aggregate *Logic*
- 24 **Send notification process complete on Slack** Slack *Service*
- 25 **Send Slack notification for ERROR in credentials** Slack *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 25, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Gmail, Outlook, Slack, Telegram
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Email, Gmail, Outlook, Slack and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 25 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-multi-website-google-analytics-reports-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Outlook](https://millionrounds.com/workflows?service=Outlook#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Audit website security and send AI reports with Gmail** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/audit-website-security-and-send-ai-reports-with-gmail)
- [**Collect news from RSS feeds, summarize it and send it out** 25 steps · calls a model · Email, RSS](https://millionrounds.com/workflow/collect-news-from-rss-feeds-summarize-it-and-send-it-out)
- [**Log and report construction punch list items with OpenAI** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/log-and-report-construction-punch-list-items-with-openai)
- [**Log food safety temperatures with DeepSeek and OpenAI** 25 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/log-food-safety-temperatures-with-deepseek-and-openai)
- [**Summarize QA testing news and send Telegram updates** 25 steps · calls a model · RSS, Telegram](https://millionrounds.com/workflow/summarize-qa-testing-news-and-send-telegram-updates)
- [**Track npm package downloads with Telegram** 25 steps · Telegram](https://millionrounds.com/workflow/track-npm-package-downloads-with-telegram)
