HubSpot Deal-to-Marketing Attribution Agent

AI-powered monthly deal-to-marketing attribution — AI-reasoned multi-touch attribution, campaign effectiveness, content impact, channel interaction synergy, and dark funnel detection.

Reconstructs marketing touchpoint timelines for HubSpot closed-won deals monthly. Uses AI reasoning (not algorithmic first/last/linear) to attribute revenue to channels with explanations of WHY each channel mattered. Identifies campaign effectiveness, content that sells, multi-channel synergy effects, and dark funnel deals with minimal trackable touches. The CMO budget allocation tool. Notion attribution report + Slack executive summary. 27-node n8n workflow with monthly scheduler. BQS 12/12 certified.

triggerSchedule01FetcherHubSpot API02Assembler5 Dimensions03AnalystAttribution04FormatterBrief + BudgetNotionAttribution BriefSlackCMO Digest

Four Agents. Monthly Attribution Intelligence. CMO Budget Tool.

The Fetcher

Step 1The Fetcher

Code-only

Retrieves closed deal data and associated marketing interaction history from HubSpot API for the current and prior months — deal value, close date, contact timeline events, campaign memberships, form submissions, email clicks, page views, and UTM parameters. Pulls multi-touch interaction sequences for attribution modeling.

The Assembler

Step 2The Assembler

Code-only

Computes 5 attribution dimensions: channel attribution (revenue credited to each marketing channel using first-touch, last-touch, and linear models), campaign effectiveness (revenue per campaign with ROI estimation), content impact (which content assets appear most in winning deal paths), interaction effects (multi-touch sequence patterns that precede closed-won), and dark funnel detection (deals with no attributable marketing touchpoints).

The Analyst

Step 3The Analyst

Tier 2 Classification

Analyzes attribution data for budget optimization insights: which channels deliver highest revenue per dollar, which campaigns over- or under-perform, which content should be scaled, what multi-touch patterns to replicate, and how large the dark funnel is. Generates budget reallocation recommendations with estimated impact.

The Formatter

Step 4The Formatter

Tier 3 Creative

Generates a Notion monthly attribution intelligence report with channel revenue tables, campaign ROI rankings, content impact analysis, multi-touch journey maps, and budget recommendations, plus a Slack digest with top 3 budget optimization actions.

What It Does NOT Do

×

Does not modify HubSpot deals or contacts — read-only analysis of marketing interactions and deal outcomes

×

Does not replace dedicated attribution platforms — it provides monthly intelligence from HubSpot data

×

Does not integrate directly with ad platforms — it uses HubSpot-captured UTM and campaign data

×

Does not automate budget changes — it recommends reallocations for human decision-making

×

Does not solve multi-device or cross-domain tracking — attribution is limited to HubSpot-captured touchpoints

The Complete Customer Success Bundle

6 files. Main workflow + scheduler + prompts + docs.

hubspot_deal_to_marketing_attribution_agent_v1_0_0.jsonMain workflow (27 nodes)
hubspot_deal_to_marketing_attribution_agent_scheduler_v1_0_0.jsonScheduler workflow (3 nodes)
README.md10-minute setup guide
docs/TDD.mdTechnical Design Document
system_prompts/analyst_system_prompt.mdAnalyst prompt (attribution analysis)
system_prompts/formatter_system_prompt.mdFormatter prompt (Notion + Slack)

Tested. Measured. Documented.

Monthly deal-to-marketing attribution with multi-model channel revenue, campaign ROI, content impact, multi-touch patterns, and dark funnel detection delivered via Notion and Slack.

HubSpot Deal-to-Marketing Attribution Agent v1.0.0──────────────────────────────────────────Nodes:        27 main + 3 scheduler (30 total)Agents:       4 (Fetcher, Assembler, Analyst, Formatter)LLM Calls:    2 per run (Analyst + Formatter)Model:        Sonnet 4.6 (SINGLE-MODEL)Trigger:      Schedule (monthly 1st 9:00 UTC) + WebhookPattern:      BATCH (monthly attribution analysis)Tool A:       HubSpot (OAuth2) — deals, contacts, timeline events, campaignsTool B:       Notion (httpHeaderAuth) — monthly attribution intelligence reportTool C:       Slack (httpHeaderAuth) — digest with top 3 budget optimization actionsITP:          8/8 records, 14/14 milestonesBQS:          12/12 PASSCost:         $0.05–$0.15 per run

What You'll Need

Platform

n8n 2.7.5+

Est. Monthly API Cost

Monthly cost ~$0.05-0.15/run

Credentials Required

  • Anthropic API
  • HubSpot (OAuth2, contacts + deals + timeline scopes)
  • Slack (Bot Token, httpHeaderAuth Bearer)
  • Notion (httpHeaderAuth Bearer)

Services

  • HubSpot Marketing Hub + CRM with deal and contact timeline data
  • Anthropic API key
  • Notion workspace
  • Slack workspace (Bot Token with chat:write)

Setup Track

Quick Start

~15 min

All credentials live, n8n running

Full Setup

1–2 hrs

Needs API config + tables

From Scratch

2–4 hrs

No n8n, no credentials

HubSpot Deal-to-Marketing Attribution Agent v1.0.0

$299

one-time purchase

What you get:

  • Production-ready n8n workflow (27 nodes + 3-node scheduler)
  • 5-dimension attribution intelligence (channel attribution, campaign effectiveness, content impact, interaction effects, dark funnel detection)
  • Multi-model channel attribution (first-touch, last-touch, linear) with revenue per channel
  • Campaign effectiveness ranking with ROI estimation per campaign
  • Content impact analysis showing which assets appear in winning deal paths
  • Multi-touch interaction pattern identification for replication
  • Dark funnel detection quantifying deals with no attributable touchpoints
  • Budget reallocation recommendations with estimated impact
  • Notion monthly attribution intelligence report with full analysis
  • Slack digest with top 3 budget optimization actions
  • Configurable: attribution models, channel grouping, campaign filters, lookback period
  • Full technical documentation and system prompts

Frequently Asked Questions

What attribution models are included?+

The Assembler computes three models: first-touch (100% credit to first interaction), last-touch (100% credit to last interaction before deal creation), and linear (equal credit across all touchpoints). The report presents all three so your team can compare and decide which model fits your go-to-market.

What is dark funnel detection?+

Dark funnel refers to deals that close without any attributable marketing touchpoints in HubSpot — the prospect path is invisible to your tracking. The Assembler counts these deals and estimates the revenue impact, helping quantify how much pipeline is outside your measurement system.

Does it integrate with ad platforms?+

Not directly. The Fetcher reads HubSpot contact timeline events, which include UTM parameters and campaign memberships. If your ad platforms push UTM-tagged traffic that HubSpot captures, those touchpoints are included in attribution. Direct ad platform API integration is not included.

Is there a refund policy?+

All sales are final after download. Review the Blueprint Dependency Matrix and prerequisites before purchase. Questions? Contact support@forgeworkflows.com before buying. Full terms at forgeworkflows.com/legal.

Read the full guide →

Related Blueprints