Weekly AI assistant traffic report

Filters AI assistant referrals in Google Analytics, emails a weekly report. This free n8n template reports how many website sessions come from AI assistants. Every Monday it pulls the number of sessions by source/medium from Google Analytics. A Code node keeps only the referral traffic that matches a regex shown on the page. The filtered sessions go to an LLM node, which creates a basic report, and Gmail sends it to your own inbox. It suits site owners who want a weekly snapshot of traffic from AI assistants. You need an OpenAI API key and the Google Analytics and Gmail APIs enabled in Google Cloud Console.

n8nRead on 2026-11-166 steps

Steps

  1. Trigger: The trigger runs every Monday
  2. Pulls sessions by source/medium from Google analyticsGoogle Analytics
  3. Code node filters AI referral traffic
    ChatGPT, Perplexity, Gemini and others, by regex.
  4. Combines the filtered sessions into one list
  5. Generates a short reportOpenAI
  6. Output: Emails the report to yourselfGmail

Limits

  • The report goes to your own inbox.
  • Only counts referrals that match the regex.
  • The model is named only in the title, not in the description.

What it does well

  • Uses one metric, sessions, split by source/medium.

Before you import

Accounts to connect: an OpenAI API key, and the Google Analytics and Gmail APIs enabled in Google Cloud Console.

Similar templates