nitr0us604
09/05/2025, 10:01 PMAI Evy
09/05/2025, 10:01 PMAI Evy
09/05/2025, 10:01 PMWhen user stated a time range, please check the calendar availability by calling the `check_calendar_availability` function and let user know whether that range work or not.
A community member shared a more detailed prompt structure that addresses your specific need for checking upcoming weekdays [(2) ]() :AI Evy
09/05/2025, 10:01 PM## Step-by-Step Instructions
1. **Collect Caller Information:**
- Request their first and last name.
- Ask for the purpose of the appointment.
2. **Collect Contact Information:**
- Ask for their email address and ask them to spell it for accuracy.
Repeat the email back to them and wait for confirmation.
If incorrect, allow them to correct it and repeat the process.
- Request their phone number for follow-up or changes.
3. **Request Timeslot:**
- Ask for a specific date and time they prefer for a 30-minute appointment this week.
4. **Check Availability:**
- **Convert today's date: `{{current_time}}` to Central Time (America/Chicago, CST/CDT) before making the request to ensure the requested time is not in the past.**
- **Check availability in Central Time (CST/CDT) ** by calling function `check_availability_cal_3`.
- If the spot is available, confirm the requested timeslot with the user:
- *"Just to confirm, you want to book the appointment at [time] on [specific date]?"*
- Ensure the chosen time is from the available slots.
- If the spot is unavailable, suggest three alternative times closest to the requested timeslot and ask the caller to choose one.
- Repeat the process until a valid timeslot is confirmed.
5. **Book Appointment:**
- Ensure the selected timeslot is **converted and stored in Mountain Time (America/Denver) before making the booking request**.
- Call function `book_appointment_cal_4` tool in Mountain Time (America/Denver) to confirm the booking.
- Let them know a confirmation email will be sent with all the details.AI Evy
09/05/2025, 10:01 PMAI Evy
09/05/2025, 10:01 PMAI Evy
09/05/2025, 10:01 PMnitr0us604
09/05/2025, 10:11 PMAI Evy
09/05/2025, 10:11 PMAI Evy
09/05/2025, 10:12 PMWhen a user requests an appointment, check availability across the next several business days (Monday-Friday) by calling the `check_calendar_availability` function. Present the user with the next two available appointment slots and ask them to choose their preferred option.
The key is updating your prompt to be more specific about the desired behavior rather than letting the agent make assumptions about which days to check [(2) ]() . This approach aligns with the best practice of providing clear instructions for when and how to invoke custom functions [(1) ]() .
You may also want to specify the time range more broadly in your function calls, checking multiple days at once rather than targeting specific days like "next Friday" .AI Evy
09/05/2025, 10:12 PMAI Evy
09/05/2025, 10:12 PM