Templates / UTM marketing attribution reports with Google Sheets, GPT-4o & Gmail

UTM marketing attribution reports with Google Sheets, GPT-4o & Gmail

Ready for 3.0

by Rahul Joshi ✓ · 200 views · created 2025-09-12 · Market Research, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 7 nodes and runs on a schedule (every hour). Along the way it connects Gmail, Google Sheets and Azure OpenAI Chat Model.

How it runs

Trigger: On a schedule (every hour).

  1. Get row(s) in sheet (Google Sheets): uses Google Sheets
  2. Code: runs custom JavaScript code
  3. Code: runs custom JavaScript code
  4. Basic LLM Chain: sends a prompt to an LLM, with model: Azure OpenAI Chat Model
  5. Send Follow-up Email (Gmail): uses Gmail

Services it uses

GmailGoogle SheetsAzure OpenAI Chat Model

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)

From the author

Description Turn raw marketing data into actionable insights with this n8n Source/UTM Attribution and Reporting workflow! It automatically aggregates lead submissions, calculates Cost Per Lead (CPL) per channel, and generates AI-powered weekly attribution…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.