K Rudy
01/16/2026, 4:33 PMAI Evy
01/16/2026, 4:33 PMAI Evy
01/16/2026, 4:33 PMretell_llm_dynamic_variables when creating an outbound call or via the inbound webhook response. [(1) ]()
For example, when creating a phone call:
javascript
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
retell_llm_dynamic_variables: { "current_time": "2026-01-16T10:30:00" }
}) ;
Then reference {{current_time}} in your agent's prompt.
For inbound calls, you can set dynamic variables in a webhook response to the inbound webhook assigned to the phone number. [(2) ]()
Note: The sources don't document a built-in mechanism for the agent to automatically fetch the current time mid-call. If you need real-time updates during the call, you could use a custom function that returns the current time when called—the response payload would then be available in the LLM's context.
Check out these potentially useful sources for more on dynamic variables and custom functions:
- [Create Voice Agent]()
- [Retell AI Webhooks]()
Would you like a general answer on implementing a custom function for real-time data?AI Evy
01/16/2026, 4:33 PMAI Evy
01/16/2026, 4:33 PM