A prompt is just the instruction you give an AI, but the gap between a lazy prompt and a well-built one is enormous. Same model, same task, completely different output. That gap is the skill.
This tutorial gives you a repeatable structure and the handful of techniques that matter most. Learn these and you will get more out of any model you use.
The anatomy of a strong prompt
Weak prompts are one vague line. Strong prompts have parts. You do not need all of them every time, but knowing them lets you add what a task needs.
- Role: who the AI should act as ("You are an experienced copy editor").
- Context: the background it needs to do the job well.
- Task: the specific thing you want, stated plainly.
- Format: how you want the answer shaped (length, structure, style).
- Examples: a sample or two of what good looks like.
Be specific, then more specific
Specificity is the single biggest lever. "Write about our product" gets you filler. "Write a 120-word product blurb for busy small-business owners, warm but not salesy, ending with one clear next step" gets you something usable.
Tell the model the audience, the length, the tone, and the goal. Every constraint you add narrows the output toward what you actually want.
Show examples (few-shot prompting)
Giving the model a couple of worked examples inside your prompt is called few-shot prompting, and it is often the fastest way to lock in a format or style. The model copies the pattern you show it.
If you keep getting the wrong shape of answer, stop explaining and start showing. One good example beats a paragraph of instructions.
Ask it to think step by step
For math, logic, or multi-step problems, asking the model to reason step by step before answering measurably improves accuracy. This is called chain-of-thought prompting.
On a hard question, add "Work through this step by step before giving your final answer." You will often catch and prevent sloppy reasoning.
Iterate like a conversation
Your first prompt is a draft. The real skill is refining: "shorter," "more formal," "cut the intro," "keep only the second option." Treat it as a back-and-forth, not a one-shot command.
- Write a specific first prompt with role, task, and format.
- Read the output and name exactly what is wrong.
- Give one focused correction and regenerate.
- Repeat until it is right, then save the prompt as a template.
Frequently asked
Why does the AI give me generic answers?
Almost always because the prompt is too vague. Add the audience, the length, the tone, and the goal, and give an example of what good looks like. Specific prompts produce specific answers.
What is few-shot prompting?
Few-shot prompting means including a handful of worked examples in your prompt so the model copies the pattern. It is often faster than describing the format in words.
Should I save my prompts?
Yes. A prompt that works becomes a reusable template with fill-in-the-blank slots, turning a good one-off into a repeatable tool for you or your team.