https://retellai.com/?utm_source=discord&utm_medium=seo logo
Callback Date Issue in Post Call Analysis
# ❓・bug-report
f
I'm running into an issue with the Post Call Analysis where the callback date is being set incorrectly. When the agent asks the customer for a callback time and the customer responds with "tomorrow," the agent correctly confirms the call will be scheduled for March 15, 2025 (if today is March 14, 2025). However, in the Post Call Analysis, the variable that sets the callback time records it as March 15, 2023, instead of the current year. Could someone clarify: Is the variable {{current_time}} included in the context of Post Call Analysis? How can I ensure the correct year is assigned when extracting the callback date? Any guidance would be greatly appreciated! Thanks!
s
Hi @felipe_dapta It looks like the Post Call Analysis may not be referencing the correct year when interpreting relative dates like 'tomorrow.' Ensure that the {{current_time}} variable is properly included in the analysis context and explicitly passed when extracting the callback date. You could also try parsing the callback time using a custom script to enforce the current year.
f
Thanks @shahretell