https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i user dynamic variables on handoff message in...
# ❓・ai-evy-support
n
@AI Evy can i user dynamic variables on handoff message in warm transfer?
a
Thanks for tagging me @Nicolas. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can use dynamic variables in warm transfer configurations. Dynamic variables work in the following warm transfer settings: - Transfer number (the destination phone number) [(1) ]() , [(2) ]() , [(3) ]() - Whisper message (private message to the transfer target) [(4) ]() - Three-way message (message heard by both caller and transfer target) The warm transfer feature supports whisper and three-way messages that can include dynamic context from the call. [(5) ]() , [(4) ]() To use a dynamic variable, use the
{{variable_name}}
syntax in your message fields. [(1) ]()
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) [[3] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[4] Major Platform Upgrades: Knowledge base, warm transfer, Voice & Analytics](https://www.retellai.com/changelog/major-platform-upgrades-knowledge-base-warm-transfer-voice-analytics) [[5] Warm Transfer vs Cold Transfer - The AI Advantage in Call Centers | Retell AI](https://www.retellai.com/blog/effortless-handoffs-with-retell-ais-warm-transfer-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy on the whysper message the agent must give a number, but needs to be slowly, how can i add a prompt for that ?
a
Thanks for the follow-up, @Nicolas. I'll get back to you soon.
### Answer I don't have specific documentation on how to control the pacing or speed of speech within the whisper message itself. The warm transfer whisper message configuration allows you to brief the live agent before connecting the caller, but there isn't a documented prompt field specifically for controlling how the whisper content is delivered. [(1) ]() Possible workarounds you could try: 1. Format the number with pauses in the text — You could try adding punctuation or spacing in your whisper message to encourage slower delivery, such as: -
"The caller's number is: 5. 5. 5. 1. 2. 3. 4. 5. 6. 7."
- Or with commas:
"The number is 555, 123, 4567"
2. Use speech normalization — In global settings, you can enable speech normalization which converts numbers into plain words, which may help with clearer pronunciation. [(2) ]() However, there's no explicit setting in the documentation for adding a dedicated prompt to control the pacing of the whisper message delivery. For more specific guidance on this use case, I recommend: - Visit [Documentation]() - Visit [Hire certified Retell partner]() Would you like me to try providing a general answer based on broader voice AI knowledge?
​ To learn more, see the sources I considered: [[1] Warm Transfer vs Cold Transfer - The AI Advantage in Call Centers | Retell AI](https://www.retellai.com/blog/effortless-handoffs-with-retell-ais-warm-transfer-feature) [[2] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy but the number is a dynamic variable, how to do that?
a
Thanks for the follow-up, @Nicolas. I'll get back to you soon.
### Answer --- If your phone number is stored in a dynamic variable (e.g.,
{{caller_phone}}
) , you can format it with pauses directly in your whisper message text by combining the variable with punctuation or spacing. Since dynamic variables are evaluated at runtime, you would need to either: 1. Pre-format the number before passing it — When you set the dynamic variable via the Create Phone Call API or Inbound Webhook, format the number with periods or commas already included (e.g.,
"5. 5. 5. 1. 2. 3. 4. 5. 6. 7."
instead of
"5551234567"
) . [(1) ]() 2. Use a custom function — Create a custom function that takes the raw number and returns a formatted version with pauses, then store the result in a new dynamic variable that you reference in the whisper message. Unfortunately, there's no built-in way to automatically add pauses to a dynamic variable's output within the whisper message field itself. The formatting must happen before the variable is passed to the agent. For the whisper message, you would then use something like:
Copy code
The caller's number is: {{formatted_phone_number}}
, [(2) ]() Where
{{formatted_phone_number}}
contains the pre-formatted value with pauses.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Warm Transfer vs Cold Transfer - The AI Advantage in Call Centers | Retell AI](https://www.retellai.com/blog/effortless-handoffs-with-retell-ais-warm-transfer-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.