8. Formatting outputs

Getting information in the exact format you need makes responses more useful and actionable.

Why format matters

A good format makes reading easier, lets you extract information quickly, and improves consistency.

Specify the desired format

Generic:

Give me information about the benefits of exercise.

With a specific format:

Give me 5 benefits of exercise. Present each one with this format:

[Benefit title] [Explanation of 2-3 lines]

Common useful formats

Tables:

Compare Python, JavaScript, and Java in a table with these columns: Language, Main uses, Difficulty (1-5), Popularity.

Sections with headings:

Write a market analysis with these sections:

  1. Executive summary (100 words maximum)
  2. Key opportunities (5 points)
  3. Main risks (3 points)
  4. Final recommendation (50 words)

Question-and-answer format:

Create a FAQ about climate change. 5 questions with their answers.

Format: Q: [Question] A: [Answer in 2-3 sentences]

Using tags to extract information

Analyze this business proposal:

<viability> [Your assessment: high, medium, or low] </viability>

<risks> [List of main risks] </risks>

<recommendation> [Approve, reject, or request more information] </recommendation>

Specific length

Write a professional bio for LinkedIn:

  • Exactly 3 paragraphs
  • First paragraph: 2-3 sentences about current experience
  • Second paragraph: 3-4 sentences about key achievements
  • Third paragraph: 1-2 sentences about professional passions
  • Total length: 120-150 words

Specifying the exact format you need turns useful responses into actionable ones. Tables, structured lists, specific lengths, and XML tags to extract information make your subsequent work easier.

You have learned all the fundamental techniques of effective prompting. But even mastering these tools, it is easy to fall into common traps that sabotage your results. In the next lesson you will discover the most frequent mistakes and how to avoid them to keep consistency in your prompts.

This work is under a Attribution-NonCommercial-NoDerivatives 4.0 International license.

Desafíos de programación atemporales y multiparadigmáticos

Desafíos de programación atemporales y multiparadigmáticos

Te encuentras ante un librillo de actividades, divididas en 2 niveles de dificultad. Te enfrentarás a los casos más comunes que te puedes encontrar en pruebas técnicas o aprender conceptos elementales de programación.

Buy the book

Will you buy me a coffee?

This is how I keep writing without ads or paywalls.

Comments

There are no comments yet.