Administrative Agent
Agent Description:
The Administrative Agent streamlines the administrative journey by collecting requests via API, validating the intent of the query, and executing the necessary CRUD (Create, Read, Update, Delete) operations on the healthcare database. It concludes by generating a human-readable summary for the patient or staff.
- Purpose: This agent is designed to automate routine healthcare operations
including appointment scheduling, follow-ups, cancellation requests, and
insurance claims verification. It serves as the primary digital interface for
non-clinical patient requests, ensuring that administrative tasks are handled
accurately and updated in real-time within the hospital's database.
The agent improves operational efficiency and data integrity by ensuring:
-
Automated Intake: Standardized collection of patient IDs and request types.
-
Intent Classification: Precise categorization of requests (e.g., Claims vs. Appointments).
-
Direct Database Synchronization: Real-time updates to appointment tables and claim records via SQL.
-
Seamless Response Generation: Converting complex database outputs into clear, actionable instructions.
-
- Components:
-
Patient Request Collector: Retrieves administrative requests via API and normalizes data (ID, request type, time).
-
Request Classification & Validation Agent: Analyzes the intent and ensures all necessary documentation (like claim status) is present before processing.
-
Healthcare Database Agent: The "engine" of the workflow; it queries and updates the SQLite database using a specialized SQL toolkit.
-
Administrative Response Generator: Aggregates data from the database to provide a final confirmation and "next steps" guide to the user.
-
-
API integration for request retrieval (GET API to structured object).
-
Request categorization (New/Follow-up/Cancellation/Claims/Query).
-
SQL Database Toolkit for automated record management.
-
Claims document status validation.
-
Data normalization for patient IDs and timestamps.
-
Automated confirmation reports with follow-up instructions.
-
OPENAI GPT_4O_MINI for the parent agent and all integrated sub-agents.
Note: To learn more about the LLM and to modify its behavior, refer to the Configuring LLM settings section.
Sub-Agents
1. Patient Request Collector
-
Role:Request Intake Agent
-
Scope:Collects and normalizes administrative requests via GET API.
-
Description: Extracts patient_id, request_type, and query. It ensures the data is clean and structured for the validation stage.
2. Request Classification & Validation Agent
-
Role: Validation Agent
-
Scope: Classifies requests and validates workflow requirements.
-
Description: Identifies the specific intent (for example, Claims Inquiry vs. Cancellation) and checks for record completeness. Generates a "Workflow Intent Object."
3. Healthcare Database Agent
-
Role:Data Resolver
-
Scope:Interacts with healthcare database tables (SQL).
-
Description:Uses the SQL Toolkit to retrieve history, insert new appointments, update follow-ups, or pull claim verification details.
4. Administrative Response Generator
-
Role:Response Aggregator
-
Scope:Generates human-readable administrative summaries.
-
Description:Consolidates database results into a final response including action confirmations and patient follow-up instructions.
-
Request - Get Tool- Retrieves the patient administrative dataset from the configured external API.
-
SQL - Toolkit - Executes queries and updates on the patient.sql SQLite database to manage records.
-
Input: The workflow starts by fetching raw request data via the Patient Request Collector.
-
Validation: The Validation Agent categorizes the request. For example, if it's a "Claims Inquiry," it checks if claims_doc_submitted is true.
-
Database Action: The Database Agent uses SQL to either look up existing records or write new data (for example, inserting a "New Appointment" row).
-
Final Output: The Response Generator creates a professional summary, such as: "Your appointment for March 20th is confirmed. Please bring your ID."
- Which appointments should I confirm or update