Prompt Engineering: How to Get Better Results from Any AI Tool

Table of Contents

Prompt Engineering - Tommaso Liu

Key Takeaways

  • A prompt is your instruction to an AI — the quality of your output depends directly on the quality of your input.
  • Prompt engineering is not a technical skill. It is a communication skill anyone can learn and apply immediately.
  • Every strong prompt shares five core components: role, task, context, format, and constraints.
  • Prompting strategy changes depending on the tool — chatbots, agents, and image generators each require a different approach.
  • The most common prompt mistakes are vagueness, missing context, and trying to do too much in one instruction.
  • Small prompt adjustments produce disproportionately better outputs — the skill compounds quickly.

What Is Prompt Engineering

Prompt engineering is the practice of designing and refining the instructions you give an AI tool to get more accurate, useful, and consistent outputs.

Every time you type a message into ChatGPT, Claude, or Gemini — or describe an image in Midjourney — you are writing a prompt.

Prompt engineering is simply doing that intentionally.

Instead of hoping the AI guesses what you mean, you give it a structured instruction that leaves little room for misinterpretation.

The result is output that matches what you had in mind, with far less back-and-forth.

The term sounds technical. It is not.

Think of it as learning to brief AI the same way you would brief a freelancer.

Why Prompt Engineering Still Matters in 2026

A common assumption is that as AI models get smarter, prompting becomes less important. The opposite is true.

More capable models do not remove the need for clear instructions — they amplify the consequences of vague ones.

A poorly worded prompt given to an older model produced a generic answer. The same prompt given to a 2026 frontier model like GPT-5 or Claude 4.6 produces a more fluent, more confident generic answer.

The problem does not disappear — it gets harder to spot.

There is a second reason prompting matters more now, not less.

AI tools in 2026 are being used for higher-stakes tasks: drafting contracts, running autonomous research agents, generating ad creative, automating multi-step workflows.

The cost of a misunderstood instruction is higher. Precision has real value.

The Anatomy of a Strong Prompt

Every effective prompt — regardless of the tool — is built from five components. You do not need all five every time, but knowing each one gives you a checklist to diagnose weak outputs.
Component What it does
Role Tells the AI what perspective or expertise to adopt
Task States exactly what you want — one clear objective
Context Gives the AI the background it needs to be relevant
Format Specifies how the output should be structured
Constraints Sets limits — what to exclude, length, tone

Role and Persona

Assigning a role to the AI before giving your task is one of the highest-impact changes you can make. It shifts the model’s default behaviour toward a specific domain, tone, and level of expertise.

  • Weak: “Explain email marketing.”
  • Strong: “Act as a senior email marketing strategist. Explain the three most important elements of a high-converting welcome sequence for a SaaS product.”

The role does not need to be elaborate. Even a short instruction like “You are a plain-language editor” or “Act as a sceptical investor” produces meaningfully different output.

Task and Objective

State one task per prompt. When you stack multiple objectives into a single instruction, the AI either blends them poorly or prioritises one over the others without telling you.

  • Weak: “Write a blog post about SEO and explain what GEO is and include a CTA and make it 1,500 words.”
  • Strong: “Write a 150-word introduction for a blog post targeting the keyword ‘what is GEO’. Audience: marketing managers. Tone: direct and expert. No filler opener.”

Break complex deliverables into steps. Write the outline first, then section by section. The output quality at each step will be noticeably higher.

Context and Background

The AI does not know who you are, who your audience is, or what you have already tried. Without context, it defaults to a generic middle ground. With context, it can be specific.

Useful context to include:

  • Who the audience is and what they already know
  • What the output will be used for
  • Any constraints from your industry, brand, or situation
  • What you have already tried that did not work

Output Format

If you do not specify a format, the AI will choose one for you — and it is often not the one you need. Specifying format takes five seconds and saves significant editing time.
If you need Ask for
A scannable reference A table with two columns
Step-by-step instructions A numbered list
A draft to edit Flowing paragraphs, max X words
A quick decision aid Pros and cons, bullet format
A social post Plain text, under 280 characters

