Skip to content

Conversation

@pikorpa
Copy link

@pikorpa pikorpa commented Dec 10, 2025

Summary

This PR adds a production-grade coded agent sample for medical device calibration scheduling in healthcare facilities. The agent was developed for the UiPath Specialist Coded Agent Challenge 2025, where it achieved 4th place.

Author: Piotr Kołakowski, UiPath MVP 2025

What's Included

Core Components:

  • main.py - LangGraph StateGraph workflow with Human-in-the-Loop approval
  • config.py - Centralized configuration management
  • mcp_bridge.py - RPA workflow integration via Model Context Protocol
  • .env.example - Configuration template
  • requirements.txt - Dependencies (December 2025 compliant)

Sample Data:

  • 20 medical devices requiring calibration
  • 20 healthcare facility locations across 4 cities
  • 5 field service technicians
  • Data Fabric schema definitions
  • 3 policy documents for Context Grounding

Documentation:

  • Complete setup guide
  • Architecture overview
  • Troubleshooting section
  • HITL testing instructions

Key Features

The agent demonstrates integration with multiple UiPath platform services:

  • Data Fabric - Entity management for devices, clinics, and technicians
  • Context Grounding - Policy retrieval using Storage Buckets and RAG
  • Action Center - Manager approval workflow for route assignments
  • MCP - RPA workflow execution for notifications
  • LLM Gateway - GPT-4o for intelligent decision-making
  • Google Maps API - Route optimization with automatic fallback to mathematical distance calculation

Business Problem Solved

Healthcare facilities manually schedule calibration visits for medical devices, which takes 4+ hours weekly and results in suboptimal routes, missed SLA deadlines, and scheduling errors.

This agent automates the entire process:

  • Analyzes 100 devices for calibration status
  • Creates optimized routes grouped by city
  • Respects technician specializations and work hour limits
  • Handles emergency overdue equipment with extended routing
  • Reduces planning time by 99% (4 hours to 3 minutes)
  • Cuts route distances by 27%

Educational Value

This sample is valuable for developers learning to build coded agents because it:

  • Shows integration patterns for major UiPath platform services
  • Demonstrates production-quality error handling and fallbacks
  • Provides a real business use case with measurable outcomes
  • Includes complete documentation and setup instructions
  • Uses current December 2025 SDK best practices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant