Agent skill

Email Automation Builder

by Affitor in Affitor/affiliate-skills

Build multi-sequence email automation flows with branching logic.

MITAuto-check passedMarketing & SEO

Install Email Automation Builder

skills CLI
$ npx skills add Affitor/affiliate-skills --skill email-automation-builder -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Affitor/affiliate-skills email-automation-builder --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Affitor/affiliate-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/automation/email-automation-builder .claude/skills/email-automation-builder && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
email-automation-builder
GitHub stars
700
Token cost
~2.9k tokens
SKILL.md length
1,227 words
Files
2
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Build multi-sequence email automation flows with branching logic.

  • Works in 7 steps: Map Flow Type to Template → Define Triggers and Entry Conditions → Design Branching Logic → …
  • : build email automation
  • SKILL.md covers Stage, When to Use, Input Schema and Workflow, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Email Automation Builder is an agent skill from Affitor/affiliate-skills. Build multi-sequence email automation flows with branching logic. Triggers on: "build email automation", "create email funnel", "email automation flow", "welcome series with branches", "conditional email sequence", "set up automation", "email workflow builder", "segmented email flow", "advanced email sequence", "nurture funnel", "cart abandonment sequence", "win-back email flow".

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file. Compatibility notes: Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent

It sits in Marketing & SEO, covering Email management, Email marketing and Referral and retention marketing. The repository describes itself as: 50 AI agent skills for affiliate marketing. Research trending content, write data-backed posts, generate infographics, build landing pages, deploy — full flywheel with social… The licence is MIT.

When your agent uses it

  • : build email automation
  • Create email funnel
  • Email automation flow
  • Welcome series with branches

Example prompts

  • “build email automation”
  • “create email funnel”
  • “email automation flow”
  • “/email-automation-builder”

Requirements

  • Compatibility (from SKILL.md): Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Map Flow Type to Template
  2. Define Triggers and Entry Conditions
  3. Design Branching Logic
  4. Write Each Email
  5. Add Wait Times
  6. Output Flow + Setup
  7. Self-Validation

What it can do on your machine

Read from SKILL.md and the folder at commit e43bfae. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent

    From compatibility in the SKILL.md frontmatter.

Context cost

Email Automation Builder loads about 2.9k tokens when it runs. Until then it costs about 102 tokens; SKILL.md has 1,227 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~102
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Affitor/affiliate-skills at commit e43bfae, republished under its MIT licence (© Affitor). 1,227 words, ~2,903 tokens.

Download SKILL.mdSave it as .claude/skills/email-automation-builder/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
email-automation-builder
description
Build multi-sequence email automation flows with branching logic. Triggers on: "build email automation", "create email funnel", "email automation flow", "welcome series with branches", "conditional email sequence", "set up automation", "email workflow builder", "segmented email flow", "advanced email sequence", "nurture funnel", "cart abandonment sequence", "win-back email flow".
compatibility
Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent
license
MIT
version
1.0.0
tags
affiliate-marketing, automation, scaling, workflow, email
metadata.author
affitor
metadata.version
1.0
metadata.stage
S7-Automation

Email Automation Builder

Build multi-sequence email automation flows with branching logic, segmentation, triggers, and tool-specific setup. More advanced than S5 email-drip-sequence: this skill creates conditional flows that respond to subscriber behavior (opened, clicked, purchased). Output includes ASCII flow diagrams, email content, and platform setup instructions.

Stage

S7: Automation — S5's email-drip-sequence is a linear 7-email series. Real email marketing uses branching flows: if they opened → send X, if they didn't → send Y, if they clicked the affiliate link → move to a different sequence. This skill builds the automation system, not just the emails.

When to Use

  • User needs email flows with conditional logic (if/then branches)
  • User wants welcome series, nurture flows, win-back campaigns, or cart abandonment
  • User says "email automation", "branching email", "conditional sequence"
  • User wants to set up flows in ConvertKit, Mailchimp, ActiveCampaign, or Beehiiv
  • User already has an S5 drip sequence and wants to upgrade it to a full automation
  • Chaining: upgrade S5 email-drip-sequence output to a branching automation

Input Schema

yaml
product:
  name: string                 # REQUIRED — product being promoted
  affiliate_url: string        # REQUIRED — affiliate link
  reward_value: string         # OPTIONAL — commission info (e.g., "30% recurring")

audience:
  description: string          # REQUIRED — who the subscribers are
  segments:                    # OPTIONAL — audience segments for branching
    - string                   # e.g., ["cold_leads", "warm_leads", "buyers"]

flow_type: string              # OPTIONAL — "welcome" | "nurture" | "winback"
                               # | "reengagement" | "cart_abandon"
                               # Default: "welcome"

email_tool: string             # OPTIONAL — "convertkit" | "mailchimp"
                               # | "activecampaign" | "beehiiv"
                               # Default: generic (works with any ESP)

