What you will be able to do
- Decide whether a response belongs inline or in an artifact using the four artifact criteria
- Keep work that needs to last in artifacts rather than scattered across chat messages
- Choose a structured format, such as JSON with a schema, for the program or person receiving the output
- Explain why schema-valid output still needs its values checked
- Choose between prose and lists or tables for human readers
Key concept
Format follows the destination — The right output format depends on who or what receives the output and what they will do with it. A quick question gets an inline answer, a standalone piece someone will edit or reuse goes in an artifact, and output a program will parse needs a schema-enforced structure.
1.Artifacts versus inline responses
An artifact is a piece of output that opens in its own window beside the conversation, where you can edit it, come back to it and share it. An inline response is ordinary reply text in the chat. Choosing between them comes down to what the reader will do next. If they will read the answer once and move on, inline is better. If they will keep working on it or hand it to someone else, it belongs in an artifact.
Claude creates an artifact when the content it is sharing meets four criteria:
- It is significant and self-contained, typically over 15 lines.
- You are likely to edit, iterate on, or reuse it outside the conversation.
- It stands on its own without needing extra context from the conversation.
- You are likely to refer back to it or use it later.
Short factual answers fail these tests at once. They take a line or two, they only make sense within the chat they came from, and nobody revises them. Opening a side panel for one makes the reader click to see a sentence. An operations manager who asks a quick question in a meeting and gets back a document to open has been given the wrong format. The fix is a short inline answer.
Artifacts cover far more than text documents. Claude can make one from documents, code snippets, single-page websites, images, diagrams and flowcharts, dashboards and small interactive tools. A designer who wants a scalable vector logo to drop straight into a design tool wants a standalone visual asset they will reuse outside the chat, which makes an artifact containing the SVG the right output. A description of the logo, or JSON listing its colours, would leave the designer with nothing to import. A five-stage approval workflow with branches, which a team will refer to during a planning meeting, works best as a flowchart artifact. A one-line-per-stage bullet list cannot show the branches, and a JSON object is meant for programs rather than for a meeting room. For diagrams, Claude Code's artifact guidance is to prefer SVG, or HTML and CSS, over embedded raster images.
| Request | Format | Why |
|---|---|---|
| Definition of an acronym | Inline | Short, depends on the chat, never edited |
| Vector logo for a design tool | Artifact (image) | Standalone visual asset reused outside the chat |
| Branching approval workflow for a meeting | Artifact (diagram or flowchart) | Referred back to, and stands on its own |
| Project brief the team will revise | Artifact (document) | Long, edited repeatedly, shared |
Checkpoint 1 of 8· Match them up
Match each request to the output format Claude should use for it.
Tap a term, then the definition that fits it.
The format depends on what happens to the output next. A short answer tied to the chat stays inline. Content that stands alone and will be edited, reused or revisited goes in an artifact, and artifacts can be images, diagrams and documents as well as text.
“Claude can make an artifact out of almost anything, including documents, code snippets, single-page websites, images, diagrams and flowcharts, dashboards, and small interactive tools.”Source: support.claude.com
Checkpoint 2 of 8· Exam question
During a conversation about database design, a user asks Claude, "What does the acronym ACID stand for?" What is the most appropriate way for Claude to answer?
Correct answer: A — Respond inline in the conversation, since the answer is a short, self-contained fact that does not need to be edited or reused separately
- A. Correct. A brief factual answer with no reuse or editing need fits naturally as an inline conversational response rather than a standalone artifact.
- B. Incorrect. Artifacts are reserved for substantial, self-contained content; a short acronym definition does not meet that threshold.
- C. Incorrect. A one-line factual answer does not warrant a diagram, and diagrams are not the default treatment for terminology questions.
- D. Incorrect. Claude selects the output format automatically based on content characteristics; it does not need to ask permission for a short factual reply.
Checkpoint 3 of 8· Exam question
A designer asks Claude to create a company logo as a scalable vector graphic that they can drop directly into their design tool. Which output approach is appropriate?
Correct answer: A — An artifact containing the SVG markup, since SVG images are a supported artifact content type meant for standalone, reusable visual assets
- A. Correct. SVG images are explicitly a supported artifact type, and a logo the designer will reuse in another tool is exactly the standalone-asset case artifacts handle.
- B. Incorrect. JSON outputs are meant for structured data fields, not for producing renderable vector graphics that a design tool can import directly.
- C. Incorrect. Design tools do not automatically convert prose descriptions into vector paths, so plain text would not give the designer a usable asset.
- D. Incorrect. Strict tool use validates parameters passed to a defined tool; it is not a mechanism for generating or delivering image assets.
Checkpoint 4 of 8· Exam question
A project manager asks Claude to map out a five-stage approval workflow with branching decision points so the team can reference it during a planning meeting. What is the best way for Claude to present this?
Correct answer: A — An artifact containing a Mermaid flowchart, since diagrams are a supported artifact type well suited to visualizing branching workflows
- A. Correct. Diagrams and flowcharts are a supported artifact content type, and a branching workflow with decision points is naturally suited to visual representation the team can reference later.
- B. Incorrect. A text list cannot easily convey branching decision points the way a flowchart can, so it is not the best fit here even though it could work for a simple linear list.
- C. Incorrect. Structured JSON is intended for programmatic data consumption, not for a human-facing reference the team will look at during a meeting.
- D. Incorrect. Strict tool use validates parameters sent to an application tool; it is not a presentation format for sharing a workflow with a team.
2.Organising work that needs to last
Chat messages are a poor place to keep anything a team relies on. A decision recorded only in a reply sits in one conversation among many, and nothing collects it. A team that spreads its decisions across dozens of chats has no single place to look, so decisions are easily lost or contradicted. Artifacts fix this because they live outside any single conversation: everything you make is saved to the Artifacts tab in the Claude sidebar, where you can find it from any conversation and view and organise all your artifacts in one place.
Curating scattered material means pulling it into one artifact on purpose. A project lead with a month of loosely related answers gets a usable team reference by asking Claude to merge them into a single document artifact and then refining it there. Twelve separate chats do not add up to that. Inside the artifact you can ask Claude for changes, type directly in a doc made from a template, or highlight a passage and choose "Edit with Claude" so the edit lands exactly where you marked. Before you circulate the merged document, check it against the originals, since combining material is where facts get dropped or blended (checking outputs for accuracy and completeness).
Artifacts also let you try alternatives safely and hand off a finished version:
- Editing an earlier message creates a different version of the chat with its own artifacts, so you can explore another direction without losing the previous one.
- Docs export to Word, PDF, Markdown and Google Docs, and decks to PowerPoint and PDF.
- In Claude Code, publishing session output as an artifact lets you send a teammate a link instead of pasting output into Slack.
Some formats look like artifacts but do not last. Custom visuals, the diagrams and charts Claude draws inline in chat, are ephemeral by default and are not saved separately once the conversation moves on. They are good for thinking something through in the moment. To keep one, save it as an artifact. For anything the team must rely on later, ask for an artifact from the start.
Checkpoint 5 of 8· Check yourself
A project lead has a month of team decisions spread across a dozen separate Claude chats. Teammates keep missing or contradicting earlier decisions. What gives the team a reference that lasts and that they can find again?
Artifacts live outside any single conversation and are collected in the Artifacts tab, so one curated document artifact gives the team a single place to look. Pinned chats and a pasted message still leave the decisions inside conversations. Inline custom visuals are ephemeral by default, so they are not kept unless saved as an artifact.
“Everything you make is saved to the Artifacts tab in your Claude sidebar, so you can find it again from any conversation.”Source: support.claude.com
3.Choosing a structured format for where the output goes
When the receiver is a program rather than a person, readable formatting gets in the way. A recipe written for a cook has a friendly intro line, bold headings and bullet points. A program needs fields such as prep_time_minutes holding a number. Without a schema, even a carefully prompted response can arrive as malformed JSON, with required fields missing or data types that vary, and any of these breaks the code that reads it.
A schema enforces the shape. With JSON outputs, you describe the structure as a JSON Schema and send it in output_config.format. Constrained decoding then guarantees a response that parses, includes the required fields and uses the declared types, so no retries are needed for schema violations. A related feature, strict tool use (strict: true), does the same for tool inputs. JSON outputs control what Claude says, and strict tool use validates how Claude calls your functions. The two can be combined in one request.
output_config={
"format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string"},
"plan_interest": {"type": "string"},
"demo_requested": {"type": "boolean"},
},
"required": ["name", "email", "plan_interest", "demo_requested"],
"additionalProperties": False,
},
}
},| Receiver | Format to request |
|---|---|
| A person asking a quick question | Inline prose |
| A person who will edit, reuse or share the result | An artifact |
| Code that parses the response | JSON outputs with a schema in output_config.format |
| Code that receives a function call | Strict tool use with strict: true |
| A classifier that must choose from fixed labels | A tool with an enum field, or structured outputs |
Outside the API, the same rule holds as a prompt instruction. Be specific about the format the receiver needs: a table with named columns for someone who will sort and filter it in a spreadsheet, or a fixed layout of sections for a report template. A schema guarantees the shape, while an instruction only asks for it. Use a schema when a malformed response would break something downstream.
Checkpoint 6 of 8· Check yourself
Your nightly script sends support emails to Claude and loads each reply straight into a database. Even with a carefully worded prompt, some replies come back with a missing field or a number stored as text, and the import fails. What should you change?
The receiver here is code that parses Claude's own reply, so you need JSON outputs with a schema, which guarantee the shape. A prompt instruction only asks for the format, strict tool use checks tool inputs rather than the reply, and artifacts are meant for people who will edit or reuse the output.
“JSON outputs control Claude's response format (what Claude says)”Source: platform.claude.com
4.Valid structure is not verified content
A schema guarantees the shape of the output, not the truth of its values. Constrained decoding promises field types and required fields: total_amount will be a number, and it will be present. It does not promise that the number matches the invoice. A required field also has to be filled even when the source text does not contain the answer. The extraction example schema requires line_items, while the sample invoice text gives only a number, a date and a total.
Even the shape guarantee has documented gaps, and each one passes silently:
- Enum casing. Claude may return an enum or const value that differs from the schema only in capitalisation, and the response completes normally with no error and no special stop_reason. Compare enum values case-insensitively, and avoid enum values that differ only in case.
- Truncation. If the response hits max_tokens, the stop_reason is "max_tokens" and the output may be incomplete and not match the schema. Retry with a higher limit.
- Unsupported constraints. Numeric limits such as minimum and string limits such as maxLength are not enforced during decoding. SDK helpers move them into field descriptions and, where the helper validates responses, check them in your code afterwards.
{
"type": "string",
"enum": ["Conversation Topic 1", "Conversation Topic 2", "Conversation topic 3"]
}Tidy formatting has the same effect on people. A manager who pastes a neat table of figures pulled from several reports straight into a board deck is trusting values that nobody has compared with the reports. The clean layout makes the table look checked when it has not been. Spot-check the figures against the source documents (fact-checking against primary sources) before the table goes anywhere it will be relied on.
Checkpoint 7 of 8· Check yourself
Every reply from a ticket-routing pipeline parses and finishes with a normal stop_reason. The output uses a schema enum of category labels, and downstream code matches labels by exact string. Some tickets still get dropped as "unknown category". What is the likely cause, and what is the fix?
Enum casing can drift without any error or special stop_reason, so the reply passes as valid while the exact-match code rejects it. Truncation would show stop_reason "max_tokens". maxLength is not enforced during decoding. The casing caveat applies to strict tool use as well.
“Compare enum values case-insensitively, and avoid enum values that differ only in capitalization.”Source: platform.claude.com
Sources4
5.Prose or lists for human readers
Reasoning reads better as prose, because the connections between ideas are the content. An analysis broken into short bullets loses the "because" and "so" that link one point to the next, and the reader has to rebuild the argument. For reports, technical explanations and analyses, the recommended guidance is flowing prose in complete paragraphs, keeping markdown for inline code, code blocks and simple headings. A series of overly short bullet points is the specific pattern to avoid.
Lists and tables earn their place when the content really is a set of separate items. The same guidance allows a list when items are truly discrete or when the user asks for a list or ranking. Numbered steps help when order or completeness matters, as in a checklist or a procedure. A table suits items compared across the same attributes, such as thirty bookings with a date, a name and a room each. Forcing that into paragraphs would hide the comparison.
A paragraph. Each event caused the next, and bullets would drop that causal chain. The list of remaining launch tasks underneath it, by contrast, is a set of discrete items and reads well as a numbered list.
Formatting instructions need tuning to the model. Claude Fable 5.1 already formats less than earlier models, so a strong anti-markdown block in a prompt can suppress structure the content actually needs. Giving the reason behind a format rule also helps. Saying the text will be read aloud by a text-to-speech engine explains why ellipses must go, and Claude can generalise from that explanation.
Checkpoint 8 of 8· Match them up
Each piece of content below is for a human reader. Match it to the layout that serves that reader best.
Tap a term, then the definition that fits it.
Reasoning belongs in prose, because the links between points carry the meaning and short bullets drop them. Lists suit truly separate items or a requested ranking. Numbered steps suit tasks where order matters, and a table suits items compared across the same attributes.
“write in clear, flowing prose using complete paragraphs and sentences”Source: platform.claude.com
Sources5
Sources
(5)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.https://support.claude.com/en/articles/17153992-what-are-artifacts-and-how-do-i-use-themOfficial docs
“It stands on its own without needing extra context from the conversation.”
↩︎ Artifacts versus inline responses“It's content you're likely to refer back to or use later.”
↩︎ Artifacts versus inline responses“Claude can make an artifact out of almost anything, including documents, code snippets, single-page websites, images, diagrams and flowcharts, dashboards, and small interactive tools.”
↩︎ Artifacts versus inline responses“Everything you make is saved to the Artifacts tab in your Claude sidebar, so you can find it again from any conversation.”
↩︎ Organising work that needs to last“Edit an earlier message to create a different version of the chat, with its own artifacts”
↩︎ Organising work that needs to last“Docs export to Word, PDF, Markdown, and Google Docs.”
↩︎ Organising work that needs to last“It's something you're likely to want to edit, iterate on, or reuse outside the conversation.”
↩︎ Exam trap 1“It's significant and self-contained, typically over 15 lines.”
↩︎ Prediction - 2.https://code.claude.com/docs/en/artifactsOfficial docs
“Prefer SVG, or HTML and CSS, for diagrams over embedded raster images”
↩︎ Artifacts versus inline responses“Send a teammate a link instead of pasting output into Slack”
↩︎ Organising work that needs to last - 3.
“Custom visuals are ephemeral by default.”
↩︎ Organising work that needs to last“artifacts are persistent and shareable from the start, while custom visuals help you think in the moment”
↩︎ Exam trap 4 - 4.
“Without structured outputs, Claude can generate malformed JSON responses or invalid tool inputs that break your applications.”
↩︎ Choosing a structured format for where the output goes“JSON outputs control Claude's response format (what Claude says)”
↩︎ Choosing a structured format for where the output goes“Strict tool use validates tool parameters (how Claude calls your functions)”
↩︎ Choosing a structured format for where the output goes“Type safe: Guaranteed field types and required fields”
↩︎ Valid structure is not verified content“The response completes normally, with no error and no special stop_reason.”
↩︎ Valid structure is not verified content“The output may be incomplete and not match your schema”
↩︎ Valid structure is not verified content“Claude receives a simplified schema, but a helper that validates responses still enforces every constraint in your code.”
↩︎ Valid structure is not verified content“Structured outputs constrain Claude's responses to follow a specific schema, ensuring valid, parseable output for downstream processing.”
↩︎ Key concept“Structured outputs constrain Claude's responses to follow a specific schema, ensuring valid, parseable output for downstream processing.”
↩︎ Exam trap 2“Structured outputs don't guarantee the capitalization of string enum and const values”
↩︎ Exam trap 3“Compare enum values case-insensitively, and avoid enum values that differ only in capitalization.”
↩︎ Checkpoint - 5.https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practicesOfficial docs
“For classification tasks, use either tools with an enum field containing your valid labels or structured outputs.”
↩︎ Choosing a structured format for where the output goes“Be specific about the desired output format and constraints.”
↩︎ Choosing a structured format for where the output goes“write in clear, flowing prose using complete paragraphs and sentences”
↩︎ Prose or lists for human readers“NEVER output a series of overly short bullet points.”
↩︎ Prose or lists for human readers“you're presenting truly discrete items where a list format is the best option”
↩︎ Prose or lists for human readers“Provide instructions as sequential steps using numbered lists or bullet points when the order or completeness of steps matters.”
↩︎ Prose or lists for human readers“Claude Fable 5.1 already formats less than earlier models, so on that model a block like this can suppress structure the content needs.”
↩︎ Prose or lists for human readers