Skip to content
Text prompts

How to Ask for the Format of an Answer: List, Table, Steps

How to ask an AI for a list, table, steps or JSON: the five parts of a format request, when to use each form, and how to avoid made-up data.

Rodrigo Faustino ·

Call number
TXT-003
Level
Beginner
Reading
11 min
Published
Labs
Prompt anatomy, Quiz

You ask for a comparison of two laptops and get five long paragraphs. You wanted a table you could take in at a glance. Or the opposite: you asked for an explanation and got a bulleted list with no connection between the items. The content was right. The shape was wrong. This book shows how to ask for the shape of an answer as clearly as you ask for the subject.

The central point is simple. If you don’t name a format, the model picks one on its own, and it tends to pick whatever looks common for that kind of request. That may or may not suit you. Naming the format costs one line and saves the three rounds of “now redo it as a table.”

Why shape matters

Shape changes what you can do with the answer. You can scan a bulleted list in ten seconds. A table lets you compare without holding everything in your head. A numbered sequence can be followed with your hands full. Running text pastes into an email. JSON feeds a program. The same content in different shapes serves different uses.

Four cards with the same message, a Monday meeting, written four ways. Bulleted list: meeting Monday at 10 a.m., bring the sales report, room 3, and if you can't come, tell Ana. Numbered steps: open the sales report, review page 2, be in room 3 at 10 a.m. on Monday. Table with one field per row: when, Monday at 10 a.m.; where, room 3; bring, sales report; absent, tell Ana. Running text: one sentence saying that on Monday at 10 a.m. in room 3 we will review the sales report, and anyone who can't make it should tell Ana. At the bottom: a list is for scanning, steps are for doing, a table is for comparing, and running text is for sending to someone
The same message in four shapes. Each one serves a different use.

There is also an effect on quality, and it’s worth being honest about it. Asking for a table with defined columns forces the answer to fill in fields you chose, and that often makes it easier to see what’s missing. But nothing guarantees the table is right: a filled-in field is not a checked field.

The most useful shapes

Bulleted list. Good for reviewing loose ideas, listing options or summarizing. Ask for the number of items and a maximum length for each, or the list turns into a paragraph chopped into pieces.

Numbered list, or steps. Good when order matters: a procedure, a recipe, an installation. Ask for “a verb at the start of each step” so the steps can be carried out.

Table. Good for comparing. Ask for the columns and the order of the rows. Usually the options go in the columns and the criteria in the rows, or the reverse, whichever fits the screen better.

Running text, with tone and length. Good for sending to someone. Ask for a word limit and a tone, and say if you don’t want lists inside the text.

Conclusion first. Good for deciding. Ask for the recommendation in one sentence and the reasons after it, so you read the essentials and choose how much detail you want.

Format for a program (JSON, CSV). Good when the answer is going into a spreadsheet or a system. It is the most demanding, and it has its own section below.

Choose by task

Before you write the request, ask yourself what you will do with the answer. The table below links each task to a shape and gives a ready-made phrase you can adapt.

Table with six rows and three columns: task, format and how to ask. Compare three options: table with one option per column, and the request is to build a table with the criteria in the rows and the three options in the columns. Follow a recipe or a procedure: numbered list, in numbered steps, one verb per step. Quickly review a subject: short bullets, five bullets of up to 12 words each. Send to someone: running text in the right tone, an email of up to 120 words, direct and friendly, no list. Pass to another program: JSON or CSV, only the data, answering with only the JSON, no text before or after. Decide between paths: conclusion first and then the reasons, starting with the recommendation in one sentence and giving three reasons
From task to shape, with a ready-made phrase for each case.

The five parts of a format request

“Make a table” is a start, and it leaves a lot open: how many columns, which ones, in what order, how long the cells should be, what to do when data is missing. A complete format request has five parts.

Five numbered cards with one example each. 1, the form: table format. 2, the fields: columns day of the week, time, topic and time in minutes. 3, the order: sort by day of the week, from Monday to Saturday. 4, the length: at most 6 rows and up to 8 words per cell. 5, the fallback: if information is missing, write to be confirmed in the cell instead of making it up. At the bottom: the fifth part protects against a common flaw, the model filling a gap with an invented fact so the table looks neat
The five parts of a format request, with an example of each.

