Generative chat AIs can draft emails, summarize articles, plan projects and more — but results depend heavily on what you ask. This guide gives a clear, repeatable pattern for writing prompts that get useful, reliable answers from chat models.
What you will need
– A chat AI (for example: ChatGPT, Google Bard, or Claude) and a web browser or app to talk to it. No coding required.
– A short description of the task you want the AI to do (one sentence will do).
Steps
- Say the goal in one sentence: start with “Goal:” and state what you want the output to do (e.g., “Goal: write a 150‑word polite reply declining an event.”).
- Give the AI a role: start with “You are…” (for example, “You are an experienced HR specialist.”). This frames tone and expertise. ([developers.openai.com](https://developers.openai.com/api/docs/guides/prompt-engineering))
- Provide key context or constraints in short bullets: audience, length, deadline, must/avoid items (e.g., “Audience: busy manager; Keep under 150 words; Don’t mention budget”).
- Specify the exact output format: say if you want a subject line, numbered list, JSON, or a short paragraph. Asking for a format makes parsing and reuse easier. ([developers.openai.com](https://developers.openai.com/api/docs/guides/prompt-engineering))
- Show one example (few‑shot): paste a short input and the kind of output you like, or write “Example:” followed by one input/output pair. Examples teach the model the pattern to follow. ([developers.openai.com](https://developers.openai.com/api/docs/guides/prompt-engineering))
- Ask for checks: append “Before finishing, verify the facts and list any assumptions.” This encourages the model to self‑check. ([docs.anthropic.com](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/prompt-templates-and-variables))
- Run it, then refine: if the reply is too long, ask “Shorten to X words”; if it’s off‑tone, ask “Make this more casual/professional.” Iteration is normal. ([blog.google](https://blog.google/products-and-platforms/products/gemini/how-to-use-google-bard/?utm_source=openai))
- Remove private data: rewrite prompts to avoid sharing passwords, full personal IDs, or other sensitive details before you paste them. Prompt security matters. ([en.wikipedia.org](https://en.wikipedia.org/wiki/Prompt_engineering))
Tips & things to know
- Be concise but specific. Clear instructions beat long vague paragraphs. If you need structure, tell the model the structure first. ([developers.openai.com](https://developers.openai.com/api/docs/guides/prompt-engineering))
- Use examples rather than abstract rules when you want a particular format or tone; examples are one of the most reliable steering tools. ([developers.openai.com](https://developers.openai.com/api/docs/guides/prompt-engineering))
- Prefer general goals for some models. Some systems (e.g., Anthropic’s Claude family) can benefit from higher‑level goals rather than over‑prescriptive steps for reasoning tasks. ([docs.anthropic.com](https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/prompt-templates-and-variables))
- Watch for prompt injection and hallucinations. Don’t trust model output that cites unverifiable facts; ask it to list sources or show reasoning if accuracy matters. Prompt injection is a known attack technique. ([en.wikipedia.org](https://en.wikipedia.org/wiki/Prompt_engineering))
Warnings
- Never paste passwords, social security numbers, or private medical records into a public chat. If you must work with private data, use a trusted, secure tool and follow your organization’s rules. ([en.wikipedia.org](https://en.wikipedia.org/wiki/Prompt_engineering))
- AI outputs can be plausible but wrong. For important decisions, verify facts against primary sources or ask the model to provide citations you can check. ([developers.openai.com](https://developers.openai.com/api/docs/guides/prompt-engineering))
With these habits — state the goal, give a role, add context, demand a format, show an example, and iterate — you’ll get more useful responses in fewer tries. Start small: practice rewriting one email or asking for a 3‑point summary. After a few tries you’ll recognize which prompts work best for your needs.
Happy prompting — and remember to keep private data private.




