TutorialesTutorials · PrincipianteBeginner
Cómo escribir prompts efectivos para inteligencia artificialHow to write effective prompts for artificial intelligence
Aprende a escribir prompts efectivos para inteligencia artificial con estas cuatro claves: contexto, formato, rol e iteración. Guía práctica para principiantes.Learn how to write effective prompts for artificial intelligence with these four keys: context, format, role and iteration. A practical beginner's guide.
- Claude
- ChatGPT
En este tutorial vas a aprender a escribir prompts efectivos para inteligencia artificial: los mensajes de texto que envías a herramientas como Claude o ChatGPT para pedirles algo. Un prompt bien escrito puede marcar la diferencia entre una respuesta genérica y una respuesta realmente útil.
Toca cada paso para abrirlo y seguirlo.
In this tutorial you’ll learn how to write effective prompts for artificial intelligence: the text messages you send to tools like Claude or ChatGPT to ask for something. A well-written prompt can make the difference between a generic response and a truly useful one.
Tap each step to open and follow it.
Antes de empezar: solo necesitas una cuenta gratuita en Claude (claude.ai) o ChatGPT (chatgpt.com). No hace falta pagar nada para practicar las técnicas de esta guía.Before you start: you only need a free account on Claude (claude.ai) or ChatGPT (chatgpt.com). No payment needed to practice the techniques in this guide.
1 Sé específico: di exactamente qué quieresBe specific: say exactly what you want
El error más común al escribir prompts para IA es ser demasiado vago. Cuanto más concreto seas, mejor será la respuesta.
Compara estos dos prompts:
| Vago | Específico |
|---|---|
| ”Escríbeme algo sobre marketing" | "Escribe 3 ideas de publicaciones para Instagram sobre zapatos deportivos, dirigidas a mujeres de 25 a 35 años. Tono cercano y motivador. Máximo 150 palabras cada una.” |
El segundo prompt dice exactamente qué canal, qué producto, qué audiencia, qué tono y qué longitud. La IA no tiene que adivinar nada.
Cómo aplicarlo:
- Antes de escribir, pregúntate: ¿qué quiero exactamente al final?
- Incluye detalles concretos: cantidad, longitud, canal, audiencia.
- Evita palabras como “algo”, “un poco” o “más o menos”.
The most common mistake when writing AI prompts is being too vague. The more specific you are, the better the response.
Compare these two prompts:
| Vague | Specific |
|---|---|
| ”Write something about marketing" | "Write 3 Instagram post ideas about sports shoes, targeting women aged 25–35. Friendly, motivating tone. Maximum 150 words each.” |
The second prompt says exactly which channel, which product, which audience, what tone and what length. The AI has nothing to guess.
How to apply it:
- Before writing, ask yourself: what exactly do I want at the end?
- Include concrete details: quantity, length, channel, audience.
- Avoid words like “something”, “a bit” or “more or less”.
2 Agrega contexto: quién eres y para qué sirveAdd context: who you are and what it's for
La IA no sabe nada de ti a menos que se lo cuentes. Dar contexto le ayuda a ajustar el nivel, el tono y la relevancia de la respuesta.
Ejemplos de contexto útil:
- Tu perfil: “Soy profesora de secundaria que prepara clases de biología.”
- El destinatario: “Lo necesito para explicárselo a personas mayores sin experiencia con tecnología.”
- El uso final: “Lo voy a publicar en el blog de mi negocio de repostería.”
Cómo aplicarlo:
- Empieza el prompt con una frase de contexto breve: quién eres o para qué es.
- Menciona al destinatario si no eres tú quien va a leer la respuesta.
- Si tienes material propio (texto, datos), pégalo directamente en el prompt.
The AI knows nothing about you unless you tell it. Adding context helps it adjust the level, tone and relevance of the response.
Examples of useful context:
- Your profile: “I’m a high school teacher preparing biology classes.”
- The audience: “I need to explain this to older adults with no tech experience.”
- The final use: “I’m going to post this on my bakery business blog.”
How to apply it:
- Start the prompt with a brief context sentence: who you are or what it’s for.
- Mention the audience if you’re not the one reading the response.
- If you have your own material (text, data), paste it directly into the prompt.
3 Define el formato de la respuestaDefine the response format
Si no indicas cómo quieres la respuesta, la IA elige por ti. A veces acierta, a veces no. Especificar el formato ahorra tiempo de edición.
Formatos que puedes pedir:
- Lista con viñetas o numerada
- Tabla con columnas específicas
- Párrafos cortos (máximo X palabras)
- Paso a paso numerado
- Correo con asunto y cuerpo
- Código con comentarios
- Título, resumen y cuerpo separados
Ejemplo:
“Resume en 5 viñetas los puntos clave de este artículo. Cada viñeta debe tener máximo 20 palabras.”
Cómo aplicarlo:
- Al final del prompt, agrega una línea que empiece con “Formato:” o “Devuélveme esto como:”.
- Si quieres que la IA no añada explicaciones innecesarias, dile: “Solo dame el resultado, sin introducción.”
If you don’t specify how you want the response, the AI chooses for you. Sometimes it guesses right, sometimes not. Specifying the format saves editing time.
Formats you can request:
- Bulleted or numbered list
- Table with specific columns
- Short paragraphs (max X words)
- Numbered step-by-step
- Email with subject and body
- Code with comments
- Title, summary and body separately
Example:
“Summarize the key points of this article in 5 bullet points. Each bullet must be maximum 20 words.”
How to apply it:
- At the end of the prompt, add a line starting with “Format:” or “Give me this as:”.
- If you don’t want the AI to add unnecessary explanations, say: “Just give me the result, no introduction.”
4 Asigna un rol a la IAAssign a role to the AI
Decirle a la IA qué papel debe jugar cambia el vocabulario, el tono y el enfoque de la respuesta. Este truco es uno de los más eficaces.
Cómo funciona:
Empieza el prompt con una frase del tipo:
- “Actúa como un diseñador gráfico con 10 años de experiencia en branding.”
- “Eres un profesor de matemáticas que explica conceptos a estudiantes de 12 años.”
- “Eres un copywriter especialista en ventas por correo electrónico.”
Ejemplo completo:
“Eres un nutricionista que habla con pacientes sin formación médica. Explícame de forma sencilla por qué el sueño afecta el peso. Máximo 150 palabras.”
El rol guía a la IA sobre qué conocimientos aplicar y cómo comunicarlos.
Si construyes con IA y quieres profundizar en cómo estructurar prompts para proyectos más complejos, revisa el tutorial Prompts para construir con Claude Code.
Telling the AI what role to play changes the vocabulary, tone and focus of the response. This trick is one of the most effective.
How it works:
Start the prompt with a phrase like:
- “Act as a graphic designer with 10 years of branding experience.”
- “You are a math teacher explaining concepts to 12-year-old students.”
- “You are a copywriter specializing in email sales.”
Full example:
“You are a nutritionist speaking with patients who have no medical background. Explain simply why sleep affects weight. Maximum 150 words.”
The role guides the AI on what knowledge to apply and how to communicate it.
If you build with AI and want to go deeper into structuring prompts for more complex projects, check out the tutorial Prompts for building with Claude Code.
5 Itera: ajusta el prompt hasta afinarIterate: refine the prompt until it's right
El primer prompt que escribes es un borrador. Los mejores resultados llegan cuando lo afinas con el feedback de la IA.
Formas de iterar:
- Si la respuesta es demasiado larga: “Acórtalo a la mitad sin perder la idea principal.”
- Si el tono no es el que querías: “Hazlo más informal, como si hablaras con un amigo.”
- Si faltó algo: “Agrega una sección sobre precios antes del cierre.”
- Si quieres opciones: “Dame 3 versiones distintas de este párrafo.”
- Si no entendiste el resultado: “Explícame paso a paso cómo llegaste a esa conclusión.”
La iteración no es un signo de que lo hiciste mal: es la forma en que los mejores usuarios de IA trabajan. Trata cada conversación como un borrador colaborativo.
Para ver cómo se aplica esto en la práctica al construir proyectos reales, el tutorial Vibe coding muestra el ciclo prompt, revisa y ajusta en acción.
The first prompt you write is a draft. The best results come when you refine it with the AI’s feedback.
Ways to iterate:
- If the response is too long: “Shorten it by half without losing the main idea.”
- If the tone wasn’t what you wanted: “Make it more casual, like talking to a friend.”
- If something was missing: “Add a section about pricing before the closing.”
- If you want options: “Give me 3 different versions of this paragraph.”
- If you didn’t understand the result: “Explain step by step how you reached that conclusion.”
Iteration isn’t a sign you did it wrong: it’s how the best AI users work. Treat every conversation as a collaborative draft.
To see how this applies in practice when building real projects, the Vibe coding tutorial shows the prompt, review and adjust cycle in action.
Atajo: la fórmula de 4 partesShortcut: the 4-part formula
Cuando no sabes por dónde empezar, usa esta fórmula. Solo rellena los huecos:
[ROL] + [CONTEXTO] + [QUÉ QUIERO] + [FORMATO]
Ejemplo:
“Eres un redactor de redes sociales. Trabajo en una pequeña tienda de ropa en línea y quiero atraer a mujeres jóvenes. Escríbeme 5 ideas de publicaciones para Instagram. Devuélvemelas en una lista numerada, con el texto de cada publicación listo para copiar y pegar.”
No tienes que usar las 4 partes siempre. Para tareas simples, con ser específico (paso 1) basta. La fórmula completa es para cuando el resultado importa mucho o la tarea es compleja.
When you don’t know where to start, use this formula. Just fill in the blanks:
[ROLE] + [CONTEXT] + [WHAT I WANT] + [FORMAT]
Example:
“You are a social media copywriter. I run a small online clothing store and want to attract young women. Write me 5 Instagram post ideas. Give them to me in a numbered list, with each post’s text ready to copy and paste.”
You don’t have to use all 4 parts every time. For simple tasks, being specific (step 1) is enough. The full formula is for when the result really matters or the task is complex.
Si algo sale malIf something goes wrong
| Problema | Qué hacer |
|---|---|
| La respuesta es demasiado genérica | Agrega más contexto y especifica la audiencia y el canal |
| La IA se va por las ramas | Añade al final: “Sé conciso. Máximo X palabras.” |
| La IA se niega o da una respuesta rara | Reformula sin palabras que puedan parecer sensibles; da más contexto sobre el uso legítimo |
| El formato no es el que pedí | Especifica el formato al final del prompt con un ejemplo de cómo lo quieres |
| Cada vez me da respuestas distintas | Es normal: la IA es creativa por diseño. Si necesitas consistencia, añade “Sigue exactamente este formato:” y pon un ejemplo |
| Problem | What to do |
|---|---|
| The response is too generic | Add more context and specify the audience and channel |
| The AI goes off-topic | Add at the end: “Be concise. Maximum X words.” |
| The AI refuses or gives a strange response | Rephrase without words that may seem sensitive; add more context about the legitimate use |
| The format isn’t what I asked for | Specify the format at the end of the prompt with an example of how you want it |
| I keep getting different responses each time | This is normal: the AI is creative by design. If you need consistency, add “Follow exactly this format:” and provide an example |
Preguntas frecuentesFrequently asked questions
¿Qué es un prompt exactamente?What exactly is a prompt?
Un prompt es el mensaje de texto que le escribes a una IA para pedirle algo. Puede ser tan corto como una pregunta o tan detallado como un párrafo con contexto, formato y ejemplos.
A prompt is the text message you write to an AI to ask it something. It can be as short as a question or as detailed as a paragraph with context, format and examples.
¿Hay una fórmula para escribir prompts?Is there a formula for writing prompts?
No hay una sola fórmula, pero el marco Persona, Contexto, Resultado y Formato es un buen punto de partida. Lo más importante es ser específico sobre lo que quieres.
There's no single formula, but the Persona, Context, Result and Format framework is a solid starting point. The most important thing is being specific about what you want.
¿Los prompts en inglés dan mejores resultados?Do English prompts give better results?
Claude y ChatGPT funcionan muy bien en español. Puedes escribir en el idioma en que necesitas la respuesta sin perder calidad.
Claude and ChatGPT work very well in Spanish. You can write in the language you need the answer in without losing quality.
¿Cuánto texto necesita un buen prompt?How long should a good prompt be?
Para tareas simples, una o dos frases claras bastan. Para proyectos complejos, un párrafo con contexto, rol y formato esperado da mejores resultados. La clave es la claridad, no la longitud.
For simple tasks, one or two clear sentences are enough. For complex projects, a paragraph with context, role and expected format gives better results. Clarity is the key, not length.
¿Los prompts funcionan igual en Claude y en ChatGPT?Do prompts work the same in Claude and ChatGPT?
Las técnicas son las mismas, aunque cada modelo tiene su carácter: Claude tiende a respuestas más reflexivas, ChatGPT suele ser más directo. El mismo prompt puede producir resultados distintos en cada uno.
The techniques are the same, though each model has its own character: Claude tends toward more thoughtful responses, ChatGPT is usually more direct. The same prompt can produce different results in each.