Automation library · Research and reporting

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.

LargeCalls a model: OpenAIRetrieval

25 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
5Services it connects to

The flow

Starts it 1Model 3Logic 3Service 18

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3GPT 4.1 nanoLm Chat Open AiModel
  4. 4Send report by email (Gmail)GmailService
  5. 5Send report by email (outlook)Microsoft OutlookService
  6. 6Send notification process complete on TelegramTelegramService
  7. 7Send email for ERROR in credentials (Outlook)Microsoft OutlookService
  8. 8Send email for ERROR in credentials (Gmail)GmailService
  9. 9Send Telegram notification for ERROR in credentialsTelegramService
  10. 10yoursite.comGoogle AnalyticsService
  11. 11yoursite.com 2Google AnalyticsService
  12. 12yoursite.com 3Google AnalyticsService
  13. 13yoursite.com 4Google AnalyticsService
  14. 14yoursite.com 5Google AnalyticsService
  15. 15yoursite.com 6Google AnalyticsService
  16. 16yoursite.com 7Google AnalyticsService
  17. 17yoursite.com 8Google AnalyticsService
  18. 18Report maker agentAgentModel
  19. 19Check if errorIfLogic
  20. 20MergeMergeLogic
  21. 21Send report by email (SMTP)Email SendService
  22. 22Send email for ERROR in credentials (SMTP)Email SendService
  23. 23AggregateAggregateLogic
  24. 24Send notification process complete on SlackSlackService
  25. 25Send Slack notification for ERROR in credentialsSlackService

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.