Cómo escribir un buen prompt: rol, tarea y formato
La IA responde según cómo le pides las cosas. Con tres partes sencillas, rol, tarea y formato, pasas de respuestas genéricas a respuestas que puedes usar.

Lolo te enseñaa pedirle bien las cosas a la IA
Un prompt es la instrucción que le escribes a una inteligencia artificial. Si la instrucción es vaga, la respuesta también lo será. La buena noticia es que escribir un buen prompt no es un secreto técnico: es explicar bien lo que necesitas, como lo harías con una persona nueva en tu equipo.
La fórmula: rol, tarea y formato
- Rol: quién quieres que sea la IA. «Eres un asesor de ventas de una ferretería.»
- Tarea: qué tiene que hacer, con los datos que necesita. «Responde a este cliente que pregunta por 20 puertas.»
- Formato: cómo quieres la respuesta. «En tres líneas, en tono amable y sin dar precios.»
Antes y después
Prompt vago
- «Escribe un mensaje para un cliente.»
- La IA no sabe quién eres ni qué vendes.
- Resultado: un texto genérico que tienes que rehacer.
Prompt claro
- «Eres asesor de una ferretería. Responde a un cliente que pide cotizar 20 puertas. Tres líneas, tono amable, sin precios.»
- La IA tiene rol, tarea y formato.
- Resultado: un mensaje que casi puedes enviar.
Tres mejoras rápidas
- Da contexto. A quién le hablas, qué vendes y qué ya pasó en la conversación.
- Pon un ejemplo. Si tienes un mensaje que te gusta, pégalo y pide «algo en este estilo».
- Pide que pregunte. Agrega: «Si te falta información, pregúntame antes de responder.»
Del prompt al código
En un producto, el prompt no se escribe a mano cada vez: se guarda en el código y se llena con los datos de cada caso. El programa envía el prompt a la IA, recibe la respuesta y decide qué hacer con ella. Por eso un buen prompt también es parte de la ingeniería.
En Te explico cómo funciona hay un nivel donde escribes tu propio prompt, lo guardas en una variable y lo envías desde el código. Si te atoras, puedes pedirle una pista a la IA.
Revisa siempre la respuesta
La IA puede equivocarse o inventar datos. Antes de enviar algo a un cliente, léelo. En los sistemas que construimos, las respuestas importantes pasan por reglas, pruebas y la aprobación de una persona.
En resumen
Dile a la IA quién es, qué necesitas y cómo lo quieres. Un prompt claro ahorra más tiempo que diez intentos vagos.
A prompt is the instruction you write to an artificial intelligence. If the instruction is vague, the answer will be too. The good news is that writing a good prompt isn't a technical secret: it's explaining what you need clearly, the way you would to someone new on your team.
The formula: role, task and format
- Role: who you want the AI to be. "You are a sales advisor at a hardware store."
- Task: what it has to do, with the data it needs. "Reply to this customer asking about 20 doors."
- Format: how you want the answer. "In three lines, in a friendly tone, without giving prices."
Before and after
Vague prompt
- "Write a message for a customer."
- The AI doesn't know who you are or what you sell.
- Result: generic text you have to redo.
Clear prompt
- "You are an advisor at a hardware store. Reply to a customer asking for a quote on 20 doors. Three lines, friendly tone, no prices."
- The AI has a role, a task and a format.
- Result: a message you can almost send.
Three quick improvements
- Give context. Who you're talking to, what you sell and what already happened in the conversation.
- Include an example. If you have a message you like, paste it and ask for "something in this style."
- Ask it to ask. Add: "If you're missing information, ask me before answering."
From prompt to code
In a product, the prompt isn't typed by hand every time: it's stored in the code and filled in with the data for each case. The program sends the prompt to the AI, receives the answer and decides what to do with it. That's why a good prompt is also part of the engineering.
In Let me explain how it works there's a level where you write your own prompt, store it in a variable and send it from code. If you get stuck, you can ask the AI for a hint.
Always review the answer
AI can make mistakes or make up facts. Before sending anything to a customer, read it. In the systems we build, important replies go through rules, tests and a person's approval.
In short
Tell the AI who it is, what you need and how you want it. One clear prompt saves more time than ten vague attempts.
¿Tienes una idea o un negocio que quieres hacer crecer?
Cuéntanos qué quieres resolver. Te respondemos en español o en inglés.




