Home
cd ../playbooks
Marketing & ContentIntermediate

Referral & Affiliate Programs

Design and optimize referral, affiliate, and ambassador programs that turn customers into growth engines.

15 minutes
By communitySource
#referrals#affiliate#viral-growth

Referral programs that work aren't a 'give $10 / get $10' afterthought — they're built around a moment customers naturally want to share, an incentive that fits the LTV math, and a tracking system that pays out cleanly. The ones that don't end up sitting in the help center, unread.

Who it's for: growth marketers, lifecycle marketers, founders building viral loops, partner program managers

Example

"Design a referral program for our SaaS" → Program type recommendation, incentive structure tied to LTV/CAC, sharing moment design, tracking and payout flow, anti-abuse rules, and launch plan

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add referral-program
---
name: referral-program
description: "When the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy. Also use when the user mentions 'referral,' 'affiliate,' 'ambassador,' 'word of mouth,' 'viral loop,' 'refer a friend,' 'partner program,' 'referral incentive,' 'how to get referrals,' 'customers referring customers,' or 'affiliate payout.' Use this whenever someone wants existing users or partners to bring in new customers. For launch-specific virality, see launch-strategy."
metadata:
  version: 1.1.0
---

# Referral & Affiliate Programs

You are an expert in viral growth and referral marketing. Your goal is to help design and optimize programs that turn customers into growth engines.

## Before Starting

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Designs and optimizes referral, affiliate, and ambassador programs that turn customers and partners into growth engines — covering incentive math, sharing moments, tracking, payouts, and anti-abuse.


Quick Start

Step 1: Create a Project Folder

Create a dedicated folder for this workflow (e.g. ~/marketing/referral-program).

Step 2: Download the Template

Click Download above and save the file as CLAUDE.md in that folder.

Step 3: Run the Workflow

Describe your product, LTV, current CAC, and program goals.


Inputs You'll Need

  • Program type — customer referral, affiliate, ambassador, or combination
  • Business model — B2B/B2C, LTV, CAC from other channels
  • Current state — existing program, organic referrals, NPS
  • Goals — new customers, brand reach, partner ecosystem

How It Works

  1. Choose program type(s) appropriate for your motion and audience
  2. Calculate sustainable incentive structure based on LTV/CAC
  3. Design the sharing moment (when, where, how customers refer)
  4. Define tracking — referral codes, links, attribution rules
  5. Design payout and recognition flow
  6. Add anti-abuse protections
  7. Plan launch and ongoing optimization

What You Get

  • Program design document with type, structure, and rationale
  • Incentive math with payback math
  • Sharing moment design (in-product, email, social)
  • Tracking and payout flow
  • Anti-abuse rules
  • Launch plan and KPIs

$Related Playbooks

Marketing & Content

RevOps Playbook: Lead Scoring, Routing & MQL-to-SQL Handoff

Use Claude Code to design lifecycle stages, a fit-plus-engagement lead scoring model, routing rules with fallbacks, MQL/SQL handoff SLAs and CRM hygiene rules, built from your own closed-won data.

20 minutes
Advanced
Marketing & Content

Sales Enablement

Create sales decks, one-pagers, objection handling docs, demo scripts, and playbooks that reps actually use.

15 minutes
Intermediate
Marketing & Content

Schema Markup

Add or fix schema.org structured data so pages show enhanced results in Google and get parsed correctly by AI.

10 minutes
Intermediate
Marketing & Content

Signup Flow CRO

Optimize signup, registration, and trial activation flows to reduce friction and lift completion rates.

10 minutes
Intermediate
Marketing & Content

Site Architecture

Plan website page hierarchy, navigation, URL structure, and internal linking — for users and SEO.

15 minutes
Intermediate
Marketing & Content

Social Content

Create, schedule, and optimize social content across LinkedIn, Twitter/X, Instagram, TikTok, and Facebook — including short-form video.

10 minutes
Beginner
Marketing & Content

Pr Pitch

Create media pitch packages.

15 minutes
Intermediate
Marketing & Content

Pricing Test

Test pricing strategies with synthetic data.

15 minutes
Intermediate
Marketing & Content

Programmatic Seo

Plan programmatic SEO pages.

15 minutes
Intermediate
Marketing & Content

Redirect Manager

Manage URL redirects.

15 minutes
Intermediate
Marketing & Content

Reputation Management

Manage brand reputation.

15 minutes
Intermediate
Marketing & Content

Retargeting Strategy

Design retargeting strategy.

15 minutes
Intermediate

Browse all Marketing & Content playbooks →