The Appointment Scheduling Functions & Customizing the Appointment Scheduling Prompt
This page explains the appointment scheduling functions that we provide to the AI agents and also gives some tips on customizing the appointment scheduling prompt.
Video
Try Our Appointment Scheduling Prompt Helper
If you still have questions after reading this article and and watching the video above you can try this experimental Appointment Scheduling Prompt Helper we have created.
Intro
Appointment scheduling in Stammer is entirely driven by the prompts you write for your chatbot. This tutorial will walk you through the process of customizing the appointment scheduling prompt to fit your specific requirements.
Example Appointment Scheduling Prompt
However, occasionally users do want to modify or customize their appointment scheduling prompt.
Note on the "Appointment Scheduling Base System Prompt"
In Stammer, there is an "Appointment Scheduling Base System Prompt" that gets appended to the main base system prompt. This separation allows for clearer organization, but you can choose to merge the appointment scheduling prompt into your main base system prompt if desired.
Customizing the Appointment Scheduling Prompt
If you do want to customize the appointment scheduling prompt, you will need to know about the two appointment scheduling functions we provide to the AI so that it knows how to call our code and get the function scheduled.
The get_available_times function
The get_available_times function takes in a valid IANA timezone string and returns the a list of time ranges that the user whose calendar is connected to the agent is available.
Example Output of the function
The schedule_appointment function
This is the actual function that schedules the appointment on the calendar of the user who is connected to the AI Agent.
It takes in two parameters:
The email of the person chatting with the agent who wants to schedule the appointment
The desired time to schedule the appointment in RFC 3339 format.
Example Output of the function
Last updated