https://retellai.com/?utm_source=discord&utm_medium=seo logo
In conversational flow, when the agent calls a too...
# ❓・ai-evy-support
a
@AI Evy In conversational flow, when the agent calls a tool, i see that the tool call was returned in the chat preview, but the agent doesn't say anything. Once the user says something like "hello?" the agent will then respond, but only if the person says something. how do i fix that?
a
Thanks for tagging me @anthony_13238. I'll look through relevant sources and get back to you shortly.
### Answer This is a known issue with conversation flow agents. Other users have reported the same behavior where the agent stops speaking after calling a function, even when the transition logic is working correctly [(1) ]() . The issue appears to be related to tool call handling in conversation flows. According to reports from other users, there's an error that occurs: "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'" . To fix this issue, you need to configure the speech behavior settings when creating your custom function. In the custom function configuration, there are two key settings [(2) ]() : 1. **Speak during execution**: Whether the agent speaks when the function is called 2. **Speak after execution**: Whether the agent continues talking after the function call is completed You should enable "Speak after execution" for your function, as this lets the agent tell the user the result of the function call and continue the conversation without waiting for user input . This setting should be enabled for almost all cases, except for specific tasks like pressing digits where you don't expect the agent to keep talking . The documentation specifically notes that you can use this setting to "let agent tell user the result of the function call, continue the conversation, execute another task, etc after the function call is completed, without the need to wait for user to say anything to trigger a response" .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Conversation flow agent stops speaking after calling function](https://discord.com/channels/1186424376300679209/1394277381782638672) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
a
@User Still not working, the only options I see in the node to adjust those settings are: Speak During Execution (turned on) Wait for Result (turned on)
@AI Evy Still not working, the only options I see in the node to adjust those settings are: Speak During Execution (turned on) Wait for Result (turned on)
a
Thanks for the follow-up, @anthony_13238. I'll get back to you soon.
### Answer Based on your settings, you have the correct configuration for the Function Node [(1) ]() . In Conversation Flow, the Function Node has two key settings that control when transitions happen : 1. **Speak During Execution**: When enabled, the agent will speak while the function is being executed 2. **Wait for Result**: When enabled, the agent will wait for the function to finish executing before attempting to transition to any other node Since you have both settings enabled, the transition timing should work as follows : - The agent will transition once the function result is ready and the agent is done talking - If the user interrupts the agent, the transition can also happen once the function result is ready and user is done speaking The key issue might be that you need to attach a conversation node to the function node to tell the user the result . The documentation specifically states: "Since the function node is not intended for having a conversation with the user, you will need to attach a conversation node to the function node to tell the user the result" . You can create different conversation nodes for different function results, so the agent can engage users in different ways when function results vary . This should resolve the issue where the agent stops speaking after the function call completes.
​ 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.