
Let shopping agents offer the right incentive without blanket codes that give away margin.
Keep hesitating shoppers by responding in the same session, not in a batch email after they leave.
A next-best-action agent that responds to shopper hesitation while the session is still live.
Reads live hesitation signals and writes a next best action, such as a recommendation or shipping offer, for the storefront to show.
Most retailers keep shopper behavior in systems of record and analyze it later. By the time an abandoned-cart email goes out, a retargeting campaign starts, or someone reads a dashboard, the shopper has already left.
Keeping a customer costs far less than winning a new one, but only if the retailer can act while the session is still active, and without replacing the storefront it already runs.
A sample storefront, Leafy Pop-Up Store, writes its events to a collection and otherwise stays as it is. Atlas Stream Processing builds a session-state document from 10-second windows, and three more processors read those snapshots over 30-second windows to detect high intent, search friction, and exit risk.
A change stream on the signals collection triggers the decision agent. It reads live session state together with the shopper's profile, the catalog, promotions, and business rules from the same database, using MCP, Atlas Vector Search, Voyage AI embeddings, and an LLM on Amazon Bedrock, and writes a next best action.
The storefront watches that collection through its own change stream and shows the action to the active shopper as a product highlight, a cart message, or a pop-up.
This one is published in full. Read it, run it, fork it. Nothing here is behind a conversation.
MongoDB is behind this solution. Ask about acting on shopper hesitation in real time, and the MACH Alliance will put you in touch with the person who can answer.
Not ready to talk to anyone? MACH Insider is the Alliance mailing list. New solutions, program openings, and the research behind them, once a month.

Let shopping agents offer the right incentive without blanket codes that give away margin.

Campaign setup is 75% faster and coupon generation 99% faster, with no developer involved.
Order questions and in-policy returns are settled in the chat, and every case that needs judgment reaches a person with the evidence attached.
Published case study
The detail on this page is drawn from a case study published by the contributor or the MACH Alliance. Any figures on this page are the ones that case study states.
What this page does not establish
Where this came from
Written from MongoDB's Solutions Library page, public repository, and blog post on real-time customer retention, and the write-up MongoDB sent the MACH Alliance in October 2026.
Put your agentic solution in front of the enterprise leaders who use the hub to decide what to build next. Submissions are open to MACH Alliance Members, Collaborators, or Ambassadors.