https://retellai.com/?utm_source=discord&utm_medium=seo logo
Retell AI Date Parsing Bug - Need Urgent Help!
# ❓・bug-report
u
My Retell AI voice agent fails to capture user date phrases like "next Friday" or "13th of February" from speech. Instead of passing the exact words (eg, {"date_text": "next Friday"}) to my resolve_datetool, it sends literal placeholders like {{date_text}}or {{date}}. The tool then defaults to "tomorrow," breaking the entire flow for Google Calendar bookings and event lookups. Key Test Proof: API endpoint directly: Works perfectly! Fetches correct events with proper date. Agent calls it: Always defaults to "tomorrow" because of the placeholder issue. What I've Tried (All Failed): Used both {{date}}and {{date_text}}in tool config System prompt: "Extract user's exact date phrase and pass as date_textparameter - no placeholders!" Few-shot examples:User: "Book next Friday" → resolve_date(date_text="next Friday") Tool schema: Simple {"date_text": "string"}without template syntax Retell sim mode tests with phrases like "February 20th" or "13th of this month" JSON mode enabled, timezone set to Lagos,NG Debug logs confirm: date_text: "{{date_text}}"or {{date}}literally, not substituted The Flow Should Be: User says: "Check events on next Friday" or "Book for 13th of February" AI calls: resolve_date(date_text="next Friday")→ returns YYYY-MM-DD Then calls Google Calendar API with resolved date @Omar Ashraf | Community Lead @Alvin_AI @Colin - Integrations @ Retell AI @SANAVA https://cdn.discordapp.com/attachments/1470974663592120502/1470974664997077233/IMG-20260211-WA0000.jpg?ex=698d3f69&is=698bede9&hm=e639f863d95d5015a2d38fb155ce8c5d0c9836e5456e104fe82f089e347785c7&
s
Hi @27th_Supreme
Remove {{date_text}}from Query Parameters to empty or use a proper description
Or if you want the LLM to directly resolve the query parameter, the value field should contain a description of what to extract, not a placeholder in parentheses.
u
The value fields? For example callers says 20th of February, I should put a description of 20th of February in the field?
s
Yeah it can be done like that or you leave that empty
u
Okay thanks I will try that and get back to you 🙏
Doesn't work
s
@27th_Supreme can you provide agent id so I can send to team to look
Ok send this to team
Previously when it was this, it would usually default to tomorrow
s
Ok
When I left the parameter blank the agent said she couldn't reach the calendar multiple times
agent_3e9ea0a3abe5f1bc34d470583e
This is the agent id
Please if you need anything more let me know
s
I have reported your issue if there will be anything I will let you know
u
Ok thanks 🙏
s
Also mentioned in the global prompt. E.g. "After user provided a date, invoke tool extract_date' to covert it to ... format" You can test and adjust the prompt to get best output. Hope this would help!