CertSafari
    Anthropic Claude Certified Associate – Foundations (CCAO-F)· Lessons

    Domain 2 · Lesson 10/30

    Artifacts, inline answers and structured output formats

    Organize and curate information and select appropriate output formats (artifacts, inline, structured data)

    17 min read
    3.5% of exam
    5 sources
    Published 19 Oct 2026
    Docs as of 14 Oct 2026

    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:

    1. It is significant and self-contained, typically over 15 lines.
    2. You are likely to edit, iterate on, or reuse it outside the conversation.
    3. It stands on its own without needing extra context from the conversation.
    4. 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.

    Where common requests land
    RequestFormatWhy
    Definition of an acronymInlineShort, depends on the chat, never edited
    Vector logo for a design toolArtifact (image)Standalone visual asset reused outside the chat
    Branching approval workflow for a meetingArtifact (diagram or flowchart)Referred back to, and stands on its own
    Project brief the team will reviseArtifact (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.

    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?

    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?

    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?

    Sources12

    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?

    Sources123

    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.

    A JSON schema sent in output_config.format: every field is typed, all four are required, and no extra fields are allowedpython
    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,
                },
            }
        },
    Matching the format to the receiver
    ReceiverFormat to request
    A person asking a quick questionInline prose
    A person who will edit, reuse or share the resultAn artifact
    Code that parses the responseJSON outputs with a schema in output_config.format
    Code that receives a function callStrict tool use with strict: true
    A classifier that must choose from fixed labelsA 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?

    Sources45

    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.
    An enum where the output may contain "Conversation Topic 3", which is not in the list, without any errorjson
    {
      "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?

    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.

    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.

    Sources5

    Sources

    (5)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “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. 2.
      “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. 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. 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. 5.
      “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

    Spotted a mistake, or was something unclear? Tell us.