num_emails: number             # OPTIONAL — total emails in the flow (5-12)
                               # Default: 7

lead_magnet: string            # OPTIONAL — what they opted in for

Chaining context: If S5 email-drip-sequence was run earlier, offer to upgrade it: "I see you have a 7-email drip sequence. Want me to upgrade it with branching logic and segments?"

Workflow

Step 1: Map Flow Type to Template

Select automation template based on flow_type:

Welcome Flow: Trigger → Welcome email → Wait 1 day → Value email → Branch (opened? → Soft sell / didn't open? → Re-engagement) → Continue selling to openers, re-engage non-openers

Nurture Flow: Trigger → Educational series → Branch (clicked affiliate link? → Move to sales sequence / didn't click? → Continue nurturing) → Post-purchase thank you for converters

Win-back Flow: Trigger (inactive 30+ days) → "We miss you" → Wait 3 days → Value reminder → Branch (re-engaged? → Move to nurture / still inactive? → Last chance) → Sunset after no response

Step 2: Define Triggers and Entry Conditions

For each flow, specify:

  • Entry trigger: What starts the flow (new subscriber, tag added, purchase, inactivity)
  • Exit conditions: What removes someone (purchase, unsubscribe, entered different flow)
  • Branch conditions: Opens, clicks, purchases, time-based
Step 3: Design Branching Logic

Create decision points:

  • After email N: Did they open? (Branch A: opened, Branch B: not opened)
  • After email N: Did they click affiliate link? (Branch A: clicked, Branch B: didn't)
  • After email N: Did they purchase? (Branch A: buyer → thank you, Branch B: non-buyer → continue)
Step 4: Write Each Email

For each email in each branch, write:

  • Subject line (40-60 chars)
  • Preview text (80-100 chars)
  • Body copy (200-400 words)
  • CTA (single, clear)
  • FTC disclosure (for emails with affiliate links)
Step 5: Add Wait Times

Between emails:

  • Welcome flow: 0, 1, 2, 3, 5, 7, 10 days
  • Nurture flow: 2, 4, 7, 10, 14 days
  • Win-back flow: 0, 3, 7, 14 days
  • Adjust based on audience engagement patterns
Step 6: Output Flow + Setup

Present:

  • ASCII flow diagram showing the full automation
  • Each email's content
  • Tool-specific setup instructions (if email_tool specified)
Step 7: Self-Validation

Before presenting output, verify:

  • Every branch path leads to a valid next step (no dead ends)
  • All emails are complete in each branch (subject, body, CTA)
  • Wait times between emails sum correctly to total flow duration
  • FTC disclosure present on all emails containing affiliate links
  • Branch conditions are clear boolean logic (opened/clicked/didn't)

If any check fails, fix the output before delivering. Do not flag the checklist to the user — just ensure the output passes.

Output Schema

yaml
output_schema_version: "1.0.0"  # Semver — bump major on breaking changes
automation:
  flow_type: string
  product: string
  total_emails: number
  total_branches: number
  estimated_days: number       # total span of the flow

flow:
  - step: number
    type: string               # "email" | "wait" | "branch" | "exit"
    email:                     # present if type is "email"
      subject: string
      preview: string
      body: string
      cta: string
      has_affiliate_link: boolean
    wait_days: number          # present if type is "wait"
    branch:                    # present if type is "branch"
      condition: string        # e.g., "opened previous email?"
      yes_path: number         # step number for yes
      no_path: number          # step number for no

setup:
  tool: string
  steps: string[]              # tool-specific setup instructions
  tags: string[]               # recommended tags to apply
  segments: string[]           # recommended segments

Output Format

  1. Flow Overview — flow type, total emails, total days, branch count
  2. ASCII Flow Diagram — visual representation of the automation with branches
  3. Email Content — each email with subject, preview, body, CTA (grouped by branch)
  4. Setup Instructions — tool-specific steps to build this automation
  5. Tags & Segments — recommended tagging strategy for tracking

Error Handling

  • No product info: "What affiliate product are you promoting? I need the product name and your affiliate link to write the email content."
  • Unknown email tool: "I don't have specific setup instructions for [tool]. I'll provide generic automation logic that works with any ESP — just map the triggers, waits, and branches to your tool's interface."
  • Too many emails requested (>12): "12+ emails in one flow is usually too many. I'll create a 7-email flow with branches. For longer nurture, consider chaining two separate flows."
  • Upgrading from S5: "I see your existing 7-email drip. I'll keep the email content and add branching logic: opened/not-opened splits after emails 2 and 4, and a purchase detection branch after email 5."

Examples

Show full SKILL.md (513 more words)Show less
Example 1: Welcome flow with branches

User: "Build a welcome email automation for HeyGen (affiliate link: heygen.com/ref/abc123) for content creators who downloaded my AI tools guide." Action: 7-email welcome flow. Email 1: Deliver guide. Email 2: Value (AI video tip). Branch: Did they open email 2? Yes → Email 3 (soft sell HeyGen). No → Email 3b (re-engagement with different subject). Continue branching through to email 7. ASCII diagram + all email content + ConvertKit setup.

Example 2: Upgrade existing S5 drip

User: "Take my email drip sequence from earlier and add automation logic." Action: Keep the 7 emails from S5 output. Add branches: After email 2 (opened → continue / not opened → resend with new subject). After email 4 (clicked affiliate link → skip to email 5 hard sell / didn't click → add extra value email). After email 5 (purchased → exit + thank you / didn't purchase → continue to email 6-7).

Example 3: Win-back flow

User: "Create a win-back sequence for subscribers who haven't opened emails in 30 days. I promote Semrush." Action: 4-email win-back flow. Trigger: 30 days no opens. Email 1: "Still interested in SEO?" (curiosity). Wait 3 days. Email 2: Value piece (SEO tip). Branch: Opened? Yes → Move to nurture flow. No → Email 3: "Last chance" (urgency). No response after 7 days → Sunset (remove from list).

References

  • shared/references/ftc-compliance.md — FTC disclosure for emails with affiliate links. Read in Step 4.
  • shared/references/affitor-branding.md — Branding guidelines for email footers. Referenced in Step 4.
  • shared/references/flywheel-connections.md — master flywheel connection map

Revenue & Action Plan

Expected Outcomes
  • Revenue potential: Email automation is the closest thing to passive income in affiliate marketing. A well-built welcome flow converts 5-15% of subscribers to affiliate clicks. With 500 new subscribers/month × 10% click rate × 3% conversion × $50 commission = $750/month on autopilot
  • Benchmark: Email marketing delivers $42 return per $1 spent. Branching flows outperform linear sequences by 25-40% because they send the right message to the right person at the right time
  • Key metric to track: Revenue per subscriber per month. Industry benchmark for affiliate email: $0.50-2.00/subscriber/month. Below $0.50 = weak offer or poor segmentation
Do This Right Now (15 min)
  1. Set up Email 1 (Welcome/Deliver) in your ESP today — this is the highest-open-rate email (60-80% open rate). Get it live immediately
  2. Create the first branch trigger — "opened Email 2?" — in your ESP's automation builder
  3. Schedule remaining emails in the flow — most ESPs let you build the full automation in one session
  4. Test the flow — subscribe with a test email address and verify every branch works
Track Your Results

After 30 days: what's the open rate on each email? Click rate on affiliate links? Revenue attributed to the flow? If Email 3+ have <15% open rate, test new subject lines. If affiliate CTR is <2%, strengthen the CTA or add bonuses.

Next step — copy-paste this prompt: "Set up conversion tracking for my email automation affiliate links" → runs conversion-tracker

Flywheel Connections

Feeds Into
  • conversion-tracker (S6) — automated email links to track
Fed By
  • email-drip-sequence (S5) — drip sequence to upgrade with automation logic
  • conversion-tracker (S6) — conversion data for branch conditions
Feedback Loop
  • conversion-tracker (S6) provides email conversion data → optimize branch conditions and timing
yaml
chain_metadata:
  skill_slug: "email-automation-builder"
  stage: "automation"
  timestamp: string
  suggested_next:
    - "conversion-tracker"
    - "performance-report"

© Affitor, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/automation/email-automation-builder of Affitor/affiliate-skills.

  • SKILL.md
  • LICENSE.txt

Open the folder on GitHubat commit e43bfae

Compare with similar skills

Email Automation Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Email Automation Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Email Automation Builder this skillAffitor/affiliate-skills700—~2.9kAutomated safety check: PassMIT
Shopify Email Flowsnexscope-ai/eCommerce-Skills1.1k—~461Automated safety check: PassMIT
EmailAgriciDaniel/claude-email130—~2kAutomated safety check: NotesMIT
Email Marketing BibleCosmoBlk/email-marketing-bible3301 repos~6.8kAutomated safety check: PassMIT
Churn Preventionfreekmurze/dotfiles1k13 repos~4.4kAutomated safety check: PassNone
Smscoreyhaines31/marketingskills54k1 repos~4.6kAutomated safety check: PassMIT

Similar skills

  • Shopify Email Flows

    nexscope-ai/eCommerce-Skills

    Email automation flows — welcome series, abandoned cart, post-purchase, win-back, browse abandonment

    1.1k GitHub stars~461 tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Email

    AgriciDaniel/claude-email

    Comprehensive email management and marketing for any business type.

    130 GitHub stars~2k tokensUpdated 4 mo ago
    Marketing & SEOAuto-check: notes
  • Email Marketing Bible

    CosmoBlk/email-marketing-bible

    Data-backed email marketing skill for AI agents. An agent skill from CosmoBlk/email-marketing-bible.

    330 GitHub starsUsed in 1 repo~6.8k tokens
    Marketing & SEOAuto-check passed
  • Churn Prevention

    freekmurze/dotfiles

    When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies.

    1k GitHub starsUsed in 13 repos~4.4k tokens
    Marketing & SEOAuto-check passed
  • Sms

    coreyhaines31/marketingskills

    When the user wants to plan, build, or optimize SMS, MMS, or WhatsApp marketing — including welcome flows, abandoned cart texts, post-purchase, win-back, promotional sends, or transactional/auth SMS.

    54k GitHub starsUsed in 1 repo~4.6k tokens
    Marketing & SEOAuto-check passed
  • Email Sequence Designer

    aaron-he-zhu/aaron-marketing-skills

    A skill your agent uses when the user asks to "design a welcome flow", "set up an abandoned-cart sequence", "build a light re-engagement branch inside a lifecycle flow", or "plan a cold-outbound…

    2.9k GitHub starsUsed in 2 repos~4.2k tokens
    Marketing & SEOAuto-check passed

More from Affitor/affiliate-skills

All 50 skills in this repo
  • Affiliate Check

    Affitor/affiliate-skills

    Live affiliate program data from openaffiliate.dev. An agent skill from Affitor/affiliate-skills.

    700 GitHub stars~808 tokensUpdated 24 days ago
    Auto-check: notes
  • Affiliate Program Search

    Affitor/affiliate-skills

    Research and evaluate affiliate programs to find the best ones to promote.

    700 GitHub stars~2.4k tokensUpdated 24 days ago
    Auto-check passed
  • Bio Link Deployer

    Affitor/affiliate-skills

    Create a Linktree-style bio link hub page as a single self-contained HTML file.

    700 GitHub stars~3k tokensUpdated 24 days ago
    Auto-check passed
  • Conversion Tracker

    Affitor/affiliate-skills

    Set up affiliate conversion tracking with UTM parameters and link tagging.

    700 GitHub stars~2.1k tokensUpdated 24 days ago
    Auto-check passed
  • Performance Report

    Affitor/affiliate-skills

    Generate affiliate performance reports with KPIs and recommendations.

    700 GitHub stars~2.5k tokensUpdated 24 days ago
    Auto-check passed
  • Product Showcase Page

    Affitor/affiliate-skills

    Build a single-product deep-dive showcase page as a self-contained HTML file.

    700 GitHub stars~3.6k tokensUpdated 24 days ago
    Auto-check passed

Questions about Email Automation Builder

What does Email Automation Builder do?

Build multi-sequence email automation flows with branching logic. Email Automation Builder is an agent skill from Affitor/affiliate-skills. Build multi-sequence email automation flows with branching logic.

When should I use Email Automation Builder?

Email Automation Builder fits situations like: : build email automation; create email funnel; email automation flow; welcome series with branches.

How do I install Email Automation Builder in Claude Code?

Run `npx skills add Affitor/affiliate-skills --skill email-automation-builder -a claude-code`. Or copy the skill folder (skills/automation/email-automation-builder in Affitor/affiliate-skills) into .claude/skills/email-automation-builder in your project. Claude Code loads it when a task matches its description.

How do I install Email Automation Builder in Codex?

Run `npx skills add Affitor/affiliate-skills --skill email-automation-builder -a codex`. Or copy the skill folder (skills/automation/email-automation-builder in Affitor/affiliate-skills) into .agents/skills/email-automation-builder in your project. Codex loads it when a task matches its description.

Can I use Email Automation Builder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Affitor/affiliate-skills --skill email-automation-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/email-automation-builder, .gemini/skills/email-automation-builder, .github/skills/email-automation-builder and .opencode/skills/email-automation-builder in your project.

What does Email Automation Builder need to run?

SKILL.md names no scripts, command-line tools or credentials: Email Automation Builder is instructions for the agent only. Compatibility (from SKILL.md): Claude Code, ChatGPT, Gemini CLI, Cursor, Windsurf, OpenClaw, any AI agent.

Does Email Automation Builder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Email Automation Builder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Email Automation Builder use?

Email Automation Builder is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Email Automation Builder use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Email Automation Builder?

Skills that share tags, products or a category with Email Automation Builder: Shopify Email Flows (nexscope-ai/eCommerce-Skills, 1.1k stars), Email (AgriciDaniel/claude-email, 130 stars), Email Marketing Bible (CosmoBlk/email-marketing-bible, 330 stars) and Churn Prevention (freekmurze/dotfiles, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Email Automation Builder?

Affitor (a GitHub organization) maintains it in Affitor/affiliate-skills, which has 700 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on September 15, 2026.

Source: Affitor/affiliate-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.