https://retellai.com/?utm_source=discord&utm_medium=seo logo
How can I get my agent to better transition betwee...
# ❓・ai-evy-support
t
@AI Evy How can I get my agent to better transition between states. Sometimes it defers to the knowledge base, says something, then doesnt invoke any tool or function. It waits for a response from the user before doing what it says it will do.
a
Thanks for tagging me @tyler_34269. I'll look through relevant sources and get back to you shortly.
### Answer To improve state transitions for your Retell AI agent—especially to ensure it invokes tools/functions rather than waiting for extra user input—focus on how your function nodes and transitions are configured: - In Conversation Flow, a function node triggers its function when entered, but the actual transition timing depends on the "Wait for Result" and "Speak During Execution" settings. If "Wait for Result" is on, the agent will wait for the function to finish before moving on. If it's off, the agent may transition sooner, sometimes before the function result is ready [(1) ]() . - If the agent is deferring to the knowledge base and waiting for user input, check if your function node is set to require explicit user action instead of automatically proceeding. You may need to design your flow so that after presenting knowledge base info, the agent transitions directly to a function node, or ensure your transition conditions do not depend on waiting for user input unless necessary . - The agent will not converse in function nodes unless you configure it to "Speak During Execution" (e.g., have it say "Let me check that for you" while the function runs) . - For communicating function results, connect a conversation node after the function node to present the result to the user. This helps keep the flow moving instead of waiting for user input . See more on node settings and transitions here: [Function Node Overview]() .
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@User i dont see the wait for result. i cant find the fine tuning section. for me, custom functions look like this:Custom Function Name Enter the name of the custom function Description Enter the description of the custom function API Endpoint The API Endpoint is the address of the service you are connecting to POST Enter the URL of the custom function Timeout (ms) 120000 milliseconds Headers Specify the HTTP headers required for your API request. New key value pair Query Parameters Query string parameters to append to the URL. New key value pair Parameters (Optional) JSON schema that defines the format in which the LLM will return. Please refer to the docs. JSON Form Payload: args only Enter JSON Schema here... example 1 example 2 example 3 Format JSON Response Variables Extracted values from API response saved as dynamic variables. New key value pair Speak During Execution If the function takes over 2 seconds, the agent can say something like: "Let me check that for you." Speak After Execution Unselect if you want to run the function silently, such as uploading the call result to the server silently.
@AI Evy where is the wait for response in a custom function? i dont see it: Custom Function Name Enter the name of the custom function Description Enter the description of the custom function API Endpoint The API Endpoint is the address of the service you are connecting to POST Enter the URL of the custom function Timeout (ms) 120000 milliseconds Headers Specify the HTTP headers required for your API request. New key value pair Query Parameters Query string parameters to append to the URL. New key value pair Parameters (Optional) JSON schema that defines the format in which the LLM will return. Please refer to the docs. JSON Form Payload: args only Enter JSON Schema here... example 1 example 2 example 3 Format JSON Response Variables Extracted values from API response saved as dynamic variables. New key value pair Speak During Execution If the function takes over 2 seconds, the agent can say something like: "Let me check that for you." Speak After Execution Unselect if you want to run the function silently, such as uploading the call result to the server silently.
a
Thanks for the follow-up, @tyler_34269. I'll get back to you soon.
### Answer The "Wait for Result" setting is not a direct option in the custom function configuration itself—it's a setting you control in the Conversation Flow editor when you attach your custom function to a Function Node [(1) ]() . In the custom function setup, you define the function parameters, API endpoint, headers, etc., but node execution and transition logic (including "Wait for Result" and "Speak During Execution") are managed at the node level in the Conversation Flow, not within the custom function definition . To adjust whether your agent waits for the function to finish before transitioning, open the Function Node in your Conversation Flow and look for the "Wait for Result" setting there . This is separate from the custom function creation form you described.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy are you talking about the prompt tree? wheres conversation flow? im working on a multiprompt voice agent
a
Thanks for the follow-up, @tyler_34269. I'll get back to you soon.
### Answer In Retell AI, "Conversation Flow" refers to the framework for building multi-prompt agents—sometimes called a "prompt tree"—where you define a structured set of nodes and transitions, each with its own prompt and logic [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The Conversation Flow editor is where you visually design these node-based, multi-state flows. This is distinct from a single-prompt agent, which uses just one prompt and no state transitions [(2) ]() . If you’re working on a multiprompt voice agent, you are indeed using Conversation Flow (the prompt tree is another term for this structure) [(2) ]() [(3) ]() [(4) ]() . The settings for function execution and transition logic, such as "Wait for Result" or "Speak During Execution," are managed at the node level within the Conversation Flow editor—not in the custom function definition form [(1) ]() [(4) ]() .
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[3] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[4] Training & Customizing AI Voice Agents | Retell AI](https://www.retellai.com/blog/training-and-customizing-voice-agents-with-retell-ai) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy when i create a new state or node, this is what it looks like: new_state_54 Set as a starting state Prompt Read stateful multi-prompt agent best practices. Enter part of your prompt here, for example, 'List a series of questions to ask the user: [Question 1] [Question 2] [Question 3] [Question 4]' Tools (Optional) Add Enable this state with capabilities such as calendar bookings, call termination, or your own custom functions. MCPs (Optional) Add Enable State Interruption Sensitivity - nowhere to configure wait for response or anything like that which i see
a
Thanks for the follow-up, @tyler_34269. I'll get back to you soon.
### Answer In Retell AI's Conversation Flow (the multi-prompt framework) , the ability to configure "Wait for Result" is available specifically within a Function Node, not in a generic state or conversation node [(1) ]() . When you add a Function Node, you get node-specific settings like "Wait for Result" and "Speak During Execution"—these control whether the agent waits for a function/tool to finish before transitioning, or speaks while the function is running . If you're creating a new state/node and only see options for prompt, tools, MCPs, and interruption sensitivity—but do not see "Wait for Result"—it means you are likely in a standard conversation node or a basic state, not a Function Node [(1) ]() [(2) ]() . Only Function Nodes (used for calling APIs or tools) expose the transition timing controls you're looking for [(1) ]() . - To use "Wait for Result," add a Function Node, select or create your function, and check the node settings panel for that option . - Conversation Nodes (used just for talking) do not have "Wait for Result"—they automatically progress based on user/agent turns or skip logic [(2) ]() . - Interruption Sensitivity can be enabled per state/node, but is a separate setting from function execution timing [(3) ]() [(4) ]() . For more on node types and their settings, see: - [Function Node Overview]() - [Conversation Node](
ai.com/build/conversation-flow/conversation-node)
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[3] Update Agent](https://docs.retellai.com/api-references/update-agent) [[4] State interruption sensitivity](https://discord.com/channels/1186424376300679209/1310913229840711720) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy i see speak during execution in the custom finction node but not the wait for response. there is however, response variable. when those are set, does tat assume its waiting for those responses? that owuldnt make sens to me though becuase the agent will sometimes transition corectly and other times it makes a statement then doesnt do anythung
a
Thanks for the follow-up, @tyler_34269. I'll get back to you soon.
### Answer Setting "response variables" in the custom function node does not control whether the agent waits for the function result before transitioning. The "Wait for Result" setting—which determines if the agent pauses for the function's response before moving to the next node—is only available in the Function Node settings within the Conversation Flow editor, not in the custom function definition itself [(1) ]() . Response variables are just a way to extract values from the API response and save them as dynamic variables for later use in the conversation, but they don't affect the agent's transition logic [(2) ]() . If you're only seeing "Speak During Execution" and not "Wait for Result" in your custom function node, check that you are editing a Function Node (not a regular conversation node) in the Conversation Flow editor, as that's where the transition timing settings—including "Wait for Result"—are available [(1) ]() .
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy how do i make a function node?
a
Thanks for the follow-up, @tyler_34269. I'll get back to you soon.
### Answer To make a function node in Retell AI's Conversation Flow: 1. In the Conversation Flow editor, select "Function Node" from the list of node types in the left sidebar and add it to your canvas [(1) ]() . 2. Click the node to configure it. In the settings panel, you can select or add a function (custom or pre-built) , and adjust node-specific options like "Wait for Result" and "Speak During Execution" [(2) ]() . 3. Add transition conditions and connect the function node to other nodes as needed to define your conversation flow [(1) ]() . Function nodes are specifically for executing custom functions or API calls. The settings for transition timing (like "Wait for Result") are available in the node's configuration panel, not in the custom function definition form [(2) ]() .
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
t
@AI Evy i dont have a left sidebar when im in the conversation flow
a
Thanks for the follow-up, @tyler_34269. I'll get back to you soon.
### Answer If you don't see a left sidebar in the Conversation Flow editor, it's possible that the UI layout you are using is different from what is described in the documentation, or you may be in a different builder mode or version than the one referenced in the official docs [(1) ]() [(2) ]() . In the documented workflow, nodes like "Function Node" are added from a node selection area (often in a sidebar) , but if your UI doesn't show this, you may need to look for an "Add Node" button or a "+" icon somewhere in your editor's interface [(1) ]() . If you still can't find a way to add a Function Node, it's not explicitly documented where this option appears in every possible UI layout. The documentation only describes the functionality and configuration once the node is added [(1) ]() [(2) ]() . Check out these potentially useful sources: - [Node Overview]() - [Function Node Overview]() - [Conversation Flow Overview]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.