Character Traits JSON

Anthropic Cookbook

Submit a prompt

Overview

Extract explicit character traits into a flat JSON object with snake_case keys and typed values.

Use cases

Prompt
Copied 0
Given a character description, extract all characteristics as a flat JSON object.
Keys = characteristic names in snake_case (e.g. age, eye_color, height).
Values = characteristic values as strings or numbers.

Return ONLY that JSON object (no markdown fences, no commentary).
If a trait is implied but not explicit, omit it.

<description>
<<<paste character description>>>
</description>

Can AI?

Alternatives

  • Email Address ExtractionCopy email addresses from text exactly, returning one address per line or N/A when none appear.Document intelligence
  • Extract a shareholder list into JSONThis prompt reads a company register document and returns its shareholders as a JSON array. Each entry has the name, register details, address, date of birth, number of shares, and percentage held, and the prompt includes rules for checking and removing duplicates. Share amounts are assumed to be in euros.Document intelligence