https://retellai.com/?utm_source=discord&utm_medium=seo logo
During custom function execution agent talks, when...
# ❓・bug-report
q
Hi there I would like to report an issue when agent speaks when it should not during custom function execution. conversasion path setup: Conversation node with static text and skip response on. --> custom function with Speak During Execution off and Wait for Result on. Transition set to varX exist --> variable extraction node etc. Issue: Static text is said and Agent moves to custom function and starts speaking what it does at this moment, tho there are no instructions to do so. Custom function is set to gpt4.1 fast. Call ID: call_246124985f2e5a0e9e5aab27653 issue at 2.33mins - 2.59mins
j
This usually happens when the LLM (gpt-4.1 fast) is still allowed to generate assistant messages while the function is executing even if “Speak During Execution” is off, the model may be producing intermediate text due to how the transition or system prompt is configured. A few things can cause this: The custom function is returning text instead of only structured data The model is allowed to respond before varX is set The transition fires while the agent is still in a “speaking” state Quick question: Does your custom function return any text/output meant for the user, or only JSON/variables?
q
setup looks as per screenhot. And function returns dates only that will be used after variable extraction node. PS. service_id always exist in the system so that should not be a case https://cdn.discordapp.com/attachments/1465616672391036968/1465630640631316491/image.png?ex=6979ce66&is=69787ce6&hm=484926caf60164da6a01f070075d33019537064f8592843152767cd2717da077&
j
Since the function only returns dates and service_id always exists, this is most likely an internal speaking-state issue between the conversation node and the custom function when using GPT-4.1 Fast. I’ve seen cases where the LLM still emits intermediate speech even with “Speak During Execution” off. I’d be happy to help you debug and fix this directly I can review the flow and suggest a clean workaround or proper fix so the agent stays silent during execution. If you’d like, we can take this privately and I can assist you hands-on.
c
If skip response is on it’ll automatically goto the next node
q
do you mean I should use prompt in Transition : "Skip response" ? I cannot see "skip response" flag on function node like there is it on conversational nodes
j
I've also noticed problems with Speak During Execution in my new post: https://discord.com/channels/1186424376300679209/1216639382308782180/threads/1468229209263702177