Learn AI. Do. Grow.
← All modules

Deep dive · module 48 of 100

Enforcing output format

Request a fixed format such as a table, checklist, or JSON.

After this lesson

You get output that you can copy directly or process further.

In view · Along the same yardstick

A result with fixed sections

  1. Request, for example, a table, checklist or small JSON object.

  2. Describe mandatory fields and what should happen with missing information.

  3. Check whether the format is usable and the values are correct.

Remember: A valid format does not automatically make the content correct. Open het volledige schema ↗

Be explicit

Say exactly which format you want: table, numbered list, checklist.

Provide the structure

For example: “Provide the answer as a table with columns A, B, and C.”

Check

Check if the format is correct before using it further.

New practice example

From explanation to a usable result.

A fixed format helps with processing. It does not guarantee that the content of the fields is correct.

Fictional practice situation

Fictitious note: “Noor is making the poster.” There is no deadline. You want a table with task, owner and deadline.

View a possible solution

This is how it can be done

Task: making poster. Owner: Noor. Deadline: TBD. With JSON, you can agree in advance that a missing deadline becomes null instead of a made-up date.

Why this works

A neatly formatted table or valid JSON can still contain incorrect information. Substantive validation remains necessary.

Make it slightly more difficult

Add a second action without an owner and describe how to unambiguously record both a missing owner and deadline.

Extra practice, at your own pace. You do not need to submit anything. This does not count towards an automatic assessment.

Your workplace · learning by doing

Make something. See what changes.

Ende, your light pink practice buddy

The fictitious source is included. Only when selecting ‘Let Ende answer’ do you send your assignment to the AI service. Do not use private data.

Checking the AI connection… You can already view the written example.

Your result

No answer yet

Present your assignment to Ende.
Read the answer, change one thing, and compare.

You remain in control

What do you want to improve in your next attempt?

My own check

On this device only. AI answers remain only in this page memory. This is self-review, not a grade.

Why this approach works

A neatly formatted table or valid JSON can still contain incorrect information. Substantive validation remains necessary.

A step further

Add a second action without an owner and describe how to unambiguously record both a missing owner and deadline.

Try & discover · no obligation

Build a prompt and compare the versions

Switch off context and boundaries. Which instructions disappear from your task?

Choose the building blocks
1 of 4 building blocks. This compares instructions; no AI answer is created.

Vague start

Write a customer email.

Your constructed prompt

Write a friendly customer email about changed opening hours.

Not yet explicitly provided: context and source facts, format and target audience, boundaries and control.

This trial works locally with fictitious data and does not count towards your lesson completion. It starts anew with a new lesson or reload.

A prompt to get you started

Provide the answer as a numbered checklist of maximum 5 points. Each point must start with a verb. Subject: [subject].

Apply it

A follow-up system expects JSON with title and status. The model returns JSON plus an explanatory paragraph.

Which approach best fits this situation?

  • Validate the format and have invalid output corrected or rejected.
  • Send the invalid output to the follow-up system anyway.
  • Assume that only the instruction answer in JSON is sufficient.

With JavaScript, you can check your approach and receive immediate feedback.

Test your insight

Why is a fixed output format useful?

  • It looks better.
  • You can use the result immediately or process it further.
  • AI will no longer make mistakes.
Extra practice

Write a prompt that enforces a fixed format. Choose table, checklist, or numbered list.

“Provide the result as a table with columns: risk, impact, measure.”

A question? I'll help you on your way.

Drag Aldo to move it. Use the arrow keys on Aldo with the keyboard, Enter to save the position and Escape to cancel.