🇪🇸 Español 🇬🇧 English 🇧🇷 Português
Guides

What Is a Prompt and How to Write a Good One (Step by Step)

A prompt is the instruction you give an AI. Learn what it is, what makes it good, and a practical formula for writing prompts that actually work.

July 11, 2026

The difference between a generic AI answer and one that actually solves your problem almost always comes down to how you asked. That "how you asked" is the prompt. In this guide you'll learn what a prompt is, what separates a mediocre one from an excellent one, and a formula you can apply today — whether you're typing into an AI chat or configuring an agent for your business.

What a prompt is

A prompt is the instruction or message you give an AI model so it generates a response. It can be a simple question ("summarize this text") or a detailed set of instructions defining the role, tone, format, and rules the AI should follow.

In practical terms, the prompt is your interface with the model: you don't program with code, you program with language. The clearer and more specific you are, the more predictable and useful the result.

Why a good prompt changes everything

Language models don't guess your intent — they react to what you write. A vague prompt produces vague answers. A well-built prompt:

  • Reduces generic or irrelevant responses.
  • Prevents the AI from making things up by setting clear limits.
  • Saves back-and-forth (and therefore tokens and time).
  • Makes results consistent across different runs.

The ingredients of a good prompt

A solid prompt usually combines these elements:

  1. Role or context: tell the AI who it is. "Act as a sales advisor for a shoe store."
  2. Clear task: what you want, exactly. "Write a reply to this customer asking about sizes."
  3. Supporting context: the data it needs to answer well (the customer's message, your catalog, your shipping policy).
  4. Output format: how you want the answer. "In 3 sentences, friendly tone, no emojis."
  5. Constraints: what it should NOT do. "Don't promise discounts. If you don't know the stock, offer to check."
  6. Examples (optional): one or two examples of ideal input and output guide the style enormously.

A simple formula you can copy

If you don't know where to start, use this template:

Act as [role]. Your task is [goal]. Use this information: [context]. Respond in [format/length/tone]. Rules: [what to avoid].

Applied example:

Act as a support agent for a software company. Your task is to reply to a customer who can't log in. Use this information: [customer's message]. Respond in one short paragraph, empathetic and professional tone. Rules: ask for their email if they didn't provide it, never share passwords, and offer to escalate to a human if the issue persists.

Techniques that level up your prompts

  • Be specific with numbers: "max 50 words" works better than "brief."
  • Ask for steps when the task is complex: "think step by step before answering" improves reasoning.
  • Give examples (few-shot): showing 2-3 ideal cases aligns the style better than a thousand explanations.
  • Iterate: a prompt rarely comes out perfect on the first try. Adjust, test, refine.
  • Separate instructions from data: make it clear what's a command and what's material to process.

Prompts in AI agents for your business

When you connect an AI agent to your customer support or sales, the system prompt is its "code of conduct": it defines the agent's personality, what it can promise, and when it should hand the conversation to a human. On omnichannel platforms like Omnifox, you can configure sales and support agents with their own prompt, tone, and rules, so they reply on WhatsApp, Instagram, webchat, or even calls in a way that's consistent with your brand. A good prompt here is the difference between a bot that frustrates and one that genuinely sells and resolves.

A before-and-after example

Compare these two prompts to see the jump in quality:

  • Weak: "Write me a follow-up email."
  • Strong: "Act as an account executive. Write a follow-up email to a customer who requested a quote 3 days ago and hasn't replied. Max 90 words, warm and non-pushy tone. Close with an open question that invites a reply. Don't offer discounts."

The second one produces a usable result on the first try almost every time, because it leaves nothing to interpretation. That's the goal: reduce ambiguity until the response is predictable.

Common mistakes when writing prompts

  • Asking for too many things in a single instruction without prioritizing.
  • Giving no context and expecting the AI to "guess" your product or policy.
  • Forgetting the format, then complaining the answer is too long.
  • Not defining the tone, which produces cold or off-brand responses.
  • Not including a plan B (what to do if the AI doesn't know something).

Conclusion

A prompt is much more than a question: it's the design of the conversation you want to have with the AI. With a clear role, a concrete task, enough context, and well-defined rules, you'll get consistent, useful results. If you want to bring this into your operation and put conversational agents to work with instructions tailored to you, try Omnifox and start writing prompts that work for your business.

Comentarios (0)

Todavía no hay comentarios. Sé el primero en compartir tu opinión.

Dejá un comentario

Tu email nunca se publica. Los comentarios se moderan antes de aparecer.

Soporta markdown. El HTML se elimina.