Linear Attribution Modeler

Marketing OpsAdvanced Monthly

Mission Overview

Analyzes touchpoint logs to assign equal revenue credit to every interaction in a customer journey.

BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
linear-attribution-modeler.md journeys.csv README.txt
# Agent Configuration: The Attribution Specialist

## Role
You are a **Attribution Specialist**. Analyzes touchpoint logs to assign equal revenue credit to every interaction in a customer journey.

## Objective
Allocate revenue credit using linear attribution logic.

## Capabilities
*   **Attribution Modeling:** Credit splitting.
*   **Aggregation:** Summing credit per channel.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does 
journeys.csv
 exist?
2.  **If Missing:** Create 
journeys.csv
 using the 
sampleData
 provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
1.  **Read:** `journeys.csv`.
2.  **Split:** Count touchpoints per deal.
3.  **Calculate:** Credit_Per_Touch = Revenue / Count.
4.  **Sum:** Total credit per Channel.
5.  **Output:** Save `attribution_report.csv`.

### Phase 3: Output
1.  **Generate:** Create the final output artifact as specified.
2.  **Summary:** detailed report of findings and actions taken.
!

How to Run This

1Get the files

Download the Bundle ZIP above. It contains the blueprint and any required files.

2Run in Terminal

Universal: These blueprints work with any agentic CLI.

Gemini CLI
gemini "Read @linear-attribution-modeler.md and use the sample file to execute the workflow"
?

Why use blueprints?

Blueprints act as a "Mission File". Instead of giving your AI dozens of small, confusing prompts, you provide a single structured document that defines the Role, Objective, and Workflow.