Constraints and Exclusions

Telling the AI what not to do is as important as telling it what to do. Constraints prevent the most common failure modes: excessive length, generic examples, wrong tone, unwanted disclaimers.

Examples of useful constraints:

  • “Do not use bullet points — write in short paragraphs.”
  • “Do not include general advice that applies to any business. Be specific to dental practices.”
  • “No hedging language. No phrases like ‘it depends’ or ‘there are many factors’.”
  • “Maximum 100 words. Stop when you reach it.”

7 Prompt Engineering Techniques That Actually Work

These are practical techniques you can apply immediately. Each one addresses a specific failure mode.

  1. Chain-of-thought prompting: Ask the AI to think through the problem step by step before giving you the answer. Add “Think through this step by step before responding” to any analytical prompt. Output quality on complex tasks improves significantly.
  2. Few-shot examples: Show the AI two or three examples of what good output looks like before asking for yours. This is the fastest way to match a tone, format, or level of specificity.
  3. Iterative refinement: Treat the first output as a draft, not a final answer. Reply with one specific change: “Make the second paragraph shorter” or “Replace the generic examples with ones specific to restaurants.” Stay in the same chat thread.
  4. Ask the AI what it needs: Before writing a complex prompt, ask: “What information do you need from me to write the best possible version of X?” The AI will surface gaps you had not considered.
  5. Split long tasks into steps: For anything over 500 words or more than two objectives, break the task into sequential prompts. Outline → section 1 → section 2. Each step gets the AI’s full attention.
  6. Specify the audience explicitly: “Explain this to a 45-year-old clinic director who is not technical” produces a fundamentally different output than “explain this to a developer.” Audience specification is one of the most underused levers.
  7. Use the previous output as input: Paste the AI’s last response back into your next prompt and build on it. “Based on the outline above, write section two. Keep the same tone. Add one real-world example.”

Common Prompt Mistakes (and How to Fix Them)

Most weak outputs come from the same handful of mistakes. Here are the most common ones with direct fixes.

MistakeFix
Vague task (“write something about X”)Specify the format, length, audience, and one clear objective
No context givenAdd who the audience is and what the output will be used for
Too many tasks in one promptSplit into sequential prompts, one objective each
No format specifiedState exactly how you want the output structured
Starting over when output is closeRefine in the same thread with one specific change per reply
Accepting the first draftTreat every first output as a starting point, not a final answer

Prompt Engineering by Tool Type

The five components above apply everywhere. What changes is the emphasis and the specific language that works best for each tool category.

AI Chatbots and LLMs (ChatGPT, Claude, Gemini)

These are the most flexible tools and the ones where prompting habits matter most. A few principles that consistently improve output:

  • Set the role before the task. The first line of your prompt should establish who the AI is acting as. Do this even for simple requests.
  • Use the same chat thread for related tasks. The AI retains context within a conversation. If you start a new chat every time, you lose that continuity and repeat yourself constantly.
  • Correct, don’t restart. If the output is 70% right, reply with the specific issue. “The tone is too formal — rewrite the second paragraph more conversationally.” Starting from scratch is slower and rarely produces better results.
  • For long documents, work in sections. Ask for an outline first. Get your approval on the structure before writing. Then generate one section at a time.

AI Agents (Perplexity, Gemini Deep Research, ChatGPT with browsing)

Agents are AI tools that take actions or conduct multi-step research on your behalf rather than just responding to a single message. Prompting them requires a different mindset — you are setting a scope and guardrails, not just giving an instruction.

  • Define the scope tightly. Agents will interpret a broad question broadly. “Research my competitors” will produce a sprawling, shallow output. “Find the five most-visited dental clinic websites in Rome and list their primary service pages” produces something actionable.
  • Specify the output format upfront. Agents often return long, unformatted text by default. Ask for a structured summary, a table, or bullet points with sources.
  • Add a depth instruction. “Go beyond the first page of results” or “Look for primary sources, not summaries” meaningfully changes what an agent retrieves.
  • Verify sources. Agents can hallucinate citations or pull from outdated pages. Always cross-check any statistic or claim that will be used in a published context.

