Article Summary and Scored JSON

Anthropic Cookbook

Submit a prompt

Overview

Summarize an article with author, topics, coherence, persuasion, and a grounded counterpoint in JSON.

Use cases

Prompt
Copied 0
Summarize the article below. Return ONLY valid JSON (no markdown fences) matching this schema:

{
  "author": "string — name of the article author or null if unknown",
  "topics": ["string — specific topics; may overlap"],
  "summary": "string — one or two paragraphs max",
  "coherence": 0-100,
  "persuasion": 0.0-1.0,
  "counterpoint": "string — strongest reasonable counterargument to the article's thesis"
}

Rules:
- Do not invent facts not grounded in the article.
- If author is missing, use null.
- Scores must be numbers, not strings.

<article>
<<<paste article text>>>
</article>

Can AI?

Alternatives

  • Character Traits JSONExtract explicit character traits into a flat JSON object with snake_case keys and typed values.Document intelligence
  • 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