💡 Inspiration

In emerging markets, processing a microinsurance claim—like a damaged commercial motorbike or a flooded market stall—is pure chaos. Claims come in as a messy mix of WhatsApp voice notes, fuzzy photos, and handwritten receipts. Traditional Robotic Process Automation (RPA) acts like a rigid conveyor belt; the moment it encounters this unstructured, unpredictable data, the belt jams and the system breaks.

We realized that to process these claims safely, we didn't need a conveyor belt—we needed a "Smart Hospital Triage." We built Recourse to be that intelligent triage system, capable of understanding chaotic inputs and routing them dynamically.

⚙️ What it does

Recourse is a multi-agent claims orchestration platform built on UiPath Maestro.

  • Intelligent Intake: It catches unstructured claim data (text, images, voice) via a Next.js webhook and instantly triggers a UiPath Maestro Case.
  • Specialized Agent Routing: Maestro acts as the workflow manager, routing the case file to specialized AI workers: an Intake Agent for classification, a Verification Agent for fraud detection and photo analysis, and an Adjudication Agent for policy matching.
  • Human-in-the-Loop Gate: If the AI is uncertain (low confidence score) or decides to deny a claim, Maestro halts the automation and packages a cited "Evidence Folder." This is sent directly to a beautifully designed, dark-mode Next.js Adjuster Dashboard where a human makes the final call.

🛠️ How we built it

We split the architecture into a seamless bridge between a custom frontend and enterprise cloud orchestration:

  • The Orchestrator (UiPath Maestro Case): We used the Maestro Case track within the UiPath Automation Cloud to build an exception-heavy workflow. Instead of linear steps, Maestro evaluates the state of the claim and dynamically calls our agentic nodes.
  • The Frontend Edge (Next.js & Tailwind): We built a custom Next.js API route to act as the intake data watcher, securely passing JSON payloads into the UiPath environment using Orchestrator API credentials.
  • The Adjuster Dashboard: We crafted a B2B React interface featuring a split-screen layout—displaying the claimant's raw evidence on one side and the precise Agent Audit Trail (with confidence metrics) on the other.
=============================================================================
                          RECOURSE ARCHITECTURE
=============================================================================

 [ Unstructured Claim ] 
   (WhatsApp/Photos)
           │
           ▼
  ┌──────────────────┐
  │  Next.js Edge    │ ─── ( Webhook Payload ) ──┐
  └──────────────────┘                           │
                                                 ▼
                                     ┌───────────────────────┐
                                     │  UiPath Maestro Case  │ (Orchestrator)
                                     └─────┬───────────┬─────┘
                                           │           │
                          ┌────────────────┘           └────────────────┐
                          ▼                                             ▼
                 [ Intake Agent ]                             [ Verification Agent ]
                 (Classification)                             (Fraud / Image Analysis)
                          │                                             │
                          └─────────────────┐         ┌─────────────────┘
                                            ▼         ▼
                                  [ Adjudication Agent ]
                                   (Policy Matching)
                                            │
                                            ▼
                                  { Confidence Gate }
                                       /         \
                              (High Score)     (Low Score / Flagged)
                                    /               \
                                   ▼                 ▼
                          [ Auto Payout ]      [ Adjuster Dashboard ]
                               (API)                 (Next.js)
                                                     │
                                                     ▼
                                            [ Human Final Call ]

🚀 Challenges we ran into

The hardest part was defining the strict JSON schema contracts between our Next.js edge and the UiPath Orchestrator. When dealing with multiple AI agents, "hallucination" is the enemy of enterprise software.

We had to heavily engineer the prompts and data interfaces so that the Verification and Adjudication agents consistently returned structured confidence scores and policy citations, rather than unstructured conversational text, ensuring the Maestro routing logic never broke.

🏅 Accomplishments that we're proud of

  • Breaking the RPA Mold: Moving beyond simple task automation to build a true, state-driven orchestration engine that thrives on unstructured exceptions.
  • Enterprise Safety First: Designing a system that a real insurance corporation would actually deploy, specifically because it defaults to human escalation rather than blind automated payouts.
  • Seamless API Bridging: Successfully linking a modern Vercel-deployed Next.js stack with the heavy-duty enterprise environment of UiPath Studio Web.

📚 What we learned

We learned that in agentic architecture, having a strong "manager" is just as important as having smart AI. UiPath Maestro proved that letting an orchestrator handle state, routing, and human hand-offs allows the AI models to focus entirely on specialized reasoning tasks without dropping the ball.

🔮 What's next for Recourse

  • Direct WhatsApp Integration: Connecting the intake webhook directly to a WhatsApp Business API so claimants can submit photos and voice notes conversationally.
  • Mobile Money Payout Automation: Wiring the "Approve" button on the Human Adjuster dashboard to instantly trigger a mobile money disbursement API (like Wave or M-Pesa), bringing claim resolution time down from weeks to minutes.

Built With

Share this project:

Updates