AI Evy
04/02/2026, 3:34 PMAI Evy
04/02/2026, 3:34 PM## Get Alternative Date
Reference: {{current_calendar}}
Previous date checked: {{booking_date}}
Expiration deadline: {{expirationDate}}
Ask: "What specific day or date before {{expirationDate}} works for you?"
Get their response, convert to date using {{current_calendar}}
Confirm: "So [Month] [Date]?"
Store to {{booking_date}} in YYYY-MM-DD format
Rules:
- Skip {{booking_date}} (already checked)
- Only accept dates before {{expirationDate}}
- If date is after {{expirationDate}}, say: "That date is after the {{expirationDate}} deadline. Please choose an earlier date."
- If date equals {{booking_date}}, say: "We already checked that date. What other date works?"
[(1) ]()
Key improvements based on Retell AI's prompt engineering guidelines [(2) ]() :
- Used explicit dynamic variable syntax with {{expirationDate}} for consistency [(1) ]()
- Added clear validation rules for edge cases
- Structured the prompt in sections for better LLM comprehension [(2) ]()
- Made the ask more specific: "What specific day or date before {{expirationDate}} works for you?"
- Added explicit error handling for invalid date selections
The {{current_calendar}} system variable provides a 14-day calendar reference [(1) ]() , which helps the agent convert natural language dates to YYYY-MM-DD format accurately.AI Evy
04/02/2026, 3:34 PMAI Evy
04/02/2026, 3:35 PM