https://retellai.com/?utm_source=discord&utm_medium=seo logo
Agent consistently becomes the customer if a >14 s...
# ❓・bug-report
d
We're repeatedly seeing the agent switch roles and take on the customer role if there's a delay from when the inbound agent speaks to when the customer speaks. We've replicated this across customers. We're using webhooks. Any ideas what is causing the agent to hallucinate and pretend to be the customer? Otherwise the agent is fine.
s
hi @daffidal what type of agent are you currently using?
d
I'm using a voice agent with Gemini 2.0 Flash and a Cartesia voice Luke. The conversations are web-based via the Retell APIs.
s
Improve Prompt Engineering:
Add explicit instructions about maintaining role boundaries Include guardrails about not speaking for the customer Specify behavior during silence periods
d
This worked consistently across all our agents. Thank you.