https://retellai.com/?utm_source=discord&utm_medium=seo logo
My AI Agent is scheduling appointments for past da...
# ❓・ai-evy-support
d
@AI Evy My AI Agent is scheduling appointments for past dates and times. Please advise, what should I mention in the prompt to avoid this conflict in the retellai platform?
a
Thanks for tagging me @daring_tiger_58367. I'll look through relevant sources and get back to you shortly.
### Answer To prevent your AI Agent on the Retell AI platform from scheduling appointments in the past, you should include a prompt step that validates the input date and time before confirming the appointment. The documentation recommends using conditional prompts to check user input, such as verifying that the selected date is in the future, and offering alternatives if the input is invalid [(1) ]() . For example, your prompt can include logic like: "Please select a date and time for your appointment. (If the date/time provided is in the past, respond: 'That time has already passed. Please provide a future date and time for your appointment.') " This approach ensures that only valid, future times are accepted, and users are guided to choose appropriate slots .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] 5 Useful Prompts for AI Agent Builders | Retell AI](https://www.retellai.com/blog/5-useful-prompts-for-building-ai-voice-agents-on-retell-ai) ​
d
@AI Evy i tried but still issue persist. could you let know the correct format
a
Thanks for the follow-up, @daring_tiger_58367. I'll get back to you soon.
### Answer To prevent your Retell AI agent from scheduling appointments in the past, you should include a step in your prompt that validates the user's input and only accepts future dates. The recommended approach is to use conditional prompts that check if the selected date/time is in the future, and then offer alternatives if not. Here’s an example format you can use in your prompt: "Please provide a date and time for your appointment. (If the provided date/time is in the past, respond: 'That time has already passed. Please provide a future date and time for your appointment.') " Additionally, for multi-step prompts, you can structure it like this: 1. Collect the time and date: "What time works best for you on {{preferred_date}}?" 2. Validate the input and offer alternatives: "Unfortunately, that slot is booked or not valid. Would you like {{alternative_times}}?" Make sure your prompt logic checks the user's input and only proceeds if a valid, future time is given [(1) ]() .
​ To learn more, see the sources I considered: [[1] 5 Useful Prompts for AI Agent Builders | Retell AI](https://www.retellai.com/blog/5-useful-prompts-for-building-ai-voice-agents-on-retell-ai) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.