Skip to the content
Start free

Prompt engineering

Prompt engineering is the craft of writing and testing the instructions you give an AI model so that its answers are accurate, useful and in the shape you need, time after time. OpenAI’s guide calls it the process of writing effective instructions for a model. For a small business it is less about clever tricks and more about clear briefs, good examples and checking the output.

What is prompt engineering? #

A prompt is the text you send to a large language model: the task, any background and any rules. Prompt engineering is improving that text on purpose, then testing whether the change helped. Google’s prompt design strategies page describes prompt design as creating natural language requests that lead to accurate, high-quality responses. Anthropic’s prompt engineering overview adds a step people skip: before you tune a prompt, define what success looks like and have a way to test against it.

Why does it matter? #

The same model can give a sharp answer or a vague one depending on what you ask. OpenAI’s prompt engineering guide notes that model output is non-deterministic, so the same prompt can return different text each time. Good prompts narrow that spread. For a business that uses AI to draft product copy, answer emails or sort search data, that means less rework and fewer wrong facts.

Many teams now use AI to draft pages. Google’s guidance on using generative AI content says AI can help with research and with structuring original content. It also warns that using AI to generate many pages without adding value for users may break its scaled content abuse policy. The same page says to fact-check AI output and to review titles, meta descriptions, structured data and alt text before publishing. So the prompt is only step 1. A human edit, real facts and your own experience are what make the page helpful content rather than AI slop. See AI-generated content and E-E-A-T.

What does it mean for AI answers? #

Turn it around. The people asking ChatGPT, Gemini or Claude about your trade are writing prompts too. Knowing how prompts work tells you what those assistants are trying to do: break the question down, look for sources and give a clear answer. Pages that state facts plainly, near the top, are easier to use. Writing for that reader is what answer engine optimisation means in practice. Studying the prompts your customers type is called prompt research.

Which techniques work? #

The 3 big model companies give similar advice in their own docs:

  • Be clear and direct. Anthropic’s prompting best practices suggest treating the model like a capable new colleague who knows nothing about your business. If a person would be confused by the prompt, the model will be too.
  • Explain why. The same page says giving the reason behind an instruction helps the model aim its answer.
  • Show examples. Google calls prompts with no examples zero-shot and prompts with a few examples few-shot, and recommends including examples. Anthropic suggests 3 to 5 varied examples. Keep their format identical.
  • Separate the parts. OpenAI and Anthropic both suggest Markdown headings or XML tags to keep instructions, context and examples apart.
  • Set a role. A short line in the system prompt, such as “You are an editor for a UK garden centre”, shapes tone and focus.
  • Give the source material. Paste the facts you want used. This is grounding, and it cuts hallucination. Anthropic advises putting long documents near the top, above the question.
  • Break big jobs down. Google suggests chaining prompts, where each step’s output feeds the next.
  • Say the format. A table, 5 bullets, under 60 words, British spelling.

What can prompts not fix? #

A prompt cannot add facts the model does not have, past its knowledge cutoff, unless you supply them. Anthropic notes that some problems, such as cost or speed, are easier to solve by choosing a different model. For deep, repeated tasks, fine-tuning or retrieval-augmented generation may be the better tool. Newer reasoning models also need less step-by-step hand-holding; OpenAI says they handle high-level goals well.

Common mistakes #

  • No success test. Changing words with no way to tell if output improved.
  • Too little context. “Write a product description” with no product facts invites made-up details.
  • Too much at once. 12 tasks in one prompt. Split them.
  • Trusting one good run. Output varies, so try the prompt on several inputs.
  • Publishing unchecked. Every fact, price and claim still needs a human check.
  • Pasting untrusted text as instructions. Web pages and emails can hide commands. See prompt injection and AI guardrails.

A worked example #

A shop wants a meta description for a ceramic vase page.

Version Prompt Typical result
1 “Write a meta description for a vase.” Generic, invents a size and a material
2 Adds the facts: 30 cm tall, stoneware, made in Stoke, hand glazed, £34 Accurate but too long
3 Adds rules: under 155 characters, British spelling, no “best”, end with the price, plus 2 example descriptions from the shop On-brand, right length, ready to check

Version 3 is still a draft. Someone reads it against the product before it goes live. See meta description and content brief.

How to check it #

  1. Draft a structured prompt with our Prompt Builder, then tighten it with the Prompt Improver.
  2. Estimate the size of long prompts with the AI Token Cost Estimator. See AI tokens and context window.
  3. Check AI drafts with the AI Writing Checker and the Readability Checker before you edit.
  4. Before feeding a web page into a prompt, scan it with the Prompt Injection Checker.
  5. In URSY Pro, the Content brief builder (Pro) and Prompt injection guard (Pro) are being built.

Questions #

Do I need to learn code? #

No. Most prompting is plain writing. Code helps only when you call a model from your own scripts.

Is a longer prompt always better? #

No. Add what the model needs: facts, rules and examples. Cut repetition.

Will Google penalise AI-written pages? #

Google judges the page, not the tool. Mass pages with no added value can break its spam policies; reviewed, original pages are treated like any other.

Sources #

Updated 24 November 2026 by URSY.

Cite this page: Prompt engineering. URSY. Updated 24 November 2026. https://ursy.com/wiki/prompt-engineering/ · Section links

Tools for this

  • LivePrompt Injection Checkerhidden text or planted AI instructions on a pageRun the check →
  • LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
  • LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
  • LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
  • LiveSchema Markup CheckerRun the check →
  • ProPrompt trackerYour chosen questions asked to AI every day; are you in the answer?In URSY Pro →
  • ProAI share of voiceYou vs rivals across all tracked promptsIn URSY Pro →
  • ProAI citation trackerWhich of your pages AI links to, per promptIn URSY Pro →

All 871 wiki entries, A to Z →