Get the FREE Ultimate OpenClaw Setup Guide →

Abandoned Cart Sms

npx machina-cli add skill akhilkannur/marketing-agent-blueprints/abandoned-cart-sms --openclaw
Files (1)
SKILL.md
2.2 KB

The 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

  1. Check: Does cart_inputs.csv exist?
  2. If Missing: Create cart_inputs.csv using the sampleData provided.
  3. If Present: Load the list of customers and URLs.

Phase 2: Research Loop

For each row in the CSV:

  1. Visit: Use web_fetch to read the Product_URL.
  2. 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:

  1. 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]"
  2. 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]"
  3. 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

  1. Compile: Save all drafts into a new file sms_recovery_campaigns.csv.
  2. Columns: Customer, Product, Extracted_Hook, SMS_1, SMS_2, SMS_3.
  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

  1. Step 1: Ensure cart_inputs.csv exists or create from sampleData
  2. Step 2: For each product URL, fetch details and extract Name, Price, Hook
  3. 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

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers