The user sends a text or voice message through Telegram requesting a doctor’s appointment.
The AI agent receives and interprets the user’s message to identify the doctor’s name, preferred date, and time.
The agent accesses the doctor’s details stored in Google Sheets (or an Excel file).
It checks the doctor’s availability for the requested date and time using the doctor’s schedule ledger or database.
If the doctor is already booked, the agent informs the user and suggests alternative available slots.
If the doctor is available, the agent proceeds to confirm the appointment details with the user.
Once the user confirms, the agent records the appointment details in the Excel sheet (or Google Sheet).
The agent sends a confirmation message to the user through Telegram, summarizing the appointment details (doctor name, date, and time).