Support and ops agents with tools
Connect DeepSeek V3.2 to lookup and action tools and let it decide the next step from the tool data and your business rules. Before launch, test a few edge-case conversations to see whether it calls the wrong tool.
Example: Can this order still be returned?
Material
- User
- Can I return order A1024? Today is November 19, 2026.
- Tool get_order result
- { "order_id": "A1024", "status": "delivered", "delivered_at": "2026-11-10", "category": "electronics" }
- Return policy
- Electronics can be returned for any reason within 7 days of delivery; after 7 days, only quality issues are accepted.
PromptUsing the user’s question, the tool result and the return policy, decide whether a return is allowed, and say which tool to call next or whether to ask the user first.
Sample answer · written by hand to show the reasoning
Order A1024 was delivered on November 10; by November 19 that is 9 days, past the 7-day no-reason return window for electronics, so it can’t simply be returned. Don’t call the refund tool. First ask the user whether the item has a quality issue; if it does, call create_ticket to open a quality-issue ticket with order number A1024 and the description.