Abandoned Cart Sms
npx machina-cli add skill akhilkannur/marketing-agent-blueprints/abandoned-cart-sms --openclawThe Abandoned Cart SMS Writer
Core Instructions
You are a highly specialized AI agent focusing on Sales Ops. Your mission is: Don't just say "You forgot this." This agent scrapes your product page to find the specific key benefit (e.g., "Full Grain Leather") and uses it to write a persuasive, 3-part SMS recovery sequence automatically.
Implementation Workflow
Phase 1: Initialization
- Check: Does
cart_inputs.csvexist? - If Missing: Create
cart_inputs.csvusing thesampleDataprovided. - If Present: Load the list of customers and URLs.
Phase 2: Research Loop
For each row in the CSV:
- Visit: Use
web_fetchto read theProduct_URL. - Extract:
- Name: The h1 title of the product.
- Price: The current price (check for sale prices).
- The Hook: Identify the #1 unique selling point (e.g., "Lifetime Warranty", "Organic Cotton", "24-hour delivery").
Phase 3: Drafting Loop
For each product found:
- Draft SMS 1 (15 min - The Nudge):
- Constraint: Under 160 characters.
- Template: "Hey [Name], your [Product Name] is waiting. Don't miss out on [The Hook]. Link: [URL]"
- Draft SMS 2 (4 hours - The Objection Handler):
- Constraint: Address value.
- Template: "Still thinking about it? Remember, it comes with [The Hook]. Secure yours now: [URL]"
- Draft SMS 3 (24 hours - The Scarcity):
- Constraint: High urgency.
- Template: "Final call [Name]. Your cart expires in 1 hour. Grab the [Product Name] before it's gone: [URL]"
Phase 4: Output
- Compile: Save all drafts into a new file
sms_recovery_campaigns.csv. - Columns:
Customer,Product,Extracted_Hook,SMS_1,SMS_2,SMS_3. - Summary: Report how many campaigns were generated and which "Hooks" were found.
Blueprint ID: abandoned-cart-sms Source: Real AI Examples
Source
git clone https://github.com/akhilkannur/marketing-agent-blueprints/blob/main/skills/abandoned-cart-sms/SKILL.mdView on GitHub Overview
Automates cart recovery by scraping product pages to extract the key benefit (the Hook) and generating a persuasive 3-part SMS sequence. It initializes from cart_inputs.csv, fetches each product's data, and outputs three tailored messages to sms_recovery_campaigns.csv for easy deployment.
How This Skill Works
The agent operates in four phases: Initialization checks for cart_inputs.csv and creates it from sampleData if missing; Research Loop uses web_fetch to read each Product_URL and extracts the Name, Price, and the Hook; Drafting Loop builds three SMS templates using the Hook and product data, enforcing constraints like 160 characters for SMS 1; Output Phase saves all drafts to sms_recovery_campaigns.csv with the required columns.
When to Use It
- Automate abandoned-cart follow-ups when product pages have a clear Hook
- Scale recovery campaigns across many SKUs without manual drafting
- Ensure the first SMS stays under 160 characters using the Nudge template
- Capture which Hooks drive higher conversions for optimization
- Produce a structured CSV with campaigns for downstream sending
Quick Start
- Step 1: Ensure cart_inputs.csv exists or create from sampleData
- Step 2: For each product URL, fetch details and extract Name, Price, Hook
- Step 3: Review the generated sms_recovery_campaigns.csv with SMS_1, SMS_2, SMS_3
Best Practices
- Verify the Hook is unique and compelling for each product
- Test all three templates and adjust tone to brand voice
- Respect SMS legality and opt-out preferences
- Check 160-character limit on SMS 1 and adjust if needed
- Regularly update cart_inputs.csv and sampleData to reflect catalog changes
Example Use Cases
- Product with Hook: Lifetime Warranty
- Product with Hook: Organic Cotton
- Product with Hook: 24-hour delivery
- Product with Hook: Free Shipping
- Product with Hook: Limited Stock