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 ·
- Shelf
- Text prompts
- 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.
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.
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.
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.
Assembled prompt
- 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.
The lab could not load. The summary above still applies.
Open this lab on its own page →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.
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.
Do you know how to ask for the shape of an answer?
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.
Comparing is the table's typical task: aligned criteria let you see the differences without holding everything in your head.
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.
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.
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.
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.
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.
A fixed number of items can lead to a filler item. "Up to five" lets the model stop when the good reasons run out.
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.
Arguments lose their connections when chopped into cells. A table is for comparing, and running text is for explaining.
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.
Format and correctness are separate things. A clean table makes checking easier, but it doesn't replace checking.
The lab could not load. The summary above still applies.
Open this lab on its own page →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
- How to Structure a Text Prompt
- Giving AI a Role: When It Helps and When It Hurts
- Showing Examples in the Prompt: The Few-Shot Technique
References
- 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.
- 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.