Onco Healthcare Patient Scheduling Agent

Introduction

Managing healthcare appointments efficiently remains a major challenge for many healthcare systems. Patients often struggle to find the right specialist, check doctor availability, and schedule appointments smoothly.

To address this problem, we developed the Onco Healthcare Patient Scheduling Agent, an AI-powered conversational healthcare assistant built on Salesforce. The system helps users book, modify, and cancel appointments through a simple chat-based interface.

The assistant also includes a knowledge-based support system capable of understanding patient symptoms and suggesting the appropriate medical specialty before the appointment process begins. This improves accessibility and helps users navigate healthcare services more effectively.

The project integrates Salesforce technologies such as Agentforce, Apex, Flows, Experience Cloud, and Knowledge Articles to create an intelligent and interactive healthcare scheduling solution with slot-based appointment management.

Healthcare Patient

Figure 1: AI-Powered Healthcare Conversational Assistant

Project Overview

The Onco Healthcare Patient Scheduling Agent is an intelligent conversational system designed to simplify healthcare appointment management through an interactive chat interface. The assistant enables patients to book, modify, and cancel appointments using natural language conversation.

Users can search hospitals by city, discover doctors by specialty, and schedule appointments using available time slots. The system also verifies slot availability during booking to prevent scheduling conflicts.

In addition to appointment management, the project includes a knowledge-based healthcare support system capable of understanding patient symptoms and recommending appropriate medical specialties.

The complete solution was developed using Salesforce technologies including Agentforce, Apex, Flows, Experience Cloud, and Knowledge Articles.

Healthcare Patient Agent

System Architecture

The project was developed on the Salesforce platform using AI-driven conversational capabilities and workflow automation services to create an intelligent healthcare appointment management system.

The conversational assistant was implemented using Agentforce, where custom instructions and actions manage appointment booking, modification, and cancellation workflows. Apex classes were used for backend operations such as appointment processing and slot availability management.

Salesforce Flows were integrated to automate patient-related processes and appointment reminders, while Salesforce Knowledge Articles were used to handle healthcare-related queries and symptom-based specialty recommendations.

The frontend interface was developed using Experience Cloud, where the chatbot was embedded into a healthcare portal to provide an interactive and user-friendly patient experience.

Onco System Architecture

Figure 2: High-Level Architecture of the Onco Healthcare Patient Scheduling System

Core Features

The Onco Healthcare Patient Scheduling Agent includes multiple intelligent features designed to simplify healthcare appointment management through conversational AI. The system supports appointment booking, modification, and cancellation through a guided chat-based workflow. Patients can search hospitals by city, select doctors by specialty, and book appointments using dynamically generated available time slots.

The assistant also includes symptom-based specialty recommendations and knowledge-based healthcare support using Salesforce Knowledge Articles, enabling users to receive basic healthcare guidance before scheduling appointments.

Additionally, Flow automation was integrated to support appointment reminders and improve overall patient communication.

Appointment Scheduling Workflow

The appointment scheduling process was designed as a structured conversational workflow to ensure smooth and accurate appointment management. The assistant guides users step-by-step through the complete booking process while validating required information at each stage.

The workflow begins with patient identification, where the system verifies or creates patient records using basic information such as name and email. The assistant then helps users select a city, choose a hospital, identify the required medical specialty, and select an appropriate doctor.

After doctor selection, the system retrieves available appointment slots for the selected date using a custom Apex-based slot availability mechanism. The user can then select a preferred slot, and the appointment is booked after validating availability.

The workflow also supports appointment modification and cancellation, allowing users to manage their appointments directly through the conversational interface.

Appointment Scheduling Workflow

Figure 3: AI-Driven Appointment Scheduling Workflow

Knowledge-Based Healthcare Assistance

To improve patient experience, the project includes a knowledge-based healthcare assistance system capable of handling unstructured healthcare conversations. Salesforce Knowledge Articles were integrated to answer healthcare-related queries and provide basic medical guidance during conversations.

The assistant can also analyze patient symptoms and recommend the appropriate medical specialty before initiating the appointment scheduling process. This creates a more intelligent and user-friendly healthcare interaction experience.

Slot-Based Scheduling System

A custom slot-based scheduling mechanism was implemented to manage doctor appointment availability and prevent duplicate bookings. The scheduling logic was developed using Apex classes integrated with the conversational assistant. After a patient selects a doctor and appointment date, the system dynamically generates available 30-minute appointment slots by filtering already booked appointments. Only available slots are displayed to the user in a conversational format.

The same slot validation mechanism was also integrated into appointment modification workflows to ensure consistent and conflict-free scheduling.

Slot-Based Scheduling System

Figure 4: Dynamic Appointment Slot Management Process

Challenges and Solutions

During the development of the project, several technical challenges were encountered, including managing appointment slot availability and maintaining accurate conversational workflows for booking, modification, and cancellation operations.

Custom Apex logic was implemented to prevent duplicate bookings and dynamically generate available time slots, while detailed agent instructions were designed to ensure smooth step-by-step conversational interactions. Salesforce Knowledge Articles were also integrated to support symptom-based healthcare assistance and specialty recommendations.

Future Enhancements

Pro is available starting at $100 per user per month, and an annual contract is required. That includes 2,000 emails per month in Pro. Plus, you can add on more as needed with the Marketing Email Sends Bundle for an additional 1,000 email sends for $10 per month.

The current system provides a strong foundation for intelligent healthcare appointment management, but several enhancements can further improve its capabilities and scalability. Future improvements may include integration with real-time doctor calendars and Salesforce Scheduler to support advanced appointment management and dynamic availability handling. AI-based patient triage and multilingual conversational support can also be implemented to improve accessibility for a wider range of users.

The system can additionally be extended with production-level WhatsApp integration, voice-based interaction, and personalized healthcare recommendations to create a more advanced digital healthcare experience.

Conclusion

The Onco Healthcare Patient Scheduling Agent demonstrates how conversational AI and workflow automation can be integrated to improve healthcare appointment management. By combining Salesforce technologies such as Agentforce, Apex, Flows, Experience Cloud, and Knowledge Articles, the project delivers an intelligent and interactive healthcare support system.

The solution simplifies appointment booking, modification, and cancellation while also assisting users through symptom-based specialty recommendations and knowledge-based healthcare support. Overall, the project highlights the potential of AI-powered conversational systems in improving healthcare accessibility and patient experience.

To explore the full ecosystem of AI-powered agents, implementation strategies, and industry use cases, visit our comprehensive Agentforce page.

For any queries please reach out to support@astreait.com