Parsed graph
read-onlyC1
Trigger
Webhook trigger
checkout_session
Meta user.id
✓
checkout_session order[]
C2
Filter
Filter
cart_total > 50
✓
cart_total > 50
C3
GPT
Classify intent
intent enum ready|browsing|other
✓
intent enum ready|browsing|other
C4
Branch
Branch
ready
browsing
other
✓
ready
C5
Action
Pause Meta retargeting
adset.status = paused
✓
browsing
C6
Action
Send recovery email
template: recovery_flow_v2
✓
other → skip
after arm → weekly cap
C7
Loop
Weekly cap
limit: 1 / 7d / customer
cap 50 — confirm
✓
End
Generated steps
01C1
TRIGGERWebhook trigger
POST /hooks/cart/abandoned
02C2
FILTERKeep $50+ carts
ctx.cart_total > 50; else return
03C3
GPTClassify intent
intent enum ready|browsing|other
04C4
BRANCHRoute by intent
ready → pause · browsing → email · other → skip
05C5
ACTIONPause Meta retargeting
POST /meta/adsets/{id}/pause
06C6
ACTIONSend recovery email
POST /email/send { template_id }
07C7
LOOPWeekly cap
if customer.send_count_7d >= 1: skip
// 02 · Filter — sandbox signature
function step02_filter(ctx) {
assertSchema(ctx, { cart_total: "number" });
return ctx.cart_total > 50;
}
// 03 · GPT — schema-guarded, no network
function step03_classifyIntent(ctx) {
const out = sandboxGpt(ctx.prompt);
assertJsonSchema(out, {
intent: { enum: ["ready", "browsing", "other"] }
});
return out;
}