https://retellai.com/?utm_source=discord&utm_medium=seo logo
my agent keeps returning wrong year and month in P...
# ❓・ai-evy-support
z
@AI Evy my agent keeps returning wrong year and month in Post-call analysis despite the fact that current datetime is in prompt, I need to fix it somehow
a
Thanks for tagging me @zm14kalibr. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation and community discussions, this appears to be a known issue with date handling in Retell AI agents. From the Discord community, there have been similar reports of agents providing incorrect dates, sometimes off by several months [(1) ]() [(2) ]() . For post-call analysis, you can configure the analysis model using the
post_call_analysis_model
parameter when creating or updating your agent [(3) ]() [(4) ]() . The available models include
gpt-4o
,
gpt-4o-mini
, and several other options [(3) ]() . Post-call analysis results are typically available within seconds of the call ending [(5) ]() . The post-call analysis feature automatically analyzes customer conversations after they have ended and can extract various types of data including Boolean, Text, Number, and Selector categories [(6) ]() . However, the documentation doesn't provide specific guidance on resolving date accuracy issues in the analysis output. Based on community feedback, one suggestion was to use
{{current_time}}
instead of other date variables in prompts [(2) ]() , though this relates more to agent conversation behavior than post-call analysis specifically. Since the official documentation doesn't address this specific date accuracy issue in post-call analysis, I'd recommend: Visit [Contact Sales]() or [
etellAI/) for direct support with this date handling issue. Would you like a general answer based on my knowledge instead?
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] SOLVED: Agent gets today's date incorrect (off by 3 months).](https://discord.com/channels/1186424376300679209/1364889572433203220) [[2] Agent fails giving the current date](https://discord.com/channels/1186424376300679209/1342239628073107566) [[3] Update Agent](https://docs.retellai.com/api-references/update-agent) [[4] Create Agent](https://docs.retellai.com/api-references/create-agent) [[5] Unlock Insights with Post-Call Analysis | Retell AI](https://www.retellai.com/features/post-call-analysis) [[6] Post Call Analysis Overview](https://docs.retellai.com/features/post-call-analysis-overview) ​
a
@AI Evy it's still showing the wrong year
a
Thanks for the follow-up, @alisaochka. I'll get back to you soon.
### Answer Based on the available documentation, you can configure the post-call analysis model when creating or updating your agent [(1) ]() [(2) ]() . The available models include
gpt-4o
,
gpt-4o-mini
,
gpt-4.1
,
gpt-4.1-mini
,
gpt-4.1-nano
,
gpt-5
,
gpt-5-mini
,
gpt-5-nano
,
claude-4.0-sonnet
,
claude-3.7-sonnet
,
claude-3.5-haiku
,
gemini-2.0-flash
,
gemini-2.0-flash-lite
,
gemini-2.5-flash
,
gemini-2.5-flash-lite
[(1) ]() . You can set this using the
post_call_analysis_model
parameter :
Copy code
javascript
const agentResponse = await client.agent.create({
  response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
  voice_id: '11labs-Adrian',
  post_call_analysis_model: "gpt-4o"
}) ;
However, the documentation doesn't provide specific guidance on resolving date accuracy issues in post-call analysis. Since this appears to be a persistent issue affecting the accuracy of your analysis results, I'd recommend: Visit [Contact Sales]() or [) for direct support with this date handling issue. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.