Multi-Agent AI with RAG & MCP for Enterprise Logistics

We built a multi-agent AI system that reads shipment documents, answers ops questions from 12 years of internal knowledge, and acts in the client's TMS and ERP through MCP.

About the client

An enterprise logistics and freight-forwarding company moves road, sea, and air freight for manufacturers and retailers across 20+ countries

About the Product

The product is an internal AI operations platform: a team of specialized AI agents works alongside the client’s dispatchers and customs brokers to support the entire workflow. The agents perform the following tasks: 

  1. Classify shipment documents
  2. Track exceptions such as delays and missing paperwork
  3. Answer questions from the company’s own knowledge base
  4. Create support tickets
  5. Update shipment statuses
  6. Send automatic, standard customer emails.

However, humans are left in the loop for approvals and control.

Introduction

Due to an NDA, we don’t disclose the client’s name, but the essence of the project remains feasible. As the client runs 40+ warehouses and handles about 1.2 million shipments a year, they need additional flexibility in tools. This way, operations teams work across a custom transport management system (TMS), SAP ERP, a customs platform, carrier portals, and CRM. 

When they were operating in the regional market, it was ok. But as the volume of operations grew, people needed help digging through 5 systems. Earlier, they implemented chatbot pilots, but those failed to reproduce adequate enterprise-grade results.

From our perspective, a multi-agent system grounded in the client’s own data through RAG, connected to their systems through MCP, with strict permissions and a human in the loop was more suitable. In 6 months, we took it from discovery to production across 3 business units.

Project Team

  • 1 Solution Architect
  • 2 AI Engineers
  • 1 Full-Stack Engineer
  • 1 Data Engineer
  • 1 DevOps/MLOps Engineer
  • 1 QA Engineer (incl. LLM evaluation)
  • 1 Business Analyst

Challenges

  • Knowledge locked in silos. Part of operational know-how sat in separate documents: SOPs, carrier contracts, customs rules, corporate knowledge bases in PDFs and docs, etc.
  • Manual exception handling. While chatbots supplied answers, delays, damaged goods, and missing customs papers were handled by email manually. Each case meant switching between the TMS, SAP, carrier portals, and email to gather truth. This is the reason why senior staff kept their own archives and project data, but they were separate and not verified.
  • Legacy systems with no AI-ready interfaces. The TMS was a 12-year-old in-house system with partial APIs. Any AI layer had to work with it. Plus, the client wanted to swap LLM providers and add new tools without rebuilding the system.
  • Security and compliance. The client needed UK GDPR and EU GDPR  compliance, data residency in the UK, role-based access, and a full audit trail of every AI action.

Tech Stack

Layer Technologies
Agent orchestration LangGraph, Python 3.12
LLMs Claude (primary), Azure OpenAI (fallback), via a model-agnostic gateway
RAG PostgreSQL + pgvector, hybrid search (BM25 + vectors), Cohere Rerank
Document processing Azure Document Intelligence, Unstructured.io
Backend & APIs FastAPI, Celery, Redis
Frontend React, TypeScript (ops console), MS Teams bot
Integrations SAP S/4HANA, custom TMS, customs platform, carrier APIs, Outlook
Observability & evals Langfuse, OpenTelemetry, Grafana, custom eval suite
Infrastructure Azure (UK South/EU regions), Kubernetes (AKS), Terraform, GitHub Actions
Security Azure AD SSO, RBAC, Key Vault, PII redaction

Solution

As a result, we built a production multi-agent system in which an orchestrator routes each task to specialized agents. The agents ground their answers in the client’s data through RAG and acted in live systems through MCP, redirecting risky actions back through the supervisor for human approval.

1. Discovery Phase

Within a quick 4-week discovery, we mapped exception scenarios and picked ones with the highest volume and clearest rules for the first release. For each one, we set a target accuracy and defined which steps an agent may do alone and which needed human attention.

2. Multi-Agent Architecture

