https://retellai.com/?utm_source=discord&utm_medium=seo logo
when invoking multiple tools in a row my agent rep...
# ❓・ai-evy-support
c
@AI Evy when invoking multiple tools in a row my agent repeats filler sentences. how to avoid this?
a
Thanks for tagging me @carlo_98907. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there's a specific solution for agents repeating sentences. You can add this prompt instruction to your agent: "Please avoid repeating sentences or phrases during the conversation" [(1) ]() . For multi-prompt agents specifically, if you're experiencing repetition issues with beginning messages, one approach mentioned is to change to a dynamic greeting and give exact instructions in your greeting node to say the beginning then transition to the next state [(2) ]() . The repetition issue appears to be a known behavior that can occur when agents are processing multiple tool calls or during state transitions [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] voice agent repeating script](https://discord.com/channels/1186424376300679209/1403147794746704023) [[2] System Error](https://discord.com/channels/1186424376300679209/1429979145424736338) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @carlo_98907. I'll get back to you soon.
c
I added this but it didn't work: "** Please avoid repeating sentences or phrases during the conversation when performing multiple tool calls in sequence (for example, searching availability): Before the first tool call, say one short phrase to set the expectation of a wait, such as: "One moment..." After that, stay completely silent while the tools run. Only speak again once the entire operation is complete. **" @AI Evy
a
### Answer I can see that your prompt instruction is more detailed than the general advice, but it's still not working. Looking at the function calling documentation, there are a few technical approaches that might help: When implementing function calling, you can control the response flow more precisely by managing how your LLM handles the function call responses [(1) ]() . The key is in how you structure your function definitions and handle the results. For example, when defining functions, you can include a
message
parameter in the tool call so that when the LLM decides to call the function, it can provide appropriate user feedback :
Copy code
javascript
export interface FunctionCall {
 id: string;
 funcName: string;
 arguments: Record<string, any>;
 result?: string;
}
The documentation shows that you can control exactly what the agent says during function execution by properly structuring your function responses . Additionally, if you're using a multi-prompt agent setup, the issue might be related to how transitions between states are handled [(2) ]() . For multi-prompt agents experiencing repetition, one approach is to use dynamic greetings with specific transition instructions . However, the available sources don't provide a complete solution for preventing filler sentences during multiple sequential tool calls. I'd recommend checking with Retell AI support for more specific guidance on managing agent speech during complex tool call sequences.
​ To learn more, see the sources I considered: [[1] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) [[2] System Error](https://discord.com/channels/1186424376300679209/1429979145424736338) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.