The fifth part deserves attention. A model tends to deliver what was asked, and if you asked for a table with every cell filled in, it may fill the cells it didn’t know with something plausible. Saying what to do when information is missing (“write ‘to be confirmed’”) swaps an invented fact for an honest flag. It’s the same idea as in the book When AI Makes Things Up: How to Check an Answer: give the model a way out instead of forcing it to answer.

Build your own in the lab

The lab below shows a request for a study schedule, with the format part highlighted. Turn the parts on and off and see what’s left of the request without them.

LabBuild your prompt: study scheduleTry it

Assembled prompt

RoleYou are a study coach for adults who have gone back to school.ContextI have 6 free hours a week, Monday through Saturday, and a financial math exam in 5 weeks.TaskBuild my study schedule for next week.FormatFormat: a table with the columns day of the week, time, topic and duration in minutes, sorted from Monday to Saturday.LimitsAt most 6 rows and 8 words per cell. If information is missing, write "to be confirmed" instead of making it up.
  • Role The point of view the AI answers from.
  • Context What you know and the AI doesn't: audience, reason, situation.
  • Task The request itself, with a clear verb.
  • Format How the answer should arrive: list, table, email...
  • Limits Length, what to avoid, and what is required.
Open this lab on its own page →
What to notice: Turn off the format part and read what's left: the request is still clear, but it leaves the shape of the answer up to the model. Then turn on only the format and the limits and notice that, on their own, they don't tell the person what they need.

The example puts the format and the limits together, which is a good practice: the format says the shape, and the limits say the length and what to avoid. If you have already read the book How to Structure a Text Prompt, you’ll recognize the five parts of the request, and this book goes deeper into one of them.

Tables in chat: what to do with them

Many assistants draw the table right on the screen, and some return the table as text with vertical bars, in a format called Markdown. Either way, you can copy it and paste it into a spreadsheet, which is the most common use. A few practical tips:

  • Ask for the columns by the exact names you want in the spreadsheet, so you don’t have to rename them.
  • Ask for short cells. Long text inside a cell is hard to read, both in the chat and in the spreadsheet.
  • If the table is going into a spreadsheet, ask for numeric values without a currency symbol and without thousands separators, or say which format the spreadsheet accepts.
  • Ask for one table at a time. Two tables in the same answer tend to blur together.

Format for a program: ask for only the data

When the answer is going to another program, any extra text gets in the way. A “Sure! Here’s the data:” before the JSON makes the program fail when it reads it. The two most useful instructions here are to ask for “only” the format and to show a template of the format.

Two cards side by side. On the left, a loose request: extract the name and amount from the receipt, and the answer starts with Sure, here is the data, followed by the JSON and a closing sentence offering more help. On the right, a request with a lock: extract name and amount, answer with only JSON in the format name as text and amount as number, no text before or after, and the answer is just the JSON with name Ana and amount 120.5. At the bottom: even with the lock, check the answer with a program that reads JSON, because the model can get a comma or a quotation mark wrong
A loose request and a request with a lock. Only the one on the right can go straight into a program.

A few cautions. The lock helps, but it doesn’t guarantee anything: the model can get a comma wrong, forget a quotation mark or swap a field name. That is why anyone using this in a real system checks the answer with a program that reads the format, and treats a reading error as a normal case. Developer tools often offer their own features for guaranteeing the output format, and each tool’s documentation explains what’s available. For everyday use, the rule is simple: ask for only the data, show the template of the format and check.

OpenAI’s prompting guide has examples along these lines: instructions that ask for a single word with no comment, or only the requested code with no Markdown. It’s the same principle, applied to small tasks.

Think before you read the answer

You’re choosing among three cell phone plans and want to decide today. What format should you ask for, and which part of the request prevents an invented fact?