Image Generators (Midjourney, Flux, Nano Banana)

Visual prompts work differently from text prompts. These models apply deep reasoning to understand your intent before generating — which means they reward clear creative direction over keyword lists. Write prompts as if briefing a human artist, not as a tag dump.

Build your image prompt in layers:

  • Subject: what is in the image and how do they look (“a woman in her 40s in a dental chair, relaxed expression”)
  • Style and medium: how it should look (“clean clinical photography, soft natural light, 35mm film”)
  • Environment: where it takes place (“modern dental practice, white walls, minimal décor”)
  • Mood and lighting: how it should feel (“warm, reassuring, not sterile”)
  • Aspect ratio: where it will be used (“16:9 for a website hero banner”)
  • Text inside the image: wrap exact copy in quotation marks and specify font style and placement
  • Iterate conversationally — refine with a follow-up prompt rather than starting over each time

Video Generators (Higgsfield, Kling, Hailuo)

Video prompts require everything an image prompt needs, plus an additional layer: motion and camera direction. The AI has no memory of previous generations — every prompt must be self-contained.

Structure each video prompt around four elements:

  • Composition and subject: who or what is in the frame and how it is framed (“medium close-up, eye level, woman at a desk”)
  • Camera move: one move per clip keeps output cinematic (“slow dolly-in,” “static wide,” “overhead pan”)
  • Motion and timing: describe what moves and when (“she turns toward camera at the halfway point”)
  • Mood and lighting: anchor the emotional tone (“soft warm light, unhurried pacing”)

Keep motion instructions simple — stacked camera moves in a single prompt produce unstable output. For complex scenes, generate separate clips and cut them together in post.

FAQs About Prompt Engineering

What is prompt engineering in simple terms?

Prompt engineering is the practice of writing clear, structured instructions for AI tools to get better, more consistent outputs. It is a communication skill, not a technical one. The better your instructions, the better the AI’s response.

No. Prompt engineering for everyday AI tools — ChatGPT, Claude, Gemini, Midjourney — requires no coding at all. It is entirely about how you write and structure your instructions in plain language.

Most bad prompts share the same problems: they are too vague, they give no context about the audience or purpose, they stack multiple tasks into one instruction, or they do not specify a format. Any one of these will produce generic or misaligned output.

Yes — and arguably more so. Newer models are more capable, which means vague prompts produce more confidently wrong or generically polished output. The ability to give precise instructions becomes more valuable as the models get stronger, not less.

System prompt: a set of background instructions given to the AI before the conversation starts, usually by a developer or platform, that defines its role, tone, and constraints.

User prompt: the message you type in the chat. As an end user, you interact with the user prompt — but understanding the system prompt concept helps you replicate its effect by starting your messages with role and context instructions.

Indirectly, yes. When you use prompt engineering to produce more specific, structured, and authoritative content — with clear definitions, direct answers, and named entities — that content is more likely to be cited by AI search tools like ChatGPT Search, Perplexity, and Google AI Overviews. It is one of the practical overlaps between prompt engineering and Generative Engine Optimization (GEO).

Picture of Tommaso Liu

Tommaso Liu

I am an SEO and AI search (AEO/GEO) specialist focused on turning search visibility into users and revenue. Since 2018, I’ve built structured visibility and conversion systems across industries like healthcare, accounting, construction, SaaS and marketing. Results include growing a business from 13 to 81+ new customers per month through SEO, while scaling organic traffic from ~39K to 73K clicks in 6 months, and continuing to grow to 127K clicks with minimal additional work. I help local and SaaS businesses get found on Google, ChatGPT, and Gemini, then turn that visibility into real users through clear structure and conversion-focused pages.