### 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) ](
) .