Free cookie consent management tool by TermsFeedAktualizacja preferencji plików cookie

AI-Powered Cart Recovery Assistant for Magento 2

€128.46 €104.44
COMPOSER Installation
M2-AI-CART-RECOVERY
PayPal PayPal
Przelew Przelew

Magento Modules: Clear Guidelines

You purchase the module once, with no domain restrictions

Tooltip

Free installation and updates via Composer

Tooltip

Affiliate Program

Tooltip

Technical support for Magento

Tooltip

Clear guidelines for licensing Magento modules

Tooltip

Magento Module Code Security

Tooltip

Smart abandoned cart recovery

AI Cart Recovery Assistant for Magento 2 helps stores recover incomplete orders more effectively without manually managing follow-up campaigns. The module automatically detects active carts that have not been updated for the period defined in the configuration, then saves them as potentially abandoned.

The next step is to assess the customer purchase intent. The module can analyze the cart using OpenAI or, if AI integration is not enabled, use a secure heuristic mechanism. It considers factors such as cart value, number of products, checkout stage, and basic customer context. Based on this, an intent score is calculated, meaning the likelihood of completing the purchase, along with the abandonment reason, such as price sensitivity, checkout friction, or offer comparison.

Personalized emails that recover sales

After the minimum intent threshold is exceeded, the module generates cart recovery emails. The content can be prepared by AI based on the cart contents and the detected abandonment reason, or by a fallback mechanism based on ready-made messages. The message includes a secure link to restore the cart and, optionally, a link to the AI assistant, which can answer customer questions and help them complete the purchase.

The module stores sending logs, supports a failed attempt counter, and lets you control the maximum number of errors. As a result, the process is automated while remaining predictable and easy for the store team to monitor.

Dynamic discount coupons

For carts with lower purchase intent and an appropriate order value, the module can automatically generate a one-time discount code. The discount amount is calculated based on cart value and intent score, while the maximum discount limit remains fully under the administrator control. This helps protect margin more effectively and trigger a discount only when it makes real business sense.

AI assistant for the customer

One of the module key differentiators is the built-in AI assistant connected to the abandoned cart. The customer can open a dedicated link and ask a question about products, variant selection, or purchase benefits. The module passes the cart context, product information, and even data about related, upsell, and cross-sell products to the AI model. Conversations are saved in the admin panel, giving the team insight into real customer purchase objections.

Dashboard, analytics, and technical integration

In the Magento panel, the administrator gets access to the Dashboard, Recovery Analytics, Conversations, and Email Logs sections. The module marks recovered carts after an order is placed and presents basic metrics, such as the number of abandoned carts, number of recovered carts, recovered revenue, number of emails sent, and coupon usage.

For more advanced implementations, CLI commands and REST API endpoints are available. The module runs cron jobs for cart detection, scoring, and email sending, making it a good fit for the standard Magento 2 automation architecture.

Key benefits

  • automatic abandoned cart detection
  • cart scoring using AI or heuristic logic
  • personalized emails that recover sales
  • secure one-click cart restoration
  • optional generation of one-time discount coupons
  • AI assistant that helps customers complete the purchase
  • dashboard, analytics, email logs, and conversation history
  • REST API and CLI for integration with store processes
  • per-store configuration and Magento 2 compatibility

Magento 2 module for recovering abandoned carts with features for:

  • detecting abandoned carts
  • cart scoring using AI or heuristics
  • generating cart recovery emails
  • optional coupon generation
  • conversations with an AI shopping assistant
  • admin panel and analytics
  • REST API endpoints and CLI commands

Overview

The module helps recover abandoned carts in Magento 2 by detecting inactive carts, evaluating purchase intent, and sending emails with a secure link to restore the cart. Depending on the configuration, it can operate in two modes:

  • heuristic mode, without external AI
  • OpenAI mode, with AI analysis, email content generation, and assistant conversations

