https://retellai.com/?utm_source=discord&utm_medium=seo logo
I can pass a extracted dynamic variable in a custo...
# ❓・ai-evy-support
h
I can pass a extracted dynamic variable in a custom function tool called right and pass it through the tool schema yeah @AI Evy
a
Thanks for tagging me @hans_70884. I'll look through relevant sources and get back to you shortly.
### Answer --- Yes, you can pass extracted dynamic variables through custom function tools in Retell AI. [(1) ]() [(2) ]() [(3) ]() For Single Multi Prompt: You can extract dynamic variables using the Extract Dynamic Variable tool [(1) ]() , then reference them in your custom function's request headers or query parameters using the format
{{variable_name}}
[(2) ]() . For Conversation Flow: Similarly, you can extract variables and pass them in custom function headers or query parameters using
{{variable_name}}
[(3) ]() . Important formatting notes: - Use the variable name directly:
{{variable_name}}
[(4) ]() [(5) ]() - In descriptions or parameters, format as:
{{treatment_id}}
(for example) [(4) ]() - Avoid dot notation like
scheduling_info_extraction.make
- instead use
{{make}}
directly [(5) ]() The extracted variables will be populated at runtime when the custom function is called. [(4) ]()
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[4] Dynamic Variable is not sending via custom function.](https://discord.com/channels/1186424376300679209/1430715756030722149) [[5] Extracted Dynamic Variables not sending through custom function in Conversation Flow Prompt](https://discord.com/channels/1186424376300679209/1442542149546803312) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.