ChatGPT Prompt Engineering Tips: 10 Techniques for Better Answers

Ask ChatGPT a vague question and you will get a vague answer. That is not a flaw in the model — it is a flaw in the prompt. These chatgpt prompt engineering tips are about one skill: telling the model exactly what you want, in the form you want it, with enough context to get it right first time.

This guide teaches ten techniques you can use today, each with a before-and-after example. Note what this is not: another list of prompts to copy and paste. If you want ready-made prompts, our ChatGPT prompts to boost your productivity has them, and our ChatGPT guide for 2026 explains what the tool can do. This article is about the skill behind the prompt — how to write your own, for any task.

Short answer: Give every prompt five things: a role, context, a clear task, an output format and constraints. Add two or three examples when the output needs a particular style, break big jobs into steps, and refine the answer in the same chat instead of starting over. Most weak answers trace back to a prompt missing two or three of these fundamentals — fix those first.

A person typing detailed chatgpt prompt engineering tips into a laptop chat window
A detailed, well-structured prompt is the difference between a generic answer and a useful one.

The five fundamentals every good prompt needs

Before the techniques, learn the foundation. A strong prompt gives the model four things: context, role, constraints and output format. OpenAI’s prompt engineering guide frames it the same way: clear instructions, reference text, split tasks, time to reason and systematic testing.

In practice, that boils down to five fundamentals every working prompt hits: role or context, task, format, constraints and examples. Most prompt failures are missing two or three of these. When an answer disappoints you, check the fundamentals before blaming the model.

10 chatgpt prompt engineering tips that actually work

These prompt engineering techniques build on each other, but each works on its own too. Try them one at a time.

1. Give ChatGPT a role first

ChatGPT role prompting means telling the model who it is before telling it what to do. A role sets the tone, vocabulary and depth of the answer in a single line.

Bad: “Write about email marketing.” Good: “Act as an email copywriter for a small UK bakery. Write a 150-word welcome email for new subscribers, warm and friendly, with one clear call to action.”

A professional at a desk with role cards, showing how chatgpt prompt engineering tips start with giving the model a role
Giving ChatGPT a role — editor, tutor, analyst — shapes the tone and depth of every answer.

2. Add context before the task

The model cannot guess what you already know, who the audience is or why the answer matters. Two sentences of context often improve an answer more than a clever technique.

Bad: “Explain inflation.” Good: “Explain inflation to a 16-year-old student in the UK who is revising for a GCSE economics exam. Use one everyday example and keep it under 200 words.”

3. Show it examples — few-shot prompting

Few-shot prompting means showing two to five examples of good output before asking for more. Examples teach format, tone and length faster than any description — ideal when output must match a house style.

Bad: “Write product descriptions in our style.” Good: “Here are two of our product descriptions: [paste examples]. Now write one in the same style, same length, for our new ceramic mug.”

Side-by-side good and bad chat windows showing chatgpt prompt engineering tips with few-shot examples
Two or three examples teach ChatGPT your preferred format faster than a paragraph of description.

4. Demand an exact output format

If you want a table, say table. If you want JSON, say JSON. Output format control is one of the simplest prompt engineering techniques, and it removes a common frustration: the right content in an unusable shape.

Bad: “Compare the three plans.” Good: “Compare the three plans in a markdown table with columns for price, storage and best for. End with one sentence recommending the best plan for a freelancer.”

5. Set limits — including what not to do

Negative constraints tell the model what to avoid, which is often more useful than telling it what to include. State the length, tone and off-limits items alongside the task.

Bad: “Write a blog intro about remote work.” Good: “Write a 100-word blog intro about remote work. Do not use the words ‘revolution’ or ‘game-changer’, do not start with a question, and keep the tone practical, not inspirational.”

6. Break big jobs into steps

Long, multi-part requests produce muddled answers because the model juggles too much at once. Split the job: ask for an outline first, then write each section in turn.

Bad: “Write me a complete 2,000-word guide to starting a podcast.” Good: “First, give me a 10-point outline for a beginner’s guide to starting a podcast. I will pick the sections, then we will write them one at a time.”

7. Ask it to reason step by step

Chain-of-thought prompting asks the model to show its working before giving the final answer. It is most useful for maths, logic and multi-step problems, where rushed answers are usually wrong.

Bad: “A shop offers 20% off, then a further 10% off. What is the total discount?” Good: “Work step by step: first apply 20% off a £100 item, then apply 10% off the reduced price, then state the total discount as a percentage.”

8. Feed it reference text

When accuracy matters, paste the source material into the prompt instead of relying on the model’s memory. Reference text grounds the answer in facts you can check and cuts down on invented details.

