An AI agent that rescues failed deliveries

An autonomous agent that resolves failed deliveries and writes the outcome back to Shopify.

Illustration: a failed delivery is picked up by the AI agent, rescheduled within business rules, and synced back to the store.
Client
Client work (name withheld)
Industry
E-commerce operations
What we did
AI agent design · Backend engineering · Shopify integration
Built with
Python · FastAPI · Shopify Admin API · Streamlit · NVIDIA NIM and Groq

The brief

When a delivery fails, the order can end up returning to the merchant at a loss. This system picks up each failed-delivery event, lets an AI agent work out the best fix from the order and the customer's preferences, and only acts within hard business rules.

What we delivered

  • A plan-act-observe agent that reads the order and customer profile, finds delivery slots and reschedules
  • Hard guardrails checked before any action: business hours, courier capacity and retry limits
  • Two-way Shopify sync that reads checkout notes and writes resolution tags and timeline notes
  • A webhook API for carrier failure events and customer replies
  • Automatic failover across AI providers, with an offline rules fallback
  • An operations console with prepared customer messages and a step-by-step reasoning trace
  • An automated test suite (51 tests, per the repository)

Want something like this built?

Tell us what you want to build and when. We reply within 24 hours with next steps, and you get a written scope, timeline and price before anything starts.