Back to catalog / Agent workflows
Look up customer/order details and draft a reply with read-only tools
Use explicit client-side tools for synthetic customer/order lookups and draft a reply without cancelling or changing anything.
Goal
Provide an evidence-backed customer-service draft for an employee to review and send.
Steps
- Implement only synthetic-data
get_customer_infoandget_order_detailsread functions in a test environment. [customer] - Expose names/descriptions/schemas and handle
tool_useby returning a matchingtool_result, following the cookbook loop. [customer] - Draft a reply with each order fact tied to a tool result; send only through a separate system after employee approval. [customer]
How to verify
Synthetic records match tool results; missing data is reported as unverified, and no write tool is exposed.
Troubleshooting
Pair multi-turn results by tool_use_id; reject unknown functions and return no data outside the customer record.
Permissions
Prerequisites
- Python, anthropic SDK, an API key, and synthetic order fixtures.
Permissions
- Use synthetic customer data only; connect no order, refund, cancellation, or personal-data system.
Limitations
The cookbook also demonstrates cancel_order; this workflow excludes it and real customer systems. Model output still needs employee review.
Pinned upstream source
- Repository
- anthropics/anthropic-cookbook
- File path
- tool_use/customer_service_agent.ipynb
- Pinned commit
9c1e493ddd2b82df399d2a61b9c806c539e18be6- Source checked
- 2026-10-14 · Reviewed against the pinned upstream source
Repository metrics
These values describe the upstream repository, not popularity or likes for an individual skill or playbook.
- Stars
- Not collected
- Forks
- Not collected
- Observed at
- Not collected
No metrics snapshot is available yet.
License: MIT
Main topic
Turn ecommerce campaign materials into a reviewable weekly brief