https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can we use variables and define condition in fine ...
# ❓・ai-evy-support
a
@AI Evy Can we use variables and define condition in fine tuning examples, based on the condition ?
a
Thanks for tagging me @afrah_85175. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, finetune examples in Retell AI work with transcripts and transitions, but the specific use of variables within finetune examples isn't explicitly detailed in the available sources [(1) ]() . For finetune examples, you provide a transcript as context and can select roles like
user
,
agent
, or
function
. When configuring transition finetune examples, you need to provide both a transcript as context and the transition result . However, from the Discord discussion, there's evidence that variables can be used in transition conditions. One approach mentioned involves using webhook responses to set variables and then referencing them in prompts, such as writing "If {{firstName}} is not empty, transition to known_user" [(2) ]() . The discussion also suggests having webhooks return state information that can be referenced with variables like "Transition to {{state}}" . The documentation confirms that
transition_condition.prompt
is the actual logic that the LLM checks against user responses to decide whether to take specific edges [(3) ]() . While the sources don't explicitly show variable usage within finetune examples themselves, they do demonstrate that variables can be used in transition conditions and prompts, which work alongside the finetune examples system.
​ To learn more, see the sources I considered: [[1] Finetune Examples](https://docs.retellai.com/build/conversation-flow/finetune-examples) [[2] Use inbound variables in conditions](https://discord.com/channels/1186424376300679209/1281603253834088508) [[3] Fine-tuning Examples missing destination_node_id in code](https://discord.com/channels/1186424376300679209/1391815224092262522) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Will this work in conversation flow agent ?
a
Thanks for the follow-up, @afrah_85175. I'll get back to you soon.
a
@AI Evy Will this work in conversation flow agent ?
a
​ To learn more, see the sources I considered: [[1] Finetune Examples](https://docs.retellai.com/build/conversation-flow/finetune-examples) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) ​
### Answer Yes, finetune examples work in conversation flow agents [(1) ]() . The documentation confirms that finetune examples are specifically designed for conversation flows and are supported by multiple node types . Finetune examples are available for : - **Conversation Node**: supports finetune examples for both response and transition - **Function Node**: supports finetune examples for transition When configuring finetune examples, you provide a transcript as the context and can select
user
,
agent
, or
function
as the role . For function roles, you can fill out both the invocation and result of the function . For conversation finetune examples, you simply need to provide the relevant transcript context with at least one
agent
response required . For transition finetune examples, you need to provide both a transcript as context and the transition result . The conversation flow system includes dynamic variables that can be referenced throughout the flow [(2) ]() , and these work together with the finetune examples system to provide structured, customizable agent behavior.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.