Typical workflow:

  1. The customer adds products to the cart.
  2. The customer leaves the store without placing an order.
  3. After the configured inactivity period passes, the cart is marked as abandoned.
  4. The module assigns a score to the cart.
  5. If the score is high enough, a recovery email is sent.
  6. The email may include a discount coupon and a link to the AI assistant page.
  7. If the customer returns and places an order, the cart is marked as recovered.

Requirements

Before installation, make sure the store meets the following requirements:

  • Magento 2 with CLI access
  • properly working Magento cron
  • transactional email sending configured in Magento
  • HTTPS enabled on the storefront
  • if AI mode is used: OpenAI API account with active billing and an API key

Operational recommendations:

  • production mode for the live store
  • tested email template and correctly configured sender
  • privacy policy covering the use of AI services if OpenAI mode is enabled

Installation

* = on production, use the --keep-generated option

Type: Composer

  1. Add the Composer repository to the configuration:

    composer config repositories.ai.abandoned.cart vcs https://github.com/kowalco/ai-abandoned-cart
  2. Add an access token for the private GitHub repository:

    composer config --global --auth github-oauth.github.com 
  3. Install the module via Composer:

    composer require kowal/module-ai-abandoned-cart

Then run:

bin/magento module:enable Kowal_AiAbandonedCartbin/magento setup:upgradebin/magento setup:di:compilebin/magento cache:flush

Post-installation checklist

After installation, check:

  • whether the module is enabled in Magento
  • whether the database schema was installed by setup:upgrade
  • whether Magento cron is working correctly
  • whether the store sends transactional emails
  • whether the storefront uses valid HTTPS URLs

Useful verification commands:

bin/magento module:status Kowal_AiAbandonedCartbin/magento cron:runbin/magento cache:flush

Configuration

Magento Admin:

Stores -> Configuration -> Kowal -> AI Abandoned Cart

Admin pages:

Marketing -> AI Abandoned Cart

Configuration fields

Key settings:

  • Enable Module Enables or disables the entire module.

  • Cart Inactivity Threshold (minutes) Defines after how many minutes of inactivity an active cart should be considered abandoned.

  • AI Provider Available values:

    • Heuristic Fallback
    • OpenAI
  • OpenAI API Key Required only when AI Provider is set to OpenAI.

  • Minimum Intent Score Only carts with a score equal to or higher than this value qualify for sending a recovery email.

  • Enable Dynamic Coupons Enables generation of one-time coupons for selected abandoned carts.

  • Maximum Coupon Discount Defines the upper limit of the automatically generated percentage discount.

  • Maximum Failed Email Attempts Defines how many failed sending attempts are allowed before the module stops retrying.

  • Email Address for Message Copies Optional BCC recipient for recovery messages.

  • Enable AI Assistant Link If enabled, the recovery email will include a secure link to the AI assistant page.

  • Conversation Expiration Time (minutes) Defines how long the AI assistant link remains valid.

  • Batch Size Defines how many carts are processed in one detection, scoring, and email sending run.

  • Cart Analysis Prompt Used when AI scoring is active.

  • Email Generation Prompt Used to generate email content in AI mode.

  • Conversation Prompt Used by the AI assistant during a conversation with the customer.

Recommended initial configuration

A safe starting set of settings is:

  • Enable Module: Yes
  • Cart Inactivity Threshold (minutes): 30
  • AI Provider: Heuristic Fallback or OpenAI
  • Minimum Intent Score: 0.45
  • Enable Dynamic Coupons: Yes
  • Maximum Coupon Discount: 5
  • Maximum Failed Email Attempts: 3
  • Enable AI Assistant Link: Yes
  • Conversation Expiration Time (minutes): 1440
  • Batch Size: 100

Heuristic mode vs OpenAI mode

Heuristic mode

Use this mode if you want to start without integrating with external AI.

In this mode, the module:

  • detects abandoned carts
  • calculates intent score based on built-in business rules
  • sends recovery emails
  • can generate coupons
  • can still provide the assistant page, but responses will be based on built-in logic instead of OpenAI

OpenAI mode

