Overview
This example demonstrates how to build a customer support agent that can:- Look up customer orders by order ID or email
- Check order status and shipping information
- Process refund requests
- Handle common customer inquiries
Agent Definition
Order Lookup Tool
Refund Processor Tool
Usage Example
Best Practices
Always verify identity first
Always verify identity first
Before sharing sensitive order information or processing refunds, ensure the customer has provided verifiable information like their order ID and associated email.
Use low temperature for consistency
Use low temperature for consistency
Customer support requires consistent, accurate responses. Use a lower temperature (0.3) to reduce creative variation in responses.
Define clear policies in instructions
Define clear policies in instructions
Include refund policies, response guidelines, and escalation procedures directly in the agent’s instructions.
Log all actions
Log all actions
Use the tracing system to log all order lookups and refund processing for audit purposes.
Next Steps
Add Memory
Enable conversation memory to maintain context across sessions
Add Evaluations
Write automated tests to ensure your agent handles edge cases