Structured output: Structured output is an AI model's answer returned in a fixed, machine-readable format such as JSON or a table with defined fields, rather than free-form prose, so other software can use the result directly without a person re-typing it.
A paragraph that says 'the invoice is from Acme for $4,200, due March 3' is fine for a human and useless for a spreadsheet. Structured output asks the model to return the same information as named fields: vendor, amount, due date. Once the answer has a predictable shape, an automation can drop it into a database, a CRM record, or the next step of a workflow with no human in between.
In a chat tool, you get this by describing the format: 'Return a table with these columns' or 'Respond only with JSON using the keys vendor, amount, and due_date.' Through an API, most major vendors now offer a structured-output or JSON mode where you supply a schema and the model is constrained to match it exactly, which removes the occasional stray sentence or missing field that plain prompting produces. Automation tools like Zapier, Make, and n8n rely on this to pass AI results between steps.
Structure guarantees shape, not truth. A model can return a perfectly formatted record with the wrong amount in it. For anything that feeds a financial or customer-facing system, add validation: check that required fields are present, that numbers fall within plausible ranges, and that low-confidence items get routed to a person.
Example at work
A bookkeeper receives supplier invoices as PDFs by email. An automation sends each one to a model with instructions to return JSON containing vendor, invoice number, line items, tax, and total. The output flows into the accounting system as a draft bill. She approves each draft after a glance, and any invoice where the line items do not add up to the total is flagged for her to open by hand.
Why it matters
Structured output is the bridge between 'AI can read this' and 'AI can do something with it.' It is the foundation of nearly every practical automation, and understanding it helps you design workflows that are reliable rather than merely impressive in a demo.
Related terms
- Workflow automationWorkflow automation connects apps and steps so that a trigger, such as a new form response or an incoming email, automatically runs a sequence of actions, increasingly with an AI step that reads, decides, or writes along the way.
- API (application programming interface)An API (application programming interface) is a way for one piece of software to talk to another. An AI API lets your own tools, spreadsheets, or automations send a prompt to a model and receive the response, without a person typing in a chat window.
- Tool useTool use (also called function calling) is the ability of an AI model to request that an outside tool be run, such as a web search, a calculator, a database query, or a calendar lookup, and then use the result in its answer.
- Intelligent document processing (IDP)Intelligent document processing (IDP) uses OCR, machine learning, and language models to pull structured data out of documents such as invoices, contracts, and claims, validate it, and feed it into business systems, with humans reviewing the exceptions.
- PromptA prompt is the text (and sometimes files or images) you give an AI model to tell it what you want. A good prompt states the role the AI should play, the task, the relevant context, the output format, and any constraints.