Templates / Track marketing revenue attribution with Google Sheets, Anthropic Claude, and Gmail

Track marketing revenue attribution with Google Sheets, Anthropic Claude, and Gmail

Ready for 3.0

by Nour Charaf Eddin ✓ · 34 views · created 2026-08-05 · CRM, 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 16 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects Google Sheets, Basic LLM Chain, Anthropic Chat Model and Gmail.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).

  1. Transform Lead Data (Code): runs custom JavaScript code
  2. Search Lead Source in Sheets (Google Sheets): uses Google Sheets
  3. Specify Report Recipient (Edit Fields (Set)): sets 1 field: reportRecipient
  4. Append Lead to Sheets (Google Sheets): append
  5. Calculate Channel Revenue (Code): runs custom JavaScript code
  6. Read Revenue from Sheets (Google Sheets): uses Google Sheets
  7. Confirm Lead Logged (Respond to Webhook): sends the response back to the webhook caller
  8. Append Revenue to Sheets (Google Sheets): append
  9. Summarize Revenue by Channel (Code): runs custom JavaScript code
  10. Confirm Revenue Logged (Respond to Webhook): sends the response back to the webhook caller

…plus 2 more steps. See the full node list below.

Services it uses

Google SheetsBasic LLM ChainAnthropic Chat ModelGmail

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 (9)

From the author

Quick overview This workflow captures leads via webhooks, logs UTM-based channel attribution to Google Sheets, attributes won-deal revenue back to the original channel, and sends a monthly executive summary written by Anthropic Claude via Gmail. How it works…

Excerpt from Nour Charaf Eddin'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.