Antla Klaviyo skill
The Antla Klaviyo skill teaches Claude to build Klaviyo flows, emails and segments with Antla virtual try-on data, through the Klaviyo MCP. Shoppers see themselves wearing the product in abandoned cart, browse abandonment, post-purchase, win-back and back-in-stock emails, instead of a catalog photo.
It works on any merchant’s account. It reads your existing flows, Antla campaigns and brand assets, builds the try-on version of your own flows in draft, checks every path, and finishes with a flow map page of the whole account. Nothing goes live until you say so.
The skill’s source is on GitHub: github.com/Aaron-antla/klaviyo-skill-antla.
Before you start
Section titled “Before you start”| You need | Notes |
|---|---|
| Antla on a plan with Klaviyo | The Klaviyo integration is included on the Runway and Unlimited Fashion plans. See pricing. |
| Antla connected to Klaviyo | In Antla, go to Integrations → Klaviyo. If the skill finds no Antla metrics in Klaviyo, the integration is not connected. |
| Claude with the Klaviyo MCP | Connect Klaviyo in Claude.ai or Claude Desktop, or add the Klaviyo MCP in Claude Code. |
| Code execution on | The skill’s checks run as Python scripts. Without code execution, Claude does the same checks by hand. |
| Antla campaigns, for webhook flows | Flows that send a personalised look need a campaign created in the Antla app. Claude cannot create campaigns. See What needs the Antla app. |
Install
Section titled “Install”Download antla-klaviyo.zip. The link always serves the latest version.
| You use | Do this |
|---|---|
| Claude.ai or Claude Desktop | Settings → Capabilities → Skills, then upload the zip. Connect Klaviyo, and keep code execution on. |
| Claude Code | Unzip into ~/.claude/skills/, or a project’s .claude/skills/, and add the Klaviyo MCP. |
| A Claude Team or Enterprise workspace | An admin can add the zip once for everyone. |
Use the release zip above, not GitHub’s green Code → Download ZIP button. That one wraps the skill in an extra folder.
Use it
Section titled “Use it”Ask Claude in plain words. For example:
Add Antla try-on to my abandoned cart flowMap my Klaviyo flowsThe skill also picks up requests such as “why didn’t the try-on email send”, “use the Antla webhook”, or “what can I do with virtual try-on in my emails”.
Every flow is created in draft. Turning a flow live sends real messages to real customers, so Claude does it only when you tell it to.
What Claude does
Section titled “What Claude does”- Looks before building. Lists your Antla metrics, your store’s Shopify triggers, every flow in the account, and your sender details. It checks that each trigger it might use is still firing.
- Builds on your own flows. Keeps your trigger, filters, timing, sender and email templates. It adds the Antla part (a split on Antla data, a webhook to an Antla campaign, or a try-on email) and names the new draft
<your flow name> + Antla try-on. - Picks the right Antla campaign. Each campaign generates different content. Claude checks real events to see what each one returns, matches it to the flow, and says the campaign’s name back to you before using it.
- Agrees what to build. If you ask what is possible, it proposes the two or three plays that fit your account.
- Verifies. Reads every flow back from Klaviyo and compares it path by path with the design, renders each template with full and missing data, validates the webhook, and checks for other live flows on the same trigger.
- Hands over. Gives you the Klaviyo editor link and the list of paths, and separates what was verified, what could not be verified, and what needs your decision.
- Maps every flow. Builds one page showing every flow in the account, where Antla enters each one, and what to fix first.
Klaviyo’s MCP cannot edit an existing flow’s structure, so the Antla version is a new draft flow. When it goes live, set your original flow to draft, or shoppers get both emails.
Antla data in Klaviyo
Section titled “Antla data in Klaviyo”| Source | What it is | Use it for |
|---|---|---|
Customer tried-on an outfit metric | Fires on every try-on. Carries the generated image, product, category and lifetime try-on count. | Triggering flows on try-on behaviour, “has tried on recently” splits, segments. |
Antla Campaign Event: <name> [<token>] metrics | One per flow created in the Antla app. Carries the original try-on and/or up to 6 recommended looks generated on the shopper’s photo, tracked links, and an optional discount. | Triggering the email that shows the looks. Only these events carry antla_looks. |
| Profile properties | antla_has_tried_on, antla_tryon_count, antla_last_tryon_image_url, antla_user_image_url and others, kept current on each profile. | Personalising any email, including ordinary campaigns. Splits and segments. |
| Campaign webhook | https://app-antla.com/integrations/klaviyo/webhook/<token>. POST an email and a product ID and Antla generates that campaign’s content for that shopper. | Ending a flow Antla doesn’t trigger (abandoned checkout, browse abandonment, post-purchase, win-back) with a personalised look. |
antla_user_image_url is the shopper’s own uploaded photo. Use it only as a signal that Antla can generate for that person. Never put it in an email.
The webhook relay
Section titled “The webhook relay”The webhook lets a Shopify-triggered flow end in a try-on email:
Flow A (Shopify trigger, e.g. Checkout Started) └─ webhook ──▶ Antla campaign └─ campaign event ──▶ Flow B (sends the email with the looks)Flow A chooses who and when. The Antla campaign chooses what is generated. Flow B is the email, and Antla usually creates it when the campaign is set live. A webhook is one-way, so Flow A can never show the generated image itself.
The request body has exactly two fields:
{ "email": "{{ person.email|default:'' }}", "productId": "{{ event.extra.line_items.0.product_id|default:'' }}"}productId is a numeric Shopify product ID or a gid://shopify/Product/… GID, spelled in camelCase. The template path depends on the flow’s trigger.
A 200 is not a delivery. Antla answers 200 {"ok":true} for any well-formed request, then silently drops the ones it can’t fulfil: an unknown product, no photo on file, a product the campaign can’t style, a paused campaign, or a wrong token. The only proof is the campaign event arriving on the profile, usually about ten seconds later. A 400 means the payload is wrong, most often an empty product ID or product_id instead of productId.
So every webhook path the skill builds has:
- a gate on
antla_user_image_urlbeing set, and nothing else (Antla runs its own consent and eligibility checks); - a wait, a check that the campaign event arrived, and a fallback email for shoppers who get no look;
- a normal email for shoppers who fail the gate.
Treat the token as a secret. The token at the end of the webhook URL is its only authentication, and it also appears in the campaign’s metric name. Don’t paste full webhook URLs into tickets, chats or repositories. If one leaks, delete that webhook in the Antla app and point any flow that used it at a new one.
What you can build
Section titled “What you can build”| Play | Trigger | What the shopper gets |
|---|---|---|
| Abandoned checkout, in their own image | Checkout Started | Themselves in what they nearly bought, via the webhook. Everyone else gets the usual reminder. |
| Try-on reminder | Customer tried-on an outfit | The image they made, a few hours later, if they didn’t check out. |
| Browse abandonment | Viewed Product | Themselves in the product they looked at. Shoppers without a photo get an invite to try it on. |
| Post-purchase: complete the look | Placed Order | Recommendations generated on their photo. Needs a “1 recommendation” or “Multiple” campaign. |
| Win-back with a fresh look | Lapsed segment | Something new, on themselves. |
| Back in stock or price drop | Klaviyo back-in-stock or price-drop trigger | The item they wanted, on them. |
| Personalised hero in every campaign | Any campaign | Their latest try-on as the hero, or the standard image with a “See it on you” button. |
| Invite people who haven’t tried it | Segment: antla_has_tried_on not set | Product links with ?antla-open-modal=true, which opens the try-on straight away. |
The repository has tested create_flow recipes for abandoned checkout, try-on reminder, browse abandonment, post-purchase and a lookbook follow-up series. The other plays are built from the same tested blocks but have not been run end to end, so build them in draft and test before relying on them.
For cart and browse recovery, use an Antla campaign set to Their photo. A campaign set to 1 recommendation or Multiple shows other products, so a shopper who abandoned product A would see product B.
What needs the Antla app
Section titled “What needs the Antla app”Claude works through the Klaviyo MCP and cannot change Antla settings. Only the merchant can, in the Antla app:
- create a campaign, which is what produces a campaign metric and a webhook URL;
- choose its email type (Their photo, 1 recommendation, Multiple), audience rule, timing and discount;
- send a test event with realistic data (Test email in Antla’s flow builder).
When a play needs a campaign that doesn’t exist yet, Claude tells you what to create, for example “Webhook · Their photo · Cart”, and builds the rest in the meantime.
When a shopper didn’t get the email
Section titled “When a shopper didn’t get the email”Ask Claude to troubleshoot, or work down this list and stop at the first thing that is false:
- Antla shows the Klaviyo integration enabled, and the Antla flow is live.
- The matching Klaviyo flow and its email action are live. A live flow can contain a draft email.
- For Antla-triggered events, the shopper was logged in and subscribed to email marketing. Guest try-ons never trigger campaign events.
- The product matched the Antla flow’s audience rule.
- The campaign event exists on the profile. If it doesn’t, the problem is before Klaviyo. If it does, the problem is in the flow.
- For webhook sends: the shopper has
antla_user_image_url, the rendered body had a real product ID, and the token in the URL matches the campaign. - Flow filters and Smart Sending, in both the flow that sends the webhook and the campaign’s own flow, did not skip the send.
Limits
Section titled “Limits”update_flowchanges status only, and it sets that status on every action in the flow.- Setting a flow to draft is the off switch. Shoppers waiting in a delay do not get later messages while it is in draft.
- SMS actions fail on Klaviyo accounts without SMS set up. The skill then builds email-only and says so.
- Klaviyo’s generic preview has no Antla event data. Claude renders templates with sample data instead.
What’s in the skill
Section titled “What’s in the skill”| Folder | Contents |
|---|---|
SKILL.md | How Claude works: look before building, build on your flows, pick the right Antla campaign, verify, hand over, map. |
references/ | Antla data in Klaviyo, the webhook contract, tested create_flow recipes, the verification pass, the playbook, and the flow map. |
assets/ | Email templates for try-on, lookbook, browse, cart, post-purchase and win-back emails, a profile hero block, and the flow map page design. |
scripts/ | verify_flow.py checks a flow as Klaviyo stored it. build_flow_map.py builds the flow map page. Both run on Python 3. |
The full data reference, with every metric property, profile property and template variable, is in references/data-reference.md.