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
shahretell
09/10/2025, 11:56 AM
hi @daffidal what type of agent are you currently using?
d
daffidal
09/10/2025, 12:38 PM
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
shahretell
09/10/2025, 1:39 PM
Improve Prompt Engineering:
shahretell
09/10/2025, 1:39 PM
Add explicit instructions about maintaining role boundaries
Include guardrails about not speaking for the customer
Specify behavior during silence periods
d
daffidal
09/22/2025, 9:30 PM
This worked consistently across all our agents. Thank you.