**TITLE:** How to build an AI agent that responds like a human (instead of rigid if-structures)? **POST:** I’m building an AI agent for automotive appraisers (claims handling). The agent should answer customer questions AND handle complete claim processes. **The Problem:** Claude Code keeps building rigid if-structures, even though I want human-like behavior. **What I WANT:** ``` Agent: Please send me your email Client: How much does a claim cost? Agent: Around $700. Can you send me your email now? Client:
[email protected] Agent: Got it. Now your address please Client: Oh I meant
[email protected] Agent: No problem, updated. Now your address please ``` **What I GET:** Dead if-structures that can’t handle context switches or corrections. **My Setup:** - Using Claude Code - Already tried detailed prompts explaining desired behavior - Agent needs to collect: email, address, damage details, photos etc. **Question:** How do I build an agent that: - Handles each message independently with context awareness - Can switch topics mid-conversation - Accepts corrections naturally - Doesn’t break when clients don’t follow the script Any frameworks, prompt strategies, or architectures that solve this?