Agent Wealth HubFree public resources
中文 EN العربية

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

  1. Implement only synthetic-data get_customer_info and get_order_details read functions in a test environment. [customer]
  2. Expose names/descriptions/schemas and handle tool_use by returning a matching tool_result, following the cookbook loop. [customer]
  3. 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

Permissions

Limitations

The cookbook also demonstrates cancel_order; this workflow excludes it and real customer systems. Model output still needs employee review.

Pinned upstream source

https://github.com/anthropics/anthropic-cookbook/blob/9c1e493ddd2b82df399d2a61b9c806c539e18be6/tool_use/customer_service_agent.ipynb

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

Related resources