{
    "title": "Prompt engineering",
    "description": "Prompt engineering is writing and testing instructions so an AI model gives accurate, useful answers. Techniques that work, mistakes, and a worked example.",
    "url": "https://ursy.com/wiki/prompt-engineering/",
    "canonical": "https://ursy.com/wiki/prompt-engineering/",
    "markdown": "https://ursy.com/wiki/prompt-engineering/index.md",
    "json": "https://ursy.com/wiki/prompt-engineering/index.json",
    "published": "2026-11-24T23:41:40+00:00",
    "updated": "2026-11-24T23:41:40+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/prompt-engineering/",
    "headings": [
        {
            "level": 2,
            "text": "What is prompt engineering?",
            "id": "what-is-prompt-engineering",
            "url": "https://ursy.com/wiki/prompt-engineering/#what-is-prompt-engineering"
        },
        {
            "level": 2,
            "text": "Why does it matter?",
            "id": "why-does-it-matter",
            "url": "https://ursy.com/wiki/prompt-engineering/#why-does-it-matter"
        },
        {
            "level": 2,
            "text": "What does it mean for search?",
            "id": "what-does-it-mean-for-search",
            "url": "https://ursy.com/wiki/prompt-engineering/#what-does-it-mean-for-search"
        },
        {
            "level": 2,
            "text": "What does it mean for AI answers?",
            "id": "what-does-it-mean-for-ai-answers",
            "url": "https://ursy.com/wiki/prompt-engineering/#what-does-it-mean-for-ai-answers"
        },
        {
            "level": 2,
            "text": "Which techniques work?",
            "id": "which-techniques-work",
            "url": "https://ursy.com/wiki/prompt-engineering/#which-techniques-work"
        },
        {
            "level": 2,
            "text": "What can prompts not fix?",
            "id": "what-can-prompts-not-fix",
            "url": "https://ursy.com/wiki/prompt-engineering/#what-can-prompts-not-fix"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/prompt-engineering/#common-mistakes"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/prompt-engineering/#a-worked-example"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/prompt-engineering/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/prompt-engineering/#questions"
        },
        {
            "level": 3,
            "text": "Do I need to learn code?",
            "id": "do-i-need-to-learn-code",
            "url": "https://ursy.com/wiki/prompt-engineering/#do-i-need-to-learn-code"
        },
        {
            "level": 3,
            "text": "Is a longer prompt always better?",
            "id": "is-a-longer-prompt-always-better",
            "url": "https://ursy.com/wiki/prompt-engineering/#is-a-longer-prompt-always-better"
        },
        {
            "level": 3,
            "text": "Will Google penalise AI-written pages?",
            "id": "will-google-penalise-ai-written-pages",
            "url": "https://ursy.com/wiki/prompt-engineering/#will-google-penalise-ai-written-pages"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/prompt-engineering/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/prompt-engineering/#sources"
        }
    ],
    "links": [
        {
            "text": "prompt",
            "url": "https://ursy.com/wiki/prompt/",
            "internal": true
        },
        {
            "text": "large language model",
            "url": "https://ursy.com/wiki/large-language-model/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "prompt design strategies",
            "url": "https://aistudio.google.com/docs/prompting-strategies",
            "internal": false
        },
        {
            "text": "prompt engineering overview",
            "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview",
            "internal": false
        },
        {
            "text": "prompt engineering guide",
            "url": "https://developers.openai.com/api/docs/guides/prompt-engineering",
            "internal": false
        },
        {
            "text": "using generative AI content",
            "url": "https://developers.google.com/search/docs/fundamentals/using-gen-ai-content",
            "internal": false
        },
        {
            "text": "scaled content abuse",
            "url": "https://ursy.com/wiki/scaled-content-abuse/",
            "internal": true
        },
        {
            "text": "alt text",
            "url": "https://ursy.com/wiki/alt-text/",
            "internal": true
        },
        {
            "text": "helpful content",
            "url": "https://ursy.com/wiki/helpful-content/",
            "internal": true
        },
        {
            "text": "AI slop",
            "url": "https://ursy.com/wiki/ai-slop/",
            "internal": true
        },
        {
            "text": "AI-generated content",
            "url": "https://ursy.com/wiki/ai-generated-content/",
            "internal": true
        },
        {
            "text": "E-E-A-T",
            "url": "https://ursy.com/wiki/e-e-a-t/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "answer engine optimisation",
            "url": "https://ursy.com/wiki/answer-engine-optimisation/",
            "internal": true
        },
        {
            "text": "prompt research",
            "url": "https://ursy.com/wiki/prompt-research/",
            "internal": true
        },
        {
            "text": "prompting best practices",
            "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices",
            "internal": false
        },
        {
            "text": "system prompt",
            "url": "https://ursy.com/wiki/system-prompt/",
            "internal": true
        },
        {
            "text": "grounding",
            "url": "https://ursy.com/wiki/grounding/",
            "internal": true
        },
        {
            "text": "hallucination",
            "url": "https://ursy.com/wiki/ai-hallucination/",
            "internal": true
        },
        {
            "text": "knowledge cutoff",
            "url": "https://ursy.com/wiki/knowledge-cutoff/",
            "internal": true
        },
        {
            "text": "fine-tuning",
            "url": "https://ursy.com/wiki/fine-tuning/",
            "internal": true
        },
        {
            "text": "retrieval-augmented generation",
            "url": "https://ursy.com/wiki/retrieval-augmented-generation/",
            "internal": true
        },
        {
            "text": "reasoning models",
            "url": "https://ursy.com/wiki/reasoning-models/",
            "internal": true
        },
        {
            "text": "prompt injection",
            "url": "https://ursy.com/wiki/prompt-injection/",
            "internal": true
        },
        {
            "text": "AI guardrails",
            "url": "https://ursy.com/wiki/ai-guardrails/",
            "internal": true
        },
        {
            "text": "meta description",
            "url": "https://ursy.com/wiki/meta-description/",
            "internal": true
        },
        {
            "text": "content brief",
            "url": "https://ursy.com/wiki/content-brief/",
            "internal": true
        },
        {
            "text": "Prompt Builder",
            "url": "https://ursy.com/webmaster-tools/prompt-builder/",
            "internal": true
        },
        {
            "text": "Prompt Improver",
            "url": "https://ursy.com/webmaster-tools/prompt-improver/",
            "internal": true
        },
        {
            "text": "AI Token Cost Estimator",
            "url": "https://ursy.com/webmaster-tools/ai-token-cost-estimator/",
            "internal": true
        },
        {
            "text": "AI tokens",
            "url": "https://ursy.com/wiki/ai-tokens/",
            "internal": true
        },
        {
            "text": "context window",
            "url": "https://ursy.com/wiki/context-window/",
            "internal": true
        },
        {
            "text": "AI Writing Checker",
            "url": "https://ursy.com/webmaster-tools/ai-writing-checker/",
            "internal": true
        },
        {
            "text": "Readability Checker",
            "url": "https://ursy.com/readability-checker/",
            "internal": true
        },
        {
            "text": "Prompt Injection Checker",
            "url": "https://ursy.com/prompt-injection-checker/",
            "internal": true
        },
        {
            "text": "Content brief builder",
            "url": "https://ursy.com/pro/content-brief-builder/",
            "internal": true
        },
        {
            "text": "Prompt injection guard",
            "url": "https://ursy.com/pro/prompt-injection-guard/",
            "internal": true
        },
        {
            "text": "Generative AI",
            "url": "https://ursy.com/wiki/generative-ai/",
            "internal": true
        }
    ],
    "words": 1064,
    "text": "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. What does it mean for search? 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 Draft a structured prompt with our Prompt Builder, then tighten it with the Prompt Improver. Estimate the size of long prompts with the AI Token Cost Estimator. See AI tokens and context window. Check AI drafts with the AI Writing Checker and the Readability Checker before you edit. Before feeding a web page into a prompt, scan it with the Prompt Injection Checker. 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. Related words Prompt System prompt Prompt injection Grounding Generative AI Sources OpenAI: Prompt engineering guide, checked 24 November 2026 Anthropic: Prompt engineering overview, checked 24 November 2026 Anthropic: Prompting best practices, checked 24 November 2026 Google AI Studio: Prompt design strategies, checked 24 November 2026 Google Search Central: Guidance on using generative AI content, checked 24 November 2026 Updated 24 November 2026 by URSY.",
    "source": "https://ursy.com/wiki/prompt-engineering/"
}