Shopify Email Flow Builder
by @mguozhen
Klaviyo and Shopify Email automation flow designer. Builds complete email flow blueprints for abandoned cart, post-purchase, win-back, welcome series, and br...
clawhub install shopify-email-flow-builderπ About This Skill
name: shopify-email-flow-builder description: "Klaviyo and Shopify Email automation flow designer. Builds complete email flow blueprints for abandoned cart, post-purchase, win-back, welcome series, and browse abandonment β with timing, subject lines, copy angles, segmentation logic, and A/B test ideas. Triggers: email flow, klaviyo flow, email automation, abandoned cart email, post purchase email, winback email, welcome series, email sequence, shopify email, email marketing automation, drip campaign, email funnel" allowed-tools: Bash metadata: openclaw: homepage: https://github.com/mguozhen/shopify-email-flow-builder
Shopify Email Flow Builder
AI-powered email automation design agent β creates complete Klaviyo or Shopify Email flow blueprints with every email mapped out: timing, subject lines, copy angles, segmentation, and A/B test suggestions.
Describe your store, your product, or the flow you need. The agent builds the full sequence from trigger to exit, ready to hand to a copywriter or implement directly.
Commands
build flow # build a complete flow blueprint (e.g. build flow abandoned cart)
abandoned cart flow # abandoned cart recovery sequence (3-email default)
post purchase flow # post-purchase onboarding and upsell sequence
winback flow # win-back lapsed customers sequence
welcome flow # welcome series for new subscribers
browse abandonment flow # browse abandonment trigger sequence
flow audit # audit an existing flow for gaps and optimizations
email copy angle # generate subject line + copy angle options for a specific email
flow save # save flow blueprint to workspace
What Data to Provide
The agent works with:
No API keys needed. No platform integration required.
Workspace
Creates ~/email-flows/ containing:
memory.md β saved store profiles, brand voice notes, past flowsflows/ β saved flow blueprints (markdown)copy-angles.md β library of subject lines and copy angles by flow typeThe 6 Core Flows
Flow 1: Welcome Series
Trigger: New subscriber (email capture, not yet a customer) Goal: Build relationship, establish brand, drive first purchase| Email | Timing | Purpose | |-------|--------|---------| | Email 1 | Immediately | Welcome + deliver lead magnet (if any), brand story | | Email 2 | Day 2 | Social proof β bestsellers, reviews, UGC | | Email 3 | Day 4 | Education β how to use / why you'll love the product | | Email 4 | Day 7 | Urgency offer β first-purchase discount or free shipping | | Email 5 | Day 10 | Last chance β expiring offer or simple "did we lose you?" |
Flow 2: Abandoned Cart
Trigger: Cart created, checkout not completed (1 hour minimum delay) Goal: Recover the sale without over-discounting| Email | Timing | Purpose | |-------|--------|---------| | Email 1 | 1 hour after abandonment | Reminder β "You left something behind", no discount | | Email 2 | 24 hours after Email 1 | Objection handling β reviews, guarantee, FAQ | | Email 3 | 48 hours after Email 2 | Incentive β offer discount only if previous emails failed |
Segmentation split: suppress Email 3 discount for VIP customers (they convert without it).
Flow 3: Post-Purchase
Trigger: Order placed (first purchase) Goal: Confirm, delight, cross-sell, generate reviews| Email | Timing | Purpose | |-------|--------|---------| | Email 1 | Immediately | Order confirmation + what to expect (shipping timeline) | | Email 2 | Day 3 | Product education β how to get the most from purchase | | Email 3 | Day 7 (or at delivery) | Check-in β "Did it arrive? How are you liking it?" | | Email 4 | Day 14 | Review request (post-usage, not at delivery) | | Email 5 | Day 21 | Cross-sell / complementary product recommendation | | Email 6 | Day 45 | Replenishment prompt (for consumable products only) |
Flow 4: Win-Back (Lapsed Customer)
Trigger: X days since last purchase (typically 90β180 days, adjust by product purchase cycle) Goal: Re-engage before customer churns permanently| Email | Timing | Purpose | |-------|--------|---------| | Email 1 | Day 0 (trigger) | "We miss you" β no offer, just re-engagement | | Email 2 | Day 7 | What's new β new products, improvements, social proof | | Email 3 | Day 14 | Win-back offer β discount or bonus | | Email 4 | Day 21 | Final attempt β "Is this goodbye?" (sunset path begins) |
Sunset: if no engagement after Email 4, move to suppression list or low-frequency list.
Flow 5: Browse Abandonment
Trigger: Viewed product page, did NOT add to cart (session ended) Goal: Return visitor to the product while interest is warm| Email | Timing | Purpose | |-------|--------|---------| | Email 1 | 4β6 hours after browse | Product spotlight β features, benefits, reviews | | Email 2 | 48 hours after Email 1 | Social proof focus β reviews, UGC, bestseller badge |
Note: only trigger if subscriber, not an existing customer in an active abandoned cart flow.
Flow 6: VIP / High-Value Customer
Trigger: Customer reaches spend threshold (e.g., 3+ orders or $500+ LTV) Goal: Reward loyalty, prevent churn, increase AOV| Email | Timing | Purpose | |-------|--------|---------| | Email 1 | At threshold | VIP welcome β exclusive status, thank you | | Email 2 | Monthly | Early access to new products / sales | | Email 3 | Birthday or anniversary | Personal recognition + exclusive offer |
Subject Line Formulas
| Formula | Example | |---------|---------| | Curiosity gap | "This is why your [product] isn't working" | | Direct benefit | "Get [outcome] in [timeframe]" | | Social proof | "[X] customers swear by this" | | Urgency | "Last chance β [offer] ends tonight" | | Personalization | "[First name], you left something behind" | | Question | "Did something go wrong?" | | Number list | "3 things you didn't know about [product]" |
Segmentation Logic
Key segments to build in Klaviyo:
A/B Test Suggestions by Flow
| Flow | Test Idea | |------|-----------| | Abandoned cart Email 1 | Timing: 30 min vs. 1 hour delay | | Abandoned cart Email 3 | Discount type: % off vs. $ off vs. free shipping | | Welcome Email 1 | With vs. without founder video/story | | Post-purchase Email 4 | Review request timing: Day 7 vs. Day 14 | | Win-back Email 1 | Emotional tone vs. product-led subject line |
Output Format
Every flow blueprint outputs: 1. Flow Overview β trigger, goal, total emails, estimated duration 2. Email-by-Email Blueprint β for each email: timing, subject line (3 options), preview text, copy angle, CTA, segmentation notes 3. Flow Logic Map β trigger conditions, exit conditions, branch logic (e.g., "if purchased, exit flow") 4. Segmentation Rules β who enters, who is excluded, branch splits 5. A/B Test Recommendations β 2β3 specific tests to run first 6. Performance Benchmarks β expected open rate, click rate, revenue per recipient by flow type
Benchmarks
| Flow | Avg Open Rate | Avg Revenue/Recipient | |------|--------------|----------------------| | Welcome | 40β60% | $3β8 | | Abandoned Cart | 35β50% | $5β15 | | Post-Purchase | 50β70% | $2β6 | | Win-Back | 10β20% | $1β4 | | Browse Abandon | 25β40% | $2β8 |
Rules
1. Always ask for product type and price point before designing flows β a $15 impulse product needs different timing than a $300 considered purchase
2. Never add a discount to abandoned cart Email 1 β train customers to wait for the offer; use reminder tone first
3. Suppress existing customers from welcome flows and new subscribers from win-back flows β overlap causes brand confusion
4. Flag when a store is on Shopify Email vs. Klaviyo β Klaviyo supports conditional splits and predictive analytics; Shopify Email does not
5. Recommend sunset logic for every win-back flow β unengaged subscribers hurt deliverability
6. Keep subject lines under 50 characters for mobile optimization (label when testing longer variants)
7. Save flow blueprints to ~/email-flows/flows/ when flow save command is used
π Constraints
1. Always ask for product type and price point before designing flows β a $15 impulse product needs different timing than a $300 considered purchase
2. Never add a discount to abandoned cart Email 1 β train customers to wait for the offer; use reminder tone first
3. Suppress existing customers from welcome flows and new subscribers from win-back flows β overlap causes brand confusion
4. Flag when a store is on Shopify Email vs. Klaviyo β Klaviyo supports conditional splits and predictive analytics; Shopify Email does not
5. Recommend sunset logic for every win-back flow β unengaged subscribers hurt deliverability
6. Keep subject lines under 50 characters for mobile optimization (label when testing longer variants)
7. Save flow blueprints to ~/email-flows/flows/ when flow save command is used