Skip to content
Academy ofAI Learning

Tables, checklists, JSON and CSV on demand

How to get tables, bullet lists, checklists, JSON or CSV out of Claude reliably by naming the shape, the fields and what to do with gaps. 7 min

Step 1 of 6

Read

Name the shape, then the fields

Saying "make it a table" is half the job. Say the columns, in order, and what goes in each. For a checklist, say how many items and whether each starts with a verb. For JSON, list the field names and what type of value each holds. For CSV, give the header row.

Always say what to do when information is missing. Without that, Claude may fill the gap with a plausible guess. If a date is not given, write TBC keeps the shape and flags the gap for you.

Anthropic's guidance is to describe the format you want, not the one you do not. "Return a table with these four columns" works better than "do not write paragraphs".

Lesson notes: Tables, checklists, JSON and CSV on demand

Everything in this lesson as text, for revision or to read without the interactive steps. By the end you will be able to: You get output in the exact shape you need, ready to paste into a sheet, a doc or a system.

  1. Step 1 of 6 · Read

    Name the shape, then the fields

    Saying "make it a table" is half the job. Say the columns, in order, and what goes in each. For a checklist, say how many items and whether each starts with a verb. For JSON, list the field names and what type of value each holds. For CSV, give the header row.

    Always say what to do when information is missing. Without that, Claude may fill the gap with a plausible guess. If a date is not given, write TBC keeps the shape and flags the gap for you.

    Anthropic's guidance is to describe the format you want, not the one you do not. "Return a table with these four columns" works better than "do not write paragraphs".

  2. Step 2 of 6 · Read

    Hand it a template to fill

    The most reliable way to get a shape is to show it. Paste an empty template, or one finished row, and ask Claude to fill it from your material. It will copy the structure closely, so make the sample exactly how you want every row to look.

    For anything going into software, ask for only the data with no commentary before or after, so you can copy it in one go.

    Template to fill
    From the supplier emails below, fill this JSON for each supplier. Return only the JSON array, nothing else.
    Use null when a value is not stated. Do not guess.
    
    [
      {
        "supplier": "Acme Packaging",
        "price_per_unit_gbp": 0.42,
        "minimum_order": 500,
        "delivery_days": null
      }
    ]
    
    <emails>
    ...paste here...
    </emails>
  3. Step 3 of 6 · Quiz

    Check your understanding

    You need 40 rows of contact data that you will import into a spreadsheet tool. Which request is most reliable?

    • Return CSV with this header row: name,company,email,phone. One contact per line. Leave a field empty if it is missing. No text before or after the CSV.
    • Put these contacts in a nice format.
    • Make a table, and do not add anything I did not ask for.
    Show the answer

    Return CSV with this header row: name,company,email,phone. One contact per line. Leave a field empty if it is missing. No text before or after the CSV. The header fixes the columns and order, the rule for gaps keeps every row the same length, and no commentary means it imports cleanly.

  4. Step 4 of 6 · Improve a prompt

    From notes to an action table

    Rewrite this so you get a table you can paste straight into your team tracker.

    Starting prompt:

    turn these meeting notes into actions

    Hint: Name the columns and their order, say what to do when there is no owner or date, limit it to agreed actions, and show one sample row.

    Show a strong version
    Turn the meeting notes below into an action table for our team tracker. Columns in this order: action, owner, due date, status. Only include actions the group agreed, not ideas that were discussed. If no owner was named write "unassigned", and if no date was given write "TBC". Set status to "not started" for every row. Example row: "Send revised quote to Hartley Ltd | Priya | 28 November | not started".
    <notes>
    ...paste the notes here...
    </notes>
  5. Step 5 of 6 · Read

    Check the shape before you use it

    Count what came back. If you gave it 40 contacts, ask How many rows did you return? and compare. Long lists are where rows go missing or get merged.

    Spot check three values against the source, especially numbers and dates. A clean table looks trustworthy even when one cell is wrong.

    If it wraps the data in chat ("Here is your CSV..."), reply Same again, only the CSV and it will strip the extra text.

  6. Step 6 of 6 · Sort

    Which shape for which job?

    Is the output mainly for a person to read, or for software to import?

    • A comparison of three quotes for your manager
    • Product data to upload into your online shop
    • An opening up checklist for a new shop assistant
    • Customer records for a developer to load into a database
    • A list of risks for a project kick off meeting
    • Invoice lines to import into your accounts package
    Show the answers
    • A comparison of three quotes for your manager: Table or checklist, for people. A person will read it. A table with clear columns is easiest to scan.
    • Product data to upload into your online shop: JSON or CSV, for software. The shop imports a file, so CSV with the exact column headers it expects.
    • An opening up checklist for a new shop assistant: Table or checklist, for people. A person ticks it off. Short steps that start with a verb.
    • Customer records for a developer to load into a database: JSON or CSV, for software. Software reads it. JSON with fixed field names avoids hand cleaning.
    • A list of risks for a project kick off meeting: Table or checklist, for people. For discussion, so a readable table or list.
    • Invoice lines to import into your accounts package: JSON or CSV, for software. An import needs a fixed column order, so CSV with a header row.

See this lesson put to work: tidy a messy spreadsheet or turn scrappy meeting notes into actions, before and after.