Scheduling Service — AI Integration
Status: populated Owner: TBD Last updated: 2026-04-17 Companion: Service Template
1. Current AI Usage
Scheduling has no current AI integration. All booking, conflict detection, and waitlist management is deterministic rule-based logic.
2. Planned / Future AI Integration (Tier B — advisory only)
| Potential Use | Prompt Template | Invocation Path | HITL | Notes |
|---|---|---|---|---|
| Appointment slot recommendation | scheduling.slot-recommend.v1 | Kong /v1/ai/* → ai-gateway-service | Yes — staff accepts/rejects suggestion | Future roadmap (FR-SCHED-ENH-001); not in current scope |
| No-show risk prediction hint | scheduling.noshow-risk.v1 | Kong /v1/ai/* → ai-gateway-service | Yes — hint only; no auto-cancel | Future roadmap; requires historical data |
3. Hard Constraints
| Constraint | Rule |
|---|---|
| No auto-booking by AI | AI may suggest slots; staff must confirm booking action |
| No direct LLM SDK calls | All AI calls route through ai-gateway-service via Kong /v1/ai/* |
tenantId from JWT only | AI calls include tenantId from JWT; never from body |
| No PHI in prompt payloads | Slot availability and appointment type only; no patient demographics in prompt |