The work was split between agents with narrow roles as soon as narrow agents were easier to test, cheaper to run, and simpler to improve one at a time:

  • Orchestrator agent read the request or event, planned actions and created support tickets, and assigned them to other agents
  • Document agent extracted data from bills of lading, CMRs, invoices, and customs forms and checked them against TMS records
  • Knowledge agent answered questions about SOPs, contracts, and customs rules, always with linked to sources
  • Exception agent detected delays and discrepancies, found the root cause, and proposed a fix
  • Communication agent drafts and sends emails to customers 
  • Supervisor agent checked outputs against business rules and sent risky actions to a human

3. Enterprise RAG

Ingestion pipelines spanned across 100,000+ documents from SharePoint, internal CRM, email, and the TMS, with each document parsed, tagged with metadata, and indexed.

Retrieval used hybrid search plus reranking, filtered by the user’s permissions. If the confidence score is below the threshold, the system flagged the question and passed it to a human.

4. MCP Integration Layer

We wrapped the client’s systems in MCP servers: TMS, SAP, the customs platform, carrier tracking APIs, and Outlook. New systems now plug in as new MCP servers without changes to the agents. Read and write tools have separate permissions, and every call is logged.

5. Guardrails

Ops staff work with agents via a web console and MS Teams. They see each agent’s reasoning, sources, and proposed actions to approve or edit the output. General guardrails include PII redaction, role-based access to tools, spending and filing limits, with a full audit log.

6. Evaluation and LLMOps

We built an eval suite of 1,500+ real cases labeled by the client’s experts. Every prompt, model, or retrieval change runs against it in CI before release. In production, Langfuse traces every agent step, so the team can see cost, latency, and quality per scenario.

7. Accelerated Development

The initial estimate for a system of this scope was 9 months. We shipped to production in 6 months, while quality stayed the same:

  • Reusable accelerators. We started from Devox Software’s in-house blueprints for RAG ingestion, agent orchestration, and MCP servers, saving weeks of setups.
  • MCP as the contract between teams. We agreed on MCP tool schemas in week 3. The agent and integration teams then built in parallel against mocked MCP servers, so neither team waited for the other.
  • Early evaluation. The expert-labeled test set was ready before most of the agent code. Every change was scored automatically in CI, which cut long manual QA rounds before each release.
  • AI-assisted engineering. Our engineers used AI Solution Accelerator™ for boilerplate, API wrappers, test generation, and documentation. That freed time for architecture and edge cases.
  • Thin vertical slices. Instead of finishing every agent before launch, we shipped one exception scenario end to end, then added the next. Security and compliance reviews ran on each slice, so there was no late sign-off bottleneck.

Results

Within 6 months from launch, the system handles most routine exceptions end to end, and the client’s teams check only cases that need their judgment.

  • 600+ people use the system daily
  • Fast new tools connection thanks to MCP layer
  • Projected payback: under 9 months

Sum Up

The client needed AI that knows its business, works inside its systems, and can be trusted with real operations. Combining narrow AI agents, enterprise RAG, and an MCP integration layer, Devox Software has built that system on top of the client’s legacy stack without rewrite. The result is faster exception handling, fewer errors, and a platform the client can safely extend to new processes on its own.

Our cooperation isn’t over: now we’re working with the client on phase two: agents for freight rate negotiation and warehouse slot planning.

Book a call

Want to Achieve Your Goals? Book Your Call Now!

Having trouble booking? Open the booking page.

Contact Us

We Fix, Transform, and Skyrocket Your Software.

Tell us where your system needs help — we’ll show you how to move forward with clarity and speed. From architecture to launch — we’re your engineering partner.

Book your free consultation. We’ll help you move faster, and smarter.

Let's Discuss Your Project!

Share the details of your project – like scope or business challenges. Our team will carefully study them and then we’ll figure out the next move together.







    By sending this form I confirm that I have read and accept the Privacy Policy

    Thank You for Contacting Us!

    We appreciate you reaching out. Your message has been received, and a member of our team will get back to you within 24 hours.

    In the meantime, feel free to follow our social.


      Thank You for Subscribing!

      Welcome to the Devox Software community! We're excited to have you on board. You'll now receive the latest industry insights, company news, and exclusive updates straight to your inbox.