Send weekly AI assistant traffic reports with GA4, Gmail and Google Sheets
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs on a schedule (every week at 08:00). Along the way it connects Google Analytics, Gmail and Google Sheets.
How it runs
Trigger: On a schedule (every week at 08:00).
- Settings (Edit Fields (Set)): sets 2 fields: reportEmail, aiSourceRegex
- Get AI Sessions (This Week) (Google Analytics): get (report)
- Get AI Sessions (Previous Week) (Google Analytics): get (report)
- Get All Sessions (This Week) (Google Analytics): get (report)
- Build AI Traffic Summary (Code): runs custom JavaScript code
- Email Weekly Report (Gmail): send (message)
- Log Week to Google Sheet (Google Sheets): append (sheet)
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Analytics + Gmail templates (15) · Other Google Analytics + Google Sheets templates (9)
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 (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Analytics
n8n-nodes-base.googleAnalytics - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow runs every Monday and pulls AI-assistant referral traffic from Google Analytics 4, compares it to the previous week, then emails an HTML summary via Gmail and appends weekly totals to a Google Sheets log. How it works 1. Runs…