2. Fundamentals

Before diving into specific techniques, we need to understand what makes a prompt effective. Just as a cooking recipe needs well-measured ingredients and clear instructions, a good prompt requires certain fundamental elements.

Anatomy of a good prompt

An effective prompt generally contains these components:

1. Context

Provides the background information the AI needs to understand the situation. This can include who you are, what you are doing, or any relevant information that frames your request.

Example without context:

Write an email about the delay.

Example with context:

I'm the project manager at a software company. I need to write an email to inform the client that the launch of their mobile app will be delayed two weeks due to unforeseen technical issues.

2. Clear instruction

The specific task you want the AI to perform. It must be direct and unambiguous.

Vague:

Give me something about marketing.

Clear:

Create a list of 10 digital marketing strategies for small businesses with a limited budget.

3. Desired format

Specify how you want the information to be presented.

With format:

Explain 5 benefits of exercise to me. Each one with: [Title] [Explanation of 2-3 lines]

4. Constraints

Any limitation or requirement the response must meet.

Example:

Write a horror story for children aged 8-10. It should be exciting but not too scary. Avoid graphic violence. Maximum 300 words.

The principle of clarity

The golden rule of prompting is simple but powerful: if a human can't clearly understand what you're asking, neither will the AI.

Before sending an important prompt, run this test: hand it to a colleague with no additional context. If they can understand exactly what you need and how you need it, your prompt is well built. If they ask questions, get confused, or interpret something differently, you need to revise it.

Comparative examples

Let's see how to apply these fundamentals in practice:

Case 1: Data analysis

Weak prompt:

Analyze these numbers.

Strong prompt:

I'm a financial analyst at a tech startup. Below I provide our monthly revenue for the last quarter: January €45,000, February €52,000, March €48,000.

Please:

  1. Calculate the average monthly growth as a percentage.
  2. Identify trends or patterns.
  3. Provide three recommendations based on this data.

Present your analysis in an executive report format with clear sections.

Case 2: Content creation

Weak prompt:

Write about coffee.

Strong prompt:

Write an 800-1000 word blog article aimed at busy professionals who want to improve their morning coffee ritual.

The article should:

  • Have a conversational and friendly tone
  • Include 5 practical and actionable tips
  • Avoid technical jargon about roasting or specific varieties
  • End with a motivating conclusion

Structure: introduction (100 words), body with the 5 tips (each 120-150 words), conclusion (100 words).

Natural and direct language

One of the advantages of modern AIs is that they understand natural language. You don't need to talk like a robot or use complicated formulas. Write the way you would speak to a smart, collaborative colleague.

Too formal:

The elaboration of a textual document of an informative nature concerning the methodologies of temporal optimization in workplace contexts is hereby requested.

Natural and effective:

Write a practical guide on time management techniques at work.

Iteration and refinement

You will rarely get the perfect prompt on the first try, especially for complex tasks. Consider prompting an iterative process:

  1. First version: Write your initial prompt with the basic elements.
  2. Evaluate the result: Analyze whether the response meets your expectations.
  3. Identify gaps: What's missing? What's excessive? What was misinterpreted?
  4. Refine the prompt: Adjust the instructions based on what you learned.
  5. Repeat: Continue until you get consistent results.

This refinement process will teach you what works and what doesn't for your specific use cases.

The importance of details

Small details matter more than you think. AIs are sensitive to patterns, and the way you write influences their response:

  • Spelling and grammar: Careful writing tends to generate more precise responses.
  • Structure: A well-organized prompt makes it easier for the AI to identify each part.
  • Specificity: The more specific you are, the less room there is for interpretation.

Think of prompting as an investment: the time you spend building a good prompt multiplies into the quality of the response you get.

You now know the anatomy of an effective prompt: context, clear instructions, desired format, and constraints. These are the pillars on which you will build all your interactions with AIs.

But knowing the ingredients is not enough. Now we are going to apply the most important technique of all: clarity. In the next lesson you will learn to communicate your needs directly and without ambiguity, because most problems with AIs are born from confusing 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.