set_shopify_cart_recovery
Set up abandoned-checkout recovery
Description
Turn real-time abandoned-checkout recovery on or off for this brand's Shopify store. Once on, Shopify tells Hermoso of every checkout as it happens; a checkout idle for delayMinutes (default 60) with no order fires ONE recovery. action "sequence" saves the buyer as a contact and enrols them in `sequence` (an id from list_email_sequences; steps may be email, sms, whatsapp, instagram or facebook), with the cart as merge fields {{cart_url}}, {{cart_items}}, {{cart_total}}, {{cart_item_count}}, {{greeting_name}} (the first name, or "there" when Shopify has none; {{first_name}} skips a nameless buyer), and {{discount_code}} / {{discount_url}} when discountCode is set. "alert" sends the event shopify.checkout_abandoned to the brand's Slack, Discord or webhook (set_alert_events group carts) for your own agent to act on; "both" does both. An order for the checkout (or by the same buyer) cancels a pending recovery and stops the sequence. consent "marketing" (default) uses an email or phone only when the buyer accepted marketing on it in Shopify; "any" uses whatever the checkout carries. A sequence with email steps needs listConfirmed:true. Read back from Shopify. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
enabled | boolean | true turns recovery on, false off |
delayMinutes | number | how long a checkout sits idle before the recovery fires: 1 to 10080, default 60 |
action | "sequence" | "alert" | "both" | sequence (default), alert, or both |
sequence | string | the sequence id to enrol buyers in (list_email_sequences) |
discountCode | string | the store's discount code to offer ({{discount_code}}, {{discount_url}}); "" removes it |
consent | "marketing" | "any" | marketing (default) or any |
minTotal | number | no recovery for a cart below this total (0 = every cart) |
attributionDays | number | 1-30, default 7: an order by the same buyer this long after a recovery counts as recovered |
listConfirmed | boolean | true confirms the people reached are the store's own shoppers (needed for a sequence with email steps) |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/set_shopify_cart_recovery.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_shopify_cart_recovery","arguments":{}}}
CLI
hermoso call set_shopify_cart_recovery --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_email_sequencesList email sequences and their stateset_alert_eventsChoose which alerts a channel receivesmanage_shopify_price_listsShopify price listsget_shopify_cart_recoveryAbandoned-checkout recovery settingsmanage_shopify_metaobjectsShopify metaobjectsshopify_cart_recovery_reportAbandoned-checkout recovery reportmanage_shopify_customersShopify customersmerchant_reportMerchant Center competitive visibility, best sellers and price benchmarksmanage_shopify_discountsEdit Shopify discountslist_merchant_issuesList Merchant Center account issues