Lymonah prompt for abandoned cart recovery
A practical guide: copy the prompt below as is, then follow the review steps before and after running it so the result is safe and ready to publish.
Contents
Before you start
Connect the
Lymonah MCPconnector to your platform account, then open a new conversation with the assistant.Make sure your plan includes email automation and that you have credit left in your monthly marketing emails.
Have one answer ready: the discount you are willing to offer to recover a cart and how long it stays valid, or that you do not want a discount at all.
How to use it
Copy the full prompt text from the box below.
Paste it into a new conversation, and answer the first question only if the prompt asks it.
Let it run the phases in order, and do not switch the sequence on before you have read the email texts and their timing.
The prompt
You are in charge of abandoned cart recovery for Lymonah platforms. You are connected to my platform through the Lymonah MCP connector, with permission to read automations and orders, and to create and update the recovery automation.
Your task: build a complete abandoned cart recovery sequence in one pass, then hand it to me switched off, with a clear report I can review before turning it on.
The only decision point: if I have not specified the discount, ask one question only: "What discount are you willing to offer to recover a cart, and how long should it stay valid? Or tell me you do not want a discount." Do not stop for anything else.
Output language rule:
- These instructions are written in English for ease of use. That does not mean your output is in English.
- Read the platform's primary language from get-tenant-branding (default_locale), and write all email texts in that language, in a clean and persuasive style.
- Never use an em dash anywhere.
- Tool names here are written without suffixes. If your connector shows them with a -tool suffix, use them as they appear there.
--- What you must know about abandoned carts in Lymonah (not to be broken) ---
1. The trigger is called cart.abandoned. It fires once per cart, after the cart has been idle for about an hour, for unpaid orders worth more than zero that have an email address that can be contacted.
2. Every platform is created with a ready default recovery automation, switched off. Look for it first with list-workflows filtered by trigger_event = cart.abandoned. If you find it, improve it with get-workflow then update-workflow. Never create a second recovery sequence, because two sequences mean two emails for every customer.
3. In update-workflow, the steps field is the complete final list, not a diff: any step you do not send is deleted, and any step that keeps its uid keeps its identity and any run waiting at it. Read the automation first, edit the list it returns, then send it back in full.
4. A checkout button is added automatically to every email from this trigger. Do not write the payment link in the email text, and do not ask me for a link.
5. Merge fields available in emails: {{ name }}, {{ email }}, {{ order_number }}, {{ cart_total }} and {{ items_count }}. After a generate_coupon step, {{ coupon_code }}, {{ discount }} and {{ discount_duration }} are also available. Do not invent any other token.
6. If the customer completes payment, the rest of the sequence stops automatically and the order is recorded as recovered. So do not add a condition asking "did they buy?", and no step that checks payment.
7. Emails from this trigger count against the monthly marketing email credit in my plan. Keep it to three emails at most unless I ask otherwise.
8. Technical limits: a wait step accepts delay_unit of hours or days and a delay_value from 1, and each wait is counted from the step before it, not from the moment the cart was abandoned. A generated coupon has duration_hours between 1 and 168, discount_value is a percentage between 1 and 100 or a fixed amount in the currency's minor unit, and max_uses defaults to 1 and is reserved for the same customer when known.
9. Trigger conditions accept cart_total, items_count and order_number only. The cart_total value is in the currency's minor unit, so state the unit in your report.
10. Do not invent scarcity or numbers. Use only real values in the texts: the real discount and its real duration.
11. Hand over the automation switched off. Do not call set-workflow-enabled until I explicitly approve.
--- Workflow (one pass, no stopping once the discount is known) ---
Phase 0: Reading
- Call ping, get-tenant-branding (language and currency), list-workflow-triggers and list-workflow-actions (field names exactly as saving accepts them), list-workflows filtered by cart.abandoned, and list-orders with status pending to estimate the volume of incomplete carts.
- Print: Is there a recovery automation? What is its status and what are its current steps? Roughly how many carts are pending?
Phase 1: Sequence plan before building
- Write the proposed sequence step by step, with its timing and the reason for each email. A good default is three emails:
1) Wait one hour, then a friendly reminder with no discount, which handles forgetfulness on its own.
2) Wait one day, then a coupon with the agreed duration, and an email that mentions the discount and its duration.
3) Wait two days, then a final email before the coupon expires.
- Check the arithmetic: the last email must arrive before the coupon expires. If the waiting time exceeds the coupon's life, extend duration_hours or bring the email forward.
- If I decline a discount, replace the second email with objection handling: a guarantee, support, or another payment method, with no coupon.
- If the platform's prices vary widely, suggest a condition on cart_total that limits the sequence to carts of meaningful value, and state the figure in the minor unit.
- Print the plan, then continue without waiting for approval.
Phase 2: Building
- If an automation exists: get-workflow, then update-workflow with the complete list of steps, keeping enable set to false.
- If none exists: create-workflow with the cart.abandoned trigger and the steps, or create-automation-from-template with the recover-abandoned-cart template, then fill in whatever it left empty with update-workflow.
- Write the email texts in the detected language: a clear subject, a short body in simple HTML such as <p>, and one call to action. No payment link in the text.
Phase 3: Verification
- Call get-workflow and read the steps in their order, timing and conditions, and confirm the automation is still switched off.
Phase 4: Testing
- Pick a real unpaid order from list-orders, then run test-workflow on it. The test writes nothing to the platform, but it sends real emails to my own inbox, not to the customer. Tell me what was sent and when it arrived.
Phase 5: Final report
- Show: the automation's name and ID, every step with its timing and settings, the full email texts, the coupon limits and duration with the unit made clear, and anything missing before it can be switched on.
- Remind me that switching it on is done with set-workflow-enabled after my approval, and that the follow-up after a week is done with list-workflow-runs and get-workflow-run to see who received the emails and who completed their order.
- Mention anything you skipped.
--- Reference payload shapes (the tool schemas are the authority) ---
Wait step = {
"type": "wait",
"config": { "delay_value": 1, "delay_unit": "hours" }
}
Coupon step = {
"type": "generate_coupon",
"config": { "discount_type": "percentage", "discount_value": 10, "duration_hours": 72, "max_uses": 1 }
}
Email step = {
"type": "send_email",
"config": { "subject": "Your cart is still saved", "body": "<p>Hi {{ name }}, your order number {{ order_number }} is still waiting for you.</p>" }
}
Trigger condition = { "field": "cart_total", "operator": "greater_than", "value": "5000" }
Start now: run Phase 0 through Phase 5 in one pass, and ask about the discount only if I have not specified it.After running it
Read the final report, and check the order of the steps, their timing and the email texts before anything else.
Check that the last email arrives before the coupon expires, and that the discount value is written in the right unit.
Run the test on a real order and read the emails in your inbox, then switch the sequence on with
set-workflow-enabledwhen you are happy with it.After a week, ask the assistant to review
list-workflow-runsto see how many carts entered the sequence and how many came back and completed.
Important notes
Notes for the platform admin:
It does not duplicate what already exists: your platform comes with a default recovery automation switched off, and the prompt finds it and improves it instead of creating a second sequence that would send two emails to every customer.
Language neutral: it reads your platform's language and currency, and writes the emails in your language.
A checkout button is added automatically to abandoned cart emails, so there is no need to write a link in the text.
No "did they buy?" condition is needed: as soon as the customer pays, the remaining emails stop and the order is recorded as recovered.
Abandoned cart emails count against your monthly marketing email credit, so the prompt keeps to three emails unless you ask otherwise.
It always hands over the sequence switched off. Turning it on is your decision after review and testing.
The test sends real emails to your own inbox and does not reach the customer who placed the order.
The only decision point is the discount and its duration. Nothing else.
Summary
A practical guide: copy the prompt below as is, then follow the review steps before and after running it so the result is safe and ready to publish.