# Hermoso: set_shopify_cart_recovery · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/set_shopify_cart_recovery/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / set_shopify_cart_recovery

# `set_shopify_cart_recovery`

Set up abandoned-checkout recovery

Area: SHOPIFY: the merchant's own storefront · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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](https://hermoso.ai/docs/credits/).

## Related tools

- [list_email_sequences](https://hermoso.ai/docs/reference/publish/list_email_sequences/) List email sequences and their state
- [set_alert_events](https://hermoso.ai/docs/reference/workspace/set_alert_events/) Choose which alerts a channel receives
- [manage_shopify_price_lists](https://hermoso.ai/docs/reference/publish/manage_shopify_price_lists/) Shopify price lists
- [get_shopify_cart_recovery](https://hermoso.ai/docs/reference/publish/get_shopify_cart_recovery/) Abandoned-checkout recovery settings
- [manage_shopify_metaobjects](https://hermoso.ai/docs/reference/publish/manage_shopify_metaobjects/) Shopify metaobjects
- [shopify_cart_recovery_report](https://hermoso.ai/docs/reference/publish/shopify_cart_recovery_report/) Abandoned-checkout recovery report
- [manage_shopify_customers](https://hermoso.ai/docs/reference/publish/manage_shopify_customers/) Shopify customers
- [merchant_report](https://hermoso.ai/docs/reference/publish/merchant_report/) Merchant Center competitive visibility, best sellers and price benchmarks
- [manage_shopify_discounts](https://hermoso.ai/docs/reference/publish/manage_shopify_discounts/) Edit Shopify discounts
- [list_merchant_issues](https://hermoso.ai/docs/reference/publish/list_merchant_issues/) List Merchant Center account issues

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
