Assemble a structured-output prompt
Assemble a structured-output prompt
A teammate needs the three supplier invoices on their desk turned into rows — vendor, invoice number, due date and amount — ready to paste into a budget spreadsheet.
Fill every field to assemble a prompt that asks for a clean table instead of prose. The preview shows exactly what you would send; then compare it with a strong example.
A strong example (self-assessment — not machine-graded)
Extract one row per supplier invoice from the three invoices below, into a markdown table with exactly these columns: Vendor | Invoice number | Due date | Amount. If a value is not present in an invoice, write 'not found' in that cell — never guess or calculate it. Output only the table, with no commentary before or after it. Invoices: [paste the three invoices]
Hint
A column list is a format; 'organized' is a hope.
What happens to a due date the invoice never mentions? Decide before the model does.
Why this is the answer
The assembled prompt names every column, defines the container (a table), writes in the missing-data rule and blocks the default behaviour — polite commentary wrapped around the data. One example row would make it even stronger: a filled row communicates the shape more precisely than any description can.