Use this mode if you want greater personalization.

In this mode, the module can additionally:

  • analyze cart context using OpenAI
  • generate more personalized email content
  • handle AI assistant conversations about products in the cart
  • use product descriptions, related products, up-sell, and cross-sell in responses

OpenAI configuration

To enable OpenAI mode:

  1. Create an API key in your OpenAI Platform account.
  2. In Magento Admin, go to Stores -> Configuration -> Kowal -> AI Abandoned Cart.
  3. Set AI Provider to OpenAI.
  4. Paste the key into the OpenAI API Key field.
  5. Save the configuration.
  6. Clear the Magento cache.

Important information:

  • ChatGPT subscriptions and API billing are separate things
  • API usage is billed independently by OpenAI
  • in AI mode, the prompt and cart context are sent to OpenAI

Cron Jobs

The module uses Magento cron jobs for automatic processing.

Configured cron jobs:

  • kowal_ai_abandoned_cart_detect
  • kowal_ai_abandoned_cart_score
  • kowal_ai_abandoned_cart_email

What they do:

  • detect: finds inactive carts that qualify as abandoned
  • score: calculates intent score and reason code
  • email: sends recovery emails and saves logs

If Magento cron is not working, the module will not automatically process carts.

First test after configuration

After installation and configuration, perform a full end-to-end test:

  1. Open the storefront as a guest customer.
  2. Add one or more products to the cart.
  3. Start checkout and enter an email address.
  4. Leave checkout without placing an order.
  5. Wait until the configured inactivity threshold has passed.
  6. Run cron or CLI commands manually.
  7. Confirm that the cart appeared in the admin panel.
  8. Confirm that the recovery email was sent.
  9. Open the cart restore link from the message.
  10. If the option is enabled, open the AI assistant link and send a test message.

Manual CLI sequence:

bin/magento kowal:ai:cart:detectbin/magento kowal:ai:cart:scorebin/magento kowal:ai:cart:send-emails

Admin pages

The module adds dedicated admin pages under:

Marketing -> AI Abandoned Cart

Available sections:

  • Dashboard Overview of detected and recovered carts.

  • Recovery Analytics Recovery performance statistics and operational metrics.

  • Conversations History of AI assistant conversations linked to abandoned carts.

  • Email Logs Log of sent and failed recovery messages.

These pages are especially useful during implementation because they let you verify whether detection, scoring, email sending, and recovered cart tracking are working correctly.

Email content and customer experience

Each recovery email can include:

  • a personalized subject line
  • custom message content
  • a summary of products in the cart
  • cart value
  • a secure link to restore the cart
  • an optional one-time discount coupon
  • an optional link to the AI assistant

Customer journey:

  1. The customer receives an email.
  2. The customer clicks the restore link and returns to the saved cart.
  3. The customer can optionally open the assistant page from the message.
  4. The assistant can answer product questions, compare options, and guide the customer back to checkout.

How coupons work

If dynamic coupons are enabled, the module can generate a coupon when:

  • the cart value is high enough
  • the intent score suggests that a discount may help
  • the calculated discount does not exceed the configured maximum

Current built-in rules:

  • carts below 100 store currency units do not receive a coupon
  • carts with a high intent score do not receive a coupon
  • carts with lower intent may receive a discount, usually 3% or 5%, limited by the configuration

Generated coupons are:

  • one-time use
  • limited per customer
  • linked to a shared Magento cart rule for the given discount level and store

CLI

You can run the module manually from the CLI, especially during testing and diagnostics.

bin/magento kowal:ai:cart:detectbin/magento kowal:ai:cart:scorebin/magento kowal:ai:cart:send-emails

Command meaning:

  • kowal:ai:cart:detect Detects abandoned carts.

  • kowal:ai:cart:score Assigns scoring and a reason code to carts.

  • kowal:ai:cart:send-emails Sends recovery messages for qualifying carts.

Security

Cart restore and assistant links use signed tokens.

The token payload contains:

  • quote_id
  • email
  • store_id
  • expires_at

