Home / Glossary / AI and machine learning

AI and machine learning

Prompt engineering

Also searched as: prompt design, prompting

In shortPrompt engineering is the practice of writing and refining instructions for an AI model so it returns useful, consistent results. It covers the task description, context, examples, format and constraints you include. Good prompts reduce rework, but they cannot make a model accurate about facts it does not have.

By Aditya Aman, working in SEO for almost a decade and hands-on with AEO and GEO as those fields have developed. Updated 25 November 2026.

  • What it isWriting and testing instructions for AI models.
  • Key partsRole, task, context, examples, format and limits.
  • Best forRepeatable work such as briefs, tagging and summaries.
  • LimitIt cannot fix missing facts or guarantee correctness.
  • HabitTest on several inputs and keep a record of versions.

What is prompt engineering?

A prompt is the text you give an AI model. Prompt engineering is the work of making that text clear enough that the model does the task the way you want, run after run. It sits between casual chatting and building software.

The skill is mostly good briefing: say what the task is, who the output is for, what to use and what to avoid. A prompt that would confuse a new colleague will also confuse a model.

What makes a prompt work well?

Most reliable prompts share a few parts. You can mix and drop them depending on the task.

PartWhat to includeExample
TaskThe specific job to doGroup these 200 queries by topic
ContextAudience, goal and source materialB2B SaaS buyers, pasted notes
ExamplesOne or two samples of good outputTwo correctly grouped sets
FormatHow the answer should be structuredA table with two columns
LimitsWhat not to do or assumeDo not invent facts; say if unsure

How do you test and improve a prompt?

Treat a prompt like a draft you test. Run it on several real inputs, not just one, and compare results. Change one thing at a time so you know what helped.

  1. Define successWrite what a good output looks like before you test.
  2. Run varied inputsTry easy, typical and awkward examples.
  3. Change one thingAdjust the wording, examples or format, then compare.
  4. Check factsVerify names, numbers and claims against real sources.
  5. Save the versionKeep the final prompt with notes on what it is for.

What are common mistakes?

Vague requests are the main one. "Write a good article" gives the model nothing to work with. Another is asking the model for facts it cannot know, such as your internal numbers, then trusting a plausible answer. Supply the source material and ask it to use only that.

Do not paste confidential client or personal data into tools without checking the vendor's terms and your own obligations. Models also behave differently across versions, so retest important prompts after updates.

Need help with Prompt engineering on your site?

Tell us what is not working. We will check where this affects your search results and what to fix first.

Book a meetingAEO services

Questions people ask

Is prompt engineering a real job?

Some companies hire for it, but for most marketing teams it is a skill inside other roles, such as content or analytics. The core value is clear thinking and testing, which applies whichever tool you use.

Can a better prompt stop hallucinations?

It can reduce them, for example by supplying source text and asking the model to say when it does not know. It cannot remove them. Always verify facts, numbers and quotes before publishing.

Should I share my prompts across the team?

Yes. A shared, versioned set of tested prompts saves time and keeps output consistent. Note what each is for, what inputs it needs and who last reviewed it.

Inspect the original evidence