https://retellai.com/?utm_source=discord&utm_medium=seo logo
How does an agent detect frustration
# ❓・ai-evy-support
n
@AI Evy How does an agent detect frustration? What details is it considering before handing off to an agent? Is this adjustable?
a
Thanks for tagging me @n8gr80753. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Retell AI's agents can identify emotional cues or customer frustration by monitoring the tone and sentiment of the customer's voice or text [(1) ]() . The AI agent analyzes the conversation to detect when a human agent is needed to de-escalate the situation . Key indicators considered before handoff include: - **Complexity Detection**: Algorithms analyze the customer's request and identify keywords, phrases, or patterns that indicate a need for more advanced support, including technical issues, multi-step processes, or high-priority requests - **Emotional Intelligence**: Recognition of frustration signals, sensitive situations, and urgency - **Contextual Understanding**: The AI agent analyzes conversation history, customer data, and other relevant information to assess the situation and make informed decisions about when to handoff Yes, this is adjustable. You control handoff behavior through your prompt engineering [(2) ]() . For explicit tool calling instructions, define clear triggers for when to use transfer functions . You specify exact conditions for tool usage in your prompts, referencing tools by their exact names . For agent transfers specifically, you configure when the transfer should occur by updating the prompt with clear instructions such as: "If the user asks to book an appointment, use the agent_transfer tool to transfer to the Appointment Agent" [(3) ]() .
​ To learn more, see the sources I considered: [[1] How An AI Agent Knows When to do Handoffs | Retell AI](https://www.retellai.com/blog/how-an-ai-agent-knows-when-to-handoff-to-a-human-agent) [[2] Prompt Engineering Guide](https://docs.retellai.com/build/prompt-engineering-guide) [[3] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) ​