Bad: “Summarise our refund policy.” Good: “Here is our refund policy: [paste text]. Summarise it in five bullet points a customer can understand, using only facts from the text above.”

9. Make it check its own work

Self-consistency and reflexion share a simple idea: generate an answer, then ask the model to critique it and revise. One extra pass catches errors, weak arguments and missing points.

Bad: Accepting the first draft as final. Good: “Now review your answer above. List three weaknesses, then rewrite it fixing all three. Keep the same length.”

10. Iterate in the same chat — never restart from scratch

Starting a new chat throws away everything the model has learned about your task. Stay in the same conversation and refine: “shorter”, “more formal”, “add an example”.

Bad: Opening a fresh chat and retyping the whole prompt when the answer is nearly right. Good: “Keep everything, but cut it to 150 words and make the second paragraph more specific.”

A person refining a draft with AI feedback loops, applying chatgpt prompt engineering tips by iterating in the same chat
Refining a draft in the same chat keeps context — and usually beats starting from scratch.

Set up ChatGPT custom instructions once

ChatGPT custom instructions set permanent context for every conversation, so you stop repeating the same background in every prompt. Open Settings, then Personalisation, then Custom Instructions, and fill in both boxes. In the first, describe yourself: your job, your audience and your expertise. In the second, describe how you want ChatGPT to respond: tone, length, format and anything it should always or never do.

Keep both boxes short — two or three sentences each is enough. Review them every few months, because instructions that suited one project can quietly distort answers for the next. And remember they are a starting point, not a substitute: a prompt needing a different tone or format still needs those details stated in it.

Prompt engineering in 2026: reasoning models change one rule

One update is worth knowing. Reasoning models such as GPT-5 thinking, Claude Opus extended thinking and Gemini Deep Think already do chain-of-thought internally, so asking them to “think step by step” is mostly redundant. With these models, spend your effort on context, format and constraints instead.

The techniques above are otherwise largely model-agnostic across ChatGPT, Claude and Gemini, with the last 20% or so being model-specific tuning: each model has its own quirks and preferred phrasing, which you learn by using it. If ChatGPT is not the right tool for a particular job, our guide to AI tools like ChatGPT compares the alternatives.

Anti-patterns: seven mistakes that waste good prompts

If your prompts keep underperforming, one of these is usually the cause.

  • Asking two questions at once. The model answers the easier one and skips the other.
  • Vague adjectives. “Good”, “better” and “professional” mean nothing without a definition. Say what good looks like.
  • No length limit. Without one, you get a wall of text or a shrug. Always state a word count or format.
  • Leading the answer. “Tell me why X is the best option” gets agreement, not analysis.
  • Repeating the same failed prompt. If it failed twice, change it — add context, an example or a format.
  • Trusting facts without checking. ChatGPT can state wrong figures confidently. Verify dates, prices and statistics first.
  • Overloading one prompt. Five jobs in one message means five mediocre results. Split the work.

Frequently asked questions

What is prompt engineering in ChatGPT?

Prompt engineering is the practice of writing clear, structured instructions so ChatGPT gives you the answer you actually want. It covers role, context, task, format, constraints and examples — the five fundamentals in this guide — plus few-shot and chain-of-thought prompting for harder tasks.

Do I need long prompts to get good answers?

No. Long prompts help only when the extra words add context, examples or constraints the model needs. A short prompt with a role, a clear task and a format beats a long, rambling one. Aim for complete, not long.

Does prompt engineering work on Claude and Gemini too?

Yes. The techniques in this guide are largely model-agnostic, and the same fundamentals apply across ChatGPT, Claude and Gemini. Each model responds slightly differently to phrasing, so expect a short period of tuning when you switch.

What are custom instructions in ChatGPT?

Custom instructions are permanent background details ChatGPT applies to every conversation: who you are, what you do and how you like answers written. Set them once in Settings, under Personalisation.

Why does ChatGPT ignore part of my prompt?

Usually because the prompt asks for too much at once, or because two instructions contradict each other. Split the request into steps and put the most important instruction first. Shorter, ordered prompts are followed more reliably.

Conclusion

Good prompting is not a trick and it is not a talent — it is a habit. Give the model a role, add context, state the task, demand a format, set your limits and show an example when style matters. Then iterate in the same chat instead of starting over. Try one technique on your next prompt; the difference is usually obvious on the first try.

Start with the five fundamentals, add the techniques that fit your work, and set up custom instructions today so every future chat begins a step ahead.

Sources: OpenAI — https://platform.openai.com/docs/guides/prompt-engineering · Anthropic — https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview

Leave a Comment