Order Status Classification JSON

Anthropic Cookbook

Submit a prompt

Overview

Classify an order-status message with shipping state, identifiers, carrier, ETA, sentiment, and reply bullets.

Use cases

Prompt
Copied 0
Classify the customer message about an order. Return ONLY valid JSON:

{
  "status": "processing|shipped|out_for_delivery|delivered|delayed|canceled|return_started|unknown",
  "order_id": "string|null",
  "tracking_number": "string|null",
  "carrier": "string|null",
  "eta": "string|null",
  "customer_sentiment": "pos|neu|neg",
  "suggested_reply_bullets": ["string"]
}

Extract IDs only if present. Do not invent tracking numbers.

MESSAGE:
<<<paste>>>

Can AI?

Alternatives

  • Amazon launch ad for a new productThis prompt writes an Amazon ad for a newly launched product. The copy has a headline, an opening line, key benefits, a reason to act now, social proof, and a call to action, plus one idea for the image.Commerce
  • List products a video mentions for affiliate linksThis prompt finds every product, tool, book, brand, or service named or shown in a video transcript and groups them by category. Each entry notes how it came up and how well it fits the audience. It ranks the five most likely to sell and lists needs the video raised without naming a product, which are open spots for an affiliate link.Commerce
  • Niche product research for Etsy sellersThis prompt suggests niche items an Etsy seller could make or list, weighing current trends, open gaps, competition, and demand. It does not see live Etsy data, so treat its trend claims as guesses to check.Commerce