Skip to content

Add AI-powered voice commands and billing intelligence to RCM dashboard#142

Open
Rumblingb wants to merge 1 commit into
mainfrom
claude/agentpay-ace-strategy-ura0q
Open

Add AI-powered voice commands and billing intelligence to RCM dashboard#142
Rumblingb wants to merge 1 commit into
mainfrom
claude/agentpay-ace-strategy-ura0q

Conversation

@Rumblingb
Copy link
Copy Markdown
Owner

Summary

This PR adds AI-powered voice command capabilities and real-time billing intelligence panels to the RCM manager dashboard. Users can now interact with the system via voice, generate appeal letters, and view revenue pipeline and payer performance analytics powered by Claude AI.

Key Changes

Voice Command Interface

  • Redesigned VoiceFAB component to use Claude Haiku for natural language understanding instead of simple keyword matching
  • Implemented two-phase voice intent processing: intent recognition with optional confirmation, then action execution
  • Added support for voice commands like "approve this", "escalate", and "pause claim-status automation"
  • Voice responses now include AI-generated narration with context-aware feedback

AI-Powered Features

  • Daily Briefing Panel: Generates a 3–5 sentence AI summary of today's billing priorities using Claude
  • Appeal Letter Generation: Creates professional insurance appeal letters from denied claims using Claude Sonnet
  • Automation Health Dashboard: Surfaces confidence tuner outcomes and generates recommendations for automation accuracy
  • Revenue Pipeline Visualization: Funnel chart showing work items across billing stages (submitted → recovered) with denial and recovery rates
  • Payer Intelligence Panel: Per-payer analytics including denial rates, auto-close percentages, and amount at risk

Backend API Routes

  • GET /api/rcm/revenue-pipeline: Maps work item statuses to billing pipeline stages with summary metrics
  • GET /api/rcm/payer-intelligence: Per-payer performance analytics (denial rate, auto-close %, amount at risk)
  • GET /api/rcm/automation-health: Lane-level accuracy metrics and AI-generated recommendations
  • GET /api/rcm/daily-briefing: AI-generated morning briefing with context from critical items and exceptions
  • POST /api/rcm/generate-appeal: Generates draft appeal letters for denied claims
  • POST /api/rcm/voice-intent: Two-phase voice command processor with action confirmation

Dashboard Routes

  • Added Next.js API route wrappers for all new RCM endpoints to handle session authentication and proxying

UI Enhancements

  • Added "Appeal" button to denial exceptions in the exception card component
  • New tab types: 'pipeline' and 'intel' for future dashboard navigation
  • Enhanced voice FAB with processing state, confirmation dialogs, and improved visual feedback
  • Added new Lucide icons: ArrowRight, BarChart2, FileText, Sparkles, TrendingUp, X

Implementation Details

  • Claude API calls use Haiku for speed (briefings, voice intent) and Sonnet for complex reasoning (appeal letters)
  • All AI features gracefully degrade if ANTHROPIC_API_KEY is not configured
  • Voice intent actions are executed via existing RCM work item update routes
  • Revenue pipeline and payer intelligence queries use 30-day rolling windows with configurable date ranges
  • Daily briefing is cached for 15 minutes via response headers

https://claude.ai/code/session_01UtW9JoQ46YBSU4HqPeiYPx

Adds a full voice-first RCM command interface and six new intelligence
panels to the billing dashboard:

Backend (api-edge/rcm.ts):
- POST /voice-intent: Claude Haiku billing AI — Phase 1 narration + Phase 2 action execution (approve_qa, escalate, pause_lane)
- GET /daily-briefing: Haiku-generated 15-min cached situational briefing
- GET /revenue-pipeline: Claim funnel from submitted → recovered with denial/recovery rates
- GET /payer-intelligence: Per-payer denial rate, auto-close %, amount at risk
- GET /automation-health: Lane accuracy, false-positive stats, Haiku recommendation
- POST /generate-appeal: Claude Sonnet drafts formal appeal letters from denial metadata

Dashboard proxies (6 new Next.js API routes):
- All authenticate via session cookie, forward to api-edge with Bearer token

RcmManagerClient.tsx:
- DailyBriefingPanel: Haiku briefing shown below digest strip, 15-min stale time
- RevenuePipelinePanel: Bar chart funnel with $ at each stage + summary stats
- PayerIntelligencePanel: Color-coded table showing denial rate and auto-close % per payer
- AutomationHealthCard: Dismissible recommendation card with 7-day accuracy stats
- AppealModal: One-click Sonnet-generated appeal letters for denial exceptions, copy to clipboard
- VoiceFAB upgraded: keyword matching replaced with real AI voice-intent API calls, confirm flow for destructive actions
- ExceptionCard: Appeal button on denial exceptions (triggers AppealModal)
- TABS extended: Pipeline + Payer intel tabs added alongside existing claims/eligibility/connectors

https://claude.ai/code/session_01UtW9JoQ46YBSU4HqPeiYPx
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agentpay-dashboard Error Error Apr 10, 2026 4:02am
agentpay-docs Ready Ready Preview, Comment Apr 10, 2026 4:02am

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.

2 participants