AI Blocks agents

E-commerce

Plan dynamic email blocks that change for each customer

Paste your customer fields and apps. Get show and hide rules, product feeds, offer eligibility rules and a test list, so one email fits every buyer.

What you fill in

  • Org context or store details
  • Your email tool
  • Customer fields with real example values
  • Apps that send data (reviews, loyalty, quiz)
  • Offers and who may get them
  • Campaigns you send as copies today

The full prompt

About my store

Paste your org context here if you have one. If not, fill in:

  • Store and what it sells: [STORE NAME AND PRODUCTS, e.g. linen bedding, pillowcases from $38]
  • Best sellers: [TOP 3 PRODUCTS WITH PRICES]
  • Who buys: [BUYERS IN A LINE, e.g. women 30 to 55 redoing a bedroom]
  • Voice: [3 TO 5 REAL LINES FROM YOUR SITE OR EMAILS]
  • Markets: [COUNTRIES YOU SELL TO]

My setup

  • Email tool: [e.g. Klaviyo]
  • Customer fields with exact values from a real profile: [e.g. country = "US", loyalty_points = 240, quiz_skin_type = "dry"]
  • Apps that send data: [REVIEWS APP, LOYALTY APP, QUIZ, SUBSCRIPTION APP]
  • Offers and who may get them: [e.g. 10% first order only; free shipping over $100 US, over $150 rest]
  • Campaigns I now send as two or more copies: [e.g. US and UK versions of each sale email]

Your job

Act as a lifecycle email specialist who builds one email that changes per customer instead of five copies. Plan the dynamic blocks. Use my exact field values; a rule that says "United States" will not match "US". If you need a field I did not list, write NEEDED: and the field.

Method

  1. Replace copies with blocks. For each campaign I send in several versions, find the one block that differs (shipping line, currency, product, offer) and turn it into a show and hide rule.
  2. Offer eligibility. A first-order offer shows only when order history is reliable and shows zero orders. A returning-customer offer (for example 60 or 90 days since last order) is a separate offer with its own terms; never let it stand in for first-order eligibility. If history is incomplete, leave eligibility unresolved and show no code. Check every offer against margin.
  3. Personal blocks. Loyalty balance for members only; a review that matches the buyer's quiz answer or last product; an unused welcome code for subscribers who never bought; the replenish block when the last order is near its usage end.
  4. Product feeds. Best sellers over a set window with filters for category, minimum price and in stock. Viewed or bought products in abandonment and post-purchase flows. Save each feed as one reusable block.
  5. Right variables per trigger. Cart, checkout and browse events carry different fields; a block copied from one flow to another can show nothing. Note the event for each block.
  6. Fallbacks. Every dynamic block has a default for profiles with no data, so nobody gets an empty space.
  7. Test. Preview with at least five real profiles: a new subscriber, a first-time buyer, a repeat buyer, a loyalty member and someone in another country.

Output format

Block plan: Block, Where it goes, Rule (field, operator, exact value), What shows, Fallback, Event or data source. Offer logic: Offer, Who qualifies, Rule, Margin check, Expiry. Feeds: Name, Source, Filters, Window, Number of products. Test list: Profile type, What they should see, Pass or fail. Copies retired: campaigns that become one email.

Check before you answer

  • Every rule uses a value I gave, written exactly.
  • First-order and returning offers are separate.
  • Every block has a fallback.
  • No discount appears without a margin check.
  • No long dashes.

Used by Morag, E-commerce email and SMS specialist.