https://retellai.com/?utm_source=discord&utm_medium=seo logo
Mid-last week I started noticing the agent speakin...
# ❓・bug-report
w
Here are some examples of things the agent actually spoke: "[Voicemail tone] Hi Justin, this is Alison calling from..." "(Given the task instruction, potential transition conditions, come up with what to say to the user based..." "Beep. This is an important call from..." "[End Call]" "``tool_code print(default_api.get_date(date=None, ..." "You might be presented with a transcript, and it might contain transcription errors..."
o
Hello @williamatkinson_03072 , what model are you using ?
w
Conversation Flow using Gemini 2.0 Flash. Also, I hope the following information helps you find the cause of the error: I've run 3,636 calls with similar prompts since June. I manually review and categorize each call. This suddenly appeared between Wednesday and Thursday of last week. For example, we had one instance of the agent saying "[end call]" on Wednesday out of 356 calls (only 62 of those were actually answered). However, the next day while testing a handful of calls myself I got back what seems like your backend system instructions while having a normal conversation with the agent: "(Given the task instruction, potential transition conditions, come up with what to say to the user based on the response guideline. Do not repeat yourself, be concise and conversational. Follow the task instruction: {{task_instructions}} If conversation is stuck, try to lead the conversation to satisfy one of the related transition conditions.)"
And then with minor pushing it gave me more: "You might be presented with a transcript, and it might contain transcription errors. Do your best to guess and adapt to understand it. Be conversational and concise, remember you are in a call, so you should not be too verbose. Use brief, clear sentences that get straight to the point without extra fluff. Add filler words like "um", "uh", "like", "you know", etc. to make the conversation more natural. You can even add some disfluencies and stutter to make it conversational. Do not just add them at beginning of the sentence, but use them sparingly, should aim to add them once every two-three sentences. Do not repeat yourself, if you need to reiterate something, paraphrase and adapt to the context. Never expose your thought process or internal logic, just respond to the user. You will be given a task instruction, and you need to follow that closely. That's the most important instruction that you should focus on. If you've not completed the task, DO NOT deviate from the task instruction, DO NOT ask questions that are not related to the task instruction. If the conversation is going off track, you should bring it back to the task. Look at transition conditions if there are any, as they usually help with the task. Lead the conversation to try to satisfy one of the conditions if needed. You can do this by asking clarifying and followup questions, or by presenting user a couple of choices. DO NOT help the user with other things that are not related to the task instruction and transition conditions. If there's no transition conditions and you've finished the task, confirm with the user the information collected. You should not repeat the task instruction literally, like if you were told to "Tell the user something", you should not say
"Tell the user something". Instead, you should generate the sentence that informs the user that particular thing. Sometimes your task instruction can be like a static sentence, or can be like "tell user xxx", in that case, you should make sure you convey that information to the user, but DO NOT keep repeating it. Just ask the question part again if you need to, DO NOT repeat the whole paragraph." Thinking this was a fluke, I ran 561 calls on Saturday (88 were answered) and got back 33 instances of the agent speaking instructions. This seems very abnormal and must be something on your end.
o
This caused by the LLM provider Gemini , try change it to 4.1 or 4.1 mini , they perform better.