How an AI voice agent books an appointment

The agent should only offer times the calendar says are open. If the booking system does not confirm the time, the caller should not hear that the appointment is reserved.