The token is validated by:

  1. signature verification
  2. expiration date check
  3. cart ownership verification

This gives the customer a secure link tied to a specific cart and limited in time.

Troubleshooting

Carts are not being detected

Check:

  • whether the quote is still active
  • whether the cart contains products
  • whether the quote does not have a related completed order
  • whether the customer email address was captured
  • whether the inactivity threshold has passed
  • whether Magento cron is running

Carts are detected, but emails are not being sent

Check:

  • whether Enable Module is enabled
  • whether Minimum Intent Score is not set too high
  • whether email sending works in Magento
  • whether the Maximum Failed Email Attempts limit has not been reached
  • whether the email address assigned to the cart is correct

OpenAI mode is enabled, but the AI score is not being used

Check:

  • whether AI Provider is set to OpenAI
  • whether OpenAI API Key is filled in correctly
  • whether the server allows outbound connections to the OpenAI API
  • whether the OpenAI account has active billing

If the OpenAI call fails, the module will switch to the built-in heuristic behavior.

Check:

  • whether OpenAI mode is active
  • whether the conversation prompt is configured correctly
  • whether the link is still valid and has not expired

Notes for production use

Before launching in production, it is worth:

  • checking email content and branding
  • testing the coupon policy against real business rules
  • verifying privacy and compliance requirements
  • testing AI prompts on the store catalog and communication tone
  • monitoring the first days of operation in Dashboard, Conversations, and Email Logs

Information needed for a support request

When reporting an issue, prepare:

  • Magento version
  • PHP version
  • store mode: developer or production
  • information on whether cron is running
  • information on whether the issue occurs in heuristic or OpenAI mode
  • sample quote ID or customer email address affected by the issue
  • relevant entries from Magento exception logs or system logs
Version history highlights: initial release includes abandoned cart detection, intent scoring with OpenAI or heuristic fallback, recovery email generation with secure restore links, optional one-time coupon generation, AI assistant conversations, admin dashboard analytics, email logs, CLI commands, and REST API endpoints. Performance and stability improvements included for cron scheduling and logging.
Implemented in real Magento 2 stores
Toursport.pl - sprzęt sportowy i odzież outdoorowa

W Toursport.pl klienci często porzucają koszyk, gdy wahają się między rozmiarem, zastosowaniem produktu lub sezonem: kurtka na trekking, buty na dłuższą trasę, plecak o odpowiedniej pojemności. Decyzja wymaga pewności, że produkt sprawdzi się w konkretnych warunkach.

Instalacja Kowal AI Abandoned Cart pozwala odzyskać taki moment namysłu. Moduł wysyła spersonalizowany e-mail, przywraca koszyk jednym linkiem i kieruje do asystenta AI, który pomaga porównać warianty oraz zmniejsza ryzyko odłożenia zakupu.

Tandembaits.com - wędkarstwo karpiowe

Tandembaits.com sprzedaje specjalistyczne akcesoria i zanęty dla karpiarzy, dlatego porzucony koszyk często nie oznacza braku zainteresowania, tylko chwilę porównywania zestawu. Klient może sprawdzać smaki kulek, rozmiary haczyków albo kompatybilność z posiadanym sprzętem.

Po instalacji modułu Kowal AI Abandoned Cart sklep może automatycznie wykrywać takie koszyki, ocenić intencję zakupu i wysłać wiadomość z linkiem powrotu. Asystent AI pomaga doprecyzować wybór, a kupon może domknąć zakup bez nachalnej obniżki.

PCHB.pl - płytki premium z Włoch i Hiszpanii

W PCHB.pl koszyk ma zwykle wysoką wartość, a decyzja zakupowa jest dłuższa. Klient może porzucić zamówienie, bo wraca do projektu łazienki, konsultuje format płytek z wykonawcą albo porównuje kolekcje włoskie i hiszpańskie z segmentu premium.

