( Case study · AI system )
RescueFlow AI
An agent that rescues failed deliveries on Shopify before they turn into returns.
- Role
- Design and build
- Type
- Autonomous AI agent
- Stack
- Python, FastAPI, SQLAlchemy, Streamlit, Shopify Admin API

( Overview )
A failed delivery becomes a costly return when nobody acts in time. RescueFlow is an autonomous agent for Shopify merchants: it picks up the failure, works out a fix the customer will accept, and applies it inside hard business rules.
( How it works )
- 01A carrier webhook reports the failed delivery to a FastAPI engine.
- 02The agent runs a Plan–Act–Observe loop over the order, the customer's profile and memory, past attempts and courier availability.
- 03It scores the feasible delivery slots and proposes a fix.
- 04Deterministic guardrails check business hours, courier load and retry limits before anything is written.
- 05The fix is applied and noted on the Shopify order, the customer hears on WhatsApp or SMS, and anything infeasible goes to a human.
( Details )
- Model failover from NVIDIA NIM to Groq to an offline heuristic, so rate limits never stop a rescue.
- Memory of each customer's preferences across orders.
- Nine tools, five that read and four that change state, over real database records.
( Further reading )
How to reduce failed deliveries on Shopify

