An AI-based system that helps manage healthcare appointments using different agents for tasks like booking, cancelling, and answering questions.
**Multi-Agent System for Healthcare Appointment Booking**
---
A modular, extensible framework for managing healthcare appointment workflows using multiple AI agents, including:
- **Router Agent**: Directs user requests to specialized services (new bookings, cancellations, general inquiries).
- **RAG Agent**: Provides question-answering capabilities by retrieving context from PDF documents.
- **Tool Nodes**: Interfaces for booking, cancellation, doctor search, and availability checks.
- **Audio Output**: Converts AI responses to speech via ElevenLabs.
---
## State Transitions
This GIF illustrates how the router inspects message history and transitions between nodes:

---
## Features
1. **Custom Router**
- Implements routing logic from scratch.
- Routes user queries to appropriate agent nodes based on intent.
- **Router Implementation**: Built with LangGraph’s command functions, it inspects the full message history at each turn to decide the next node (e.g., booking, cancellation, RAG or audio) and dynamically dispatches the conversation to the correct assistant.
- **Router Code**:
```python
def router_model(
state: State
) -> Command[Literal[
"cancel_booking_assistant",
"new_booking_assistant",
"general_hospital_assistant",
"audio_output",
END
]]:
"""Route to correct worker agent. You only route the conversation."""
llm_router = _get_llm().bind_tools([])
llm_router_with_tools = llm_router.bind_tools([
cancel_booking_assistant,
new_booking_assistant,
general_hospital_assistant
])
custom_prompt = {
"role": "system",
"content": (
"You are a routing assistant. Based on the message history, "
"decide Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.
Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.
Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.
Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.
Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.
Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.