Answer: a table with the criteria in the rows (monthly price, data allowance, contract, whatever matters most to you) and the three plans in the columns, plus a final sentence with the recommendation. The part that prevents an invented fact is the fallback: “if you don’t know a value, write ‘check on the carrier’s website.’” Prices and terms change, and a model with no access to the official page can get them wrong. Check the values on the websites before you decide.

Test what you learned

Six questions about choosing and asking for the shape of the answer.

LabQuiz: the format of the answerTry it

Do you know how to ask for the shape of an answer?

  1. Question 1 of 6

    You want to compare three internet plans at once. Which format should you ask for?

    • Five paragraphs of running text
    • A table with the criteria in the rows and the plans in the columns
    • A numbered list of steps
    • Just a JSON
    Show answer

    Right answer: B. Comparing is the table's typical task: aligned criteria let you see the differences without holding everything in your head.

  2. Question 2 of 6

    Which of these is the part of a format request that prevents an invented fact in a table?

    • The maximum size of the cells
    • The order of the rows
    • The fallback: writing "to be confirmed" when information is missing
    • The name of the table
    Show answer

    Right answer: C. Without a way out for missing data, the model tends to fill the cell with something plausible. The fallback swaps the invented fact for a flag.

  3. Question 3 of 6

    The answer goes straight into a program that reads JSON. Which request is safest?

    • Extract the data and tell me what you think.
    • Extract the data as JSON and then comment on it.
    • Answer with only JSON in the format {"name": text, "amount": number}, with no text before or after.
    • Extract the data however you prefer.
    Show answer

    Right answer: C. Asking for only the data and showing the template of the format avoids the introductory text that breaks the reading. Even so, you should validate the JSON before using it.

  4. Question 4 of 6

    Why can "give exactly five reasons" be a bad request?

    • Because the model can't count to five
    • Because it can force the model to invent a fifth reason if only four good ones exist
    • Because five is a forbidden number in prompts
    • Because numbered lists don't work
    Show answer

    Right answer: B. A fixed number of items can lead to a filler item. "Up to five" lets the model stop when the good reasons run out.

  5. Question 5 of 6

    When does running text usually serve better than a table?

    • To explain an argument with "because" and "but" linking the ideas
    • To compare ten products on five criteria
    • To paste values into a spreadsheet
    • To pass data to another program
    Show answer

    Right answer: A. Arguments lose their connections when chopped into cells. A table is for comparing, and running text is for explaining.

  6. Question 6 of 6

    The AI returned a neatly organized table with every field filled in. What does that guarantee?

    • That the numbers are correct
    • That the model checked the sources
    • Nothing about correctness: the shape organizes the answer, and checking is still up to you
    • That there is no invented data
    Show answer

    Right answer: C. Format and correctness are separate things. A clean table makes checking easier, but it doesn't replace checking.

Open this lab on its own page →
What to notice: If you missed the JSON question, reread the section on format for a program. If you missed the fallback question, go back to the five parts of the request.

Common mistakes and cautions

Asking for a “table” without naming the columns. The model picks columns it considers typical, and they may not be the ones you need. Name them.

Forgetting the length. Without a limit, the cells turn into paragraphs and the list turns into an essay. Ask for a word cap.

Forcing a table onto a long line of reasoning. Arguments with “because” and “but” lose their connections when chopped into cells. To explain, prefer running text, and use the table to compare.

Forcing a fixed number of items. “Give exactly five reasons” can lead the model to invent the fifth. Prefer “up to five.”

Not asking for the fallback. Without the “to be confirmed” way out, the gap becomes an invented fact.

Using the result in a program without checking. A neat-looking JSON can be broken. Validate it before you use it.

Thinking the format fixes the content. A tidy table can still contain wrong numbers. The shape helps you check, but it doesn’t replace checking.

Keep going

References

  1. OpenAI. Prompt engineering, Examples that fix the format by instruction (answer with a single word, return only the code) and the use of Markdown and XML to mark the parts of a request. Consultado em Nov 28, 2026.
  2. Anthropic. Prompt engineering overview, List of prompting techniques (clarity, examples, structure with XML, role, thinking in steps, chaining requests) and the advice to define success criteria and test. Consultado em Nov 28, 2026.

On the same shelf2 books