Kowal AI Abandoned Cart po instalacji działa jak dyskretne przypomnienie sprzedawcy. Moduł identyfikuje koszyk, nadaje mu scoring i wysyła elegancką wiadomość z bezpiecznym linkiem powrotu. Asystent AI może pomóc w pytaniach o zastosowanie, styl i alternatywne kolekcje.

Hobbycenter24.pl - repliki ASG i akcesoria

W Hobbycenter24.pl porzucony koszyk często wynika z potrzeby dopasowania repliki, magazynków, akumulatora, ładowarki lub ochrony oczu. Klient jest zainteresowany zakupem, ale chce uniknąć niekompletnego zestawu albo elementów niepasujących do wybranego modelu.

Po wdrożeniu Kowal AI Abandoned Cart sklep może automatycznie przypominać o koszyku i podpowiadać powrót do zakupu. Wiadomość odzyskująca prowadzi do koszyka oraz asystenta AI, który pomaga rozwiązać wątpliwości techniczne, a rabat może być uruchamiany tylko dla koszyków z wysokim scoringiem.

Bikechill.pl - rowery i akcesoria

W Bikechill.pl klient porzuca koszyk najczęściej wtedy, gdy porównuje typ roweru, rozmiar ramy, osprzęt albo dodatkowe akcesoria. Zakup jest techniczny i sezonowy, więc chwila wahania może wynikać z potrzeby potwierdzenia, czy wybrany model pasuje do trasy, wzrostu i stylu jazdy.

Kowal AI Abandoned Cart pomaga wrócić do tej decyzji bez presji. Moduł wykrywa porzucony koszyk, wysyła wiadomość z linkiem powrotu i może skierować klienta do asystenta AI, który odpowie na pytania o dopasowanie, warianty oraz elementy zestawu.

Questions and Answers

Question
What is this module used for?
Answer
The module helps recover abandoned carts in Magento 2. It automatically detects incomplete purchases, evaluates the chances of conversion, sends recovery emails, and can support the customer through an AI assistant.
Question
Does the module work only with OpenAI?
Answer
No. The module supports an AI scenario as well as a fallback mode without an active OpenAI integration. When the API key is not configured, scoring and communication content can be generated by heuristic logic and predefined templates.
Question
How does the module identify an abandoned cart?
Answer
The cart is analyzed based on the time of the last activity. If it remains active, contains products, has not been converted into an order, and has not been updated for the period set in the configuration, it may be marked as abandoned.
Question
Can the customer return to their cart with one click?
Answer
Yes. The module generates a secure link that restores the cart. After clicking it, the customer returns to their cart in Magento and can continue checkout without having to add the products again.
Question
Can the module create discount coupons?
Answer
Yes. The module can automatically generate one-time discount codes for selected carts, for example when it detects lower purchase intent and the cart value justifies an additional incentive to buy.
Question
Can you control when emails are sent?
Answer
Yes. The administrator sets the cart inactivity threshold, minimum intent score, maximum number of failed sends, batch size, and other process parameters. Sending is handled automatically by Magento cron.
Question
What does the AI assistant provide in this module?
Answer
The AI assistant helps the customer resolve purchase-related doubts directly after clicking the link in the email. It can answer questions about products, suggest benefits, and support the customer in returning to checkout, which increases the chances of completing the transaction.
Question
Does the module have a reporting panel in Magento Admin?
Answer
Yes. The module adds separate administrative sections, including Dashboard, Recovery Analytics, Conversations, and Email Logs. This makes it possible to monitor recovery effectiveness, contact history, and customer activity.
Question
Is the solution suitable for integration with other processes?
Answer
Yes. The module provides CLI commands and REST API endpoints, which makes it easier to integrate with external systems, marketing automation processes, or custom deployment workflows.
Question
Does the module support multilingual and multistore shops?
Answer
Yes. The module uses per-store view configuration and reads the store locale, which helps better tailor communication. The repository also includes translation files for multiple languages, making implementation easier in international environments.
Write Your Own Review
You're reviewing:AI-Powered Cart Recovery Assistant for Magento 2
Your Rating
Products