Assistant Repeating Itself
# support
s
My assistant has started repeating itself. For example, I ask to be transferred to a team member, it looks up the number via a tool call then says 'Let me check if I can find [name] in the director..... Let me check if I can find [name in the directory'. An example call ID is 0f0c1959-8be6-4322-af04-ccb45de8ef25 I expected it to only say it once. But it keeps saying it twice, on multiple different calls. Please help. Its very annoying for the end user https://cdn.discordapp.com/attachments/1366561171599265863/1366561172043726878/image.png?ex=681164c4&is=68101344&hm=83df725c49f4d7095126218f875e960e87c3d4fa3591e7f9bcead430c94702b9&
The tools have no configured messages.
k
Your assistant is likely repeating itself due to redundant tool calls or overlapping prompt instructions, review your prompt and tool logic to ensure tools are only called once per request and responses are handled without re-invoking the same action.
s
Here's the prompt for the above, can you see the issue? ### Direct Staff Requests Caller asks to speak with a specific staff member: 1. Respond by saying, "Let me check if I can find [Staff Name] in the directory," and trigger the 'getNumber' tool to find the direct number. 2. If the 'getNumber' tool returns a phone number, say: "I've found [Staff Name]'s number, would you like me to transfer you?" -- If the caller agrees, trigger the 'dynamicDestinationTransferCall' tool using the phone number. -- If the caller declines, ask if they'd like to speak to someone else. 3. If the 'getNumber' tool returns a suggestion such as "Did you mean [Corrected Name]?", say: "I couldn't find [Original Name], but did you mean [Corrected Name]?" -- If the caller confirms the corrected name, rerun the 'getNumber' tool using the confirmed name, and return to Step 2. -- If the caller says no or is unsure, ask if they’d like to try a different name or speak to someone else.
k
Your assistant’s repetition issue arises from redundant tool calls and overlapping prompt instructions. To resolve this, ensure that each tool is invoked only once per request and that responses are handled without re-invoking the same action. For instance, after retrieving a staff member’s number using the ‘getNumber’ tool, prompt the user for confirmation before proceeding with the ‘dynamicDestinationTransferCall’ tool. This approach prevents unnecessary tool executions and streamlines the conversation flow.