ozeron1348
10/27/2025, 4:37 PMAI Evy
10/27/2025, 4:37 PMAI Evy
10/27/2025, 4:37 PMretell_llm_dynamic_variables via webhook at call start, those variables are associated with the initial agent. [(1) ]() [(3) ]() When you perform an agent transfer/swap, the new agent doesn't automatically inherit these variables. [(2) ]()
Solution:
You need to use the Update Call API to override or add dynamic variables during the call, including after agent transfers.
Use the override_dynamic_variables parameter in the Update Call API:
json
{
"override_dynamic_variables": {
"api_token": "your_token_value"
}
}AI Evy
10/27/2025, 4:37 PMoverride_dynamic_variables allows you to override or add dynamic variables during an active call
- Setting this will override or add the dynamic variables set in the agent during the call
- You only need to set the delta where you want to override, not the entire dynamic variables object
- All dynamic variable values must be strings [(1) ]() [(4) ]()
Implementation Approach:
1. When your agent transfer tool is called, also trigger an Update Call API request
2. Pass the necessary dynamic variables (like your API token) in the override_dynamic_variables field
3. This ensures the transferred agent has access to the required variables
This should resolve your issue with tool calls not having access to the API token after agent transfer.
**AI Evy
10/27/2025, 4:37 PMAI Evy
10/27/2025, 4:37 PM