Skip to content

About

Built Appointment Rescue agentic application for the Call-E Hackathon on Devpost

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appointment Rescue — Autonomous Appointment Recovery Agent

Don't remind. Rescue. An autonomous AI agent that turns unconfirmed appointments into confirmed, rescheduled, or intelligently escalated outcomes using CALL-E phone calls.

Built for the CALL-E: Your Code Is Calling Hackathon.


🚀 Problem & Opportunity

  • The Problem: Missed or unconfirmed appointments cost healthcare clinics and appointment-based businesses thousands of dollars in lost revenue, wasted staff time, and idle schedule slots.
  • The Limitations of Reminders: SMS and email reminders notify customers but rarely resolve conflicts or reschedule unconfirmed slots.
  • Why Phone Calls?: Customers respond to real-world phone calls, and negotiating rescheduling options requires fluid conversational intelligence.

🌟 Solution

Appointment Rescue automatically detects unconfirmed appointments, initiates real outbound phone calls using CALL-E, negotiates available alternative schedule slots with the customer, records cancellation reasons, and safely escalates complex cases to human staff.

┌─────────────────────────┐       ┌────────────────────────┐       ┌────────────────────────┐
│  At-Risk Appointment   │  ───> │  CALL-E Phone Agent   │  ───> │   Rescued Workflow     │
│  (10:00 AM Unconfirmed) │       │ (Calls Customer Phone) │       │ (Rescheduled to 2 PM)  │
└─────────────────────────┘       └────────────────────────┘       └────────────────────────┘

🏗️ Architecture

+-----------------------------------------------------------------------------------+
|                               APPOINTMENT RESCUE                                  |
+-----------------------------------------------------------------------------------+
|                                                                                   |
|   ┌────────────────────────────────┐        ┌─────────────────────────────────┐   |
|   │     React + Vite Frontend      │        │     Node.js + Express API       │   |
|   │                                │  <==>  │                                 │   |
|   │ - KPI Cards & Revenue Impact   │  REST  │ - Appointment Store (SQLite)    │   |
|   │ - AI Rescue Queue              │        │ - Deterministic Slot Matcher    │   |
|   │ - Live Call Activity Timeline  │        │ - Audit Trail Event Logger      │   |
|   │ - Human Escalation Panel       │        │ - CALL-E SDK Integration        │   |
|   └────────────────────────────────┘        └─────────────────────────────────┘   |
|                                                             │                     |
|                                                             ▼                     |
|                                             ┌─────────────────────────────────┐   |
|                                             │       CALL-E Developer API      │   |
|                                             │     (@call-e/calle Server)      │   |
|                                             │                                 │   |
|                                             │ - Real Outbound Phone Calls     │   |
|                                             │ - Structured Result Extraction  │   |
|                                             └─────────────────────────────────┘   |
|                                                             │                     |
|                                                             ▼                     |
|                                             ┌─────────────────────────────────┐   |
|                                             │   Customer Phone Recipient      │   |
|                                             └─────────────────────────────────┘   |
+-----------------------------------------------------------------------------------+

✨ Features

  • At-Risk Appointment Detection: Real-time identification of unconfirmed appointments and potential revenue at risk.
  • Autonomous CALL-E Phone Calls: Real-world voice outreach to confirm or reschedule appointments.
  • Intelligent Rescheduling: Offers available alternative slots dynamically during the call.
  • Safe Human Escalation: Automatically flags cases requiring medical staff review (e.g. customer asking doctor questions).
  • Dual Execution Modes:
    • Live Calls Mode: Executes real CALL-E phone calls using @call-e/calle.
    • Demo Mode: Simulates realistic multi-step transcripts and latency for 5 hackathon scenarios (Confirm, Reschedule, Human Review, Cancel, No Answer).
  • Audit Trail: Detailed event history for every appointment.
  • Rescue Impact Analytics: Visual comparison of revenue retained with vs without Appointment Rescue.

🛠️ Technology Stack

  • Frontend: React 18, TypeScript, Vite, Tailwind CSS, Lucide Icons
  • Backend: Node.js, Express, TypeScript, SQLite
  • Voice AI: @call-e/calle SDK & @call-e/cli
  • Telemetry & Attribution: CALLE_SOURCE=skills_sh, CALLE_INTEGRATION=skills_sh_skill

📦 Quickstart & Installation

1. Clone repository & install dependencies

# Clone the repository
git clone https://github.com/CALLE-AI/call-e-integrations.git
cd appointment-rescue

# Install backend dependencies
cd backend
npm install

# Install frontend dependencies
cd ../frontend
npm install

2. Configure Environment Variables

Create .env inside backend/:

CALLE_API_KEY=sk_test_your_calle_key_here
PORT=3001
LIVE_CALLS_ENABLED=false
DEMO_AUTHORIZED_PHONE=+15550192834

3. Run Development Server

# Start backend (Port 3001)
cd backend
npm run dev

# Start frontend (Port 3000)
cd frontend
npm run dev

Open http://localhost:3000 in your browser.


🎯 Demo Guide for Hackathon Judges

  1. Demo Mode (Default):

    • Toggle is set to Demo Mode.
    • Select a scenario from the dropdown:
      • ✓ Confirm: Customer confirms original 10:00 AM slot.
      • ↻ Reschedule: Customer changes 10:00 AM slot to 2:00 PM.
      • ⚠ Human Review: Customer requests doctor callback; flagged safely for human staff.
      • ✗ Cancel: Customer relocated out of town.
      • ⚡ No Answer: System logs attempt and schedules retry.
    • Click Call Now on any appointment card or Rescue Appointments to watch the live call activity stream and structured JSON result extraction.
  2. Live Calls Mode:

    • Toggle LIVE CALLS: ON.
    • Click Call Now to initiate a real outbound phone call via CALL-E to an authorized test phone number.

🛡️ Guardrails & Safety

  • The agent never provides medical advice or diagnoses.
  • The agent never invents schedule availability outside supplied alternative slots.
  • The agent explicitly escalates complex customer requests to human staff.
  • All API keys remain strictly server-side.

🤝 Hackathon Pull Request

Submitted to CALLE-AI/awesome-phone-call-agents.

About

Built Appointment Rescue agentic application for the Call-E Hackathon on Devpost

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages