For the complete documentation index, see llms.txt. Every page on this site is also served as Markdown: append `.md` to any URL, or send `Accept: text/markdown`.
Skip to content

Glossary term

Prompt engineering

Prompt engineering is the practice of structuring the instructions, context and examples you give a language model so its output meets a goal you defined in advance. It is empirical: without a success criterion and a way to test against it, a change cannot be judged. In AI visibility tracking, the prompt wording also decides what a rate measures.

7 days free · card required

Answer · ChatGPTasked

Question: best GEO tools

ChatGPT answered: Current 2026 comparisons consistently put Profound, Peec AI, Otterly, Scrunch, Ahrefs and Semrush among the leading options, although rankings vary substantially by use case.

Sources cited

  1. 1metehan.ai
  2. 2frase.io
  3. 3foundbygeo.com
  4. 4geosoftwarerankings.com
  5. 5geonimo.com
  6. 6dupple.com
  7. +6 more

Not namedAttensira is missing from this ChatGPT answer.

attensira.com workspace, a stored ChatGPT answer read over the Attensira MCP ·
Karl-Gustav KallasmaaKarl-Gustav Kallasmaa, Founder & CEO

Last updated

Key facts

Prompt engineering is the practice of structuring the text sent to a language model, instructions, context, examples and formatting, so that its output meets a success criterion you defined in advance. It is an empirical activity, not a stylistic one: the same prompt run twice does not return the same text, so a change can only be judged against a test.

Anthropic's prompt engineering overview makes that precondition explicit. It assumes you have a clear definition of success, a way to test against it, and a first draft to improve. It also says plainly that not every failing evaluation is best solved by prompting; latency and cost are often fixed more cheaply by choosing a different model.

Which prompt engineering techniques are documented?

The published guidance from the two largest providers converges, which suggests these are properties of the systems rather than folklore.

  • Be explicit and sequential. Anthropic recommends numbered lists or bullets when the order or completeness of steps matters.
  • Use a few good examples. Anthropic calls examples one of the most reliable ways to steer format and tone, and recommends 3-5 that are relevant, diverse and structured. OpenAI's prompting guide gives the same advice: a handful of input and output pairs covering a range of inputs.
  • Delimit the parts. Anthropic recommends XML tags such as <instructions>, <context> and <input>; OpenAI recommends Markdown headers or XML tags.
  • Put long inputs first. For inputs of 20k+ tokens, Anthropic advises placing documents near the top, above the query and instructions.
  • Order for caching. OpenAI advises putting content you reuse at the start of the prompt, for cost and latency.
  • Separate roles. OpenAI describes developer, user and assistant messages as carrying different levels of authority.
  • Chain when you need to inspect the middle. Draft, review against criteria, refine, when you need to log or branch on an intermediate result.

How much does prompt wording change an AI visibility number?

Completely, and our own data shows it. Attensira tracks questions for attensira.com on ChatGPT and Perplexity every day. Over the 30 days to 4 October 2026, prompts about the same brand gave opposite pictures.

"what is Attensira" named us in 66 of 66 answers. "best GEO tools" named us in 0 of 114. The table in the band below adds two more questions of each kind, and the pattern does not move: the questions that contain our name were answered with our name in 197 of 198 answers, and no category question named us once.

Neither number is wrong. The first kind measures whether engines know us when asked by name; the second kind measures whether they reach for us when a buyer asks about the category. Report only the first kind and we look universally known; report only the second and we look invisible. That is why an AI visibility number without its prompt list is not a number, and why two tools can disagree about one brand in the same week without either being wrong.

The practical rule follows: treat a prompt set like a schema. Write it down, version it, change it deliberately, and never compare two windows across an edit, because the denominator changed meaning, not just size.

Does wording change who gets named?

Completely. The three questions that contain our name were answered with it in 197 of 198 answers over 30 days; three category questions, asked the same days on the same engines, named us in none of 341.

Named Attensira: questions with our name vs category questions
  • what is Attensira

    Kind
    Branded
    Answers
    66
    Named Attensira
    66
  • Attensira reviews

    Kind
    Branded
    Answers
    66
    Named Attensira
    66
  • Attensira vs Profound

    Kind
    Branded
    Answers
    66
    Named Attensira
    65
  • best GEO tools

    Kind
    Category
    Answers
    114
    Named Attensira
    0
  • best answer engine optimization tools

    Kind
    Category
    Answers
    115
    Named Attensira
    0
  • best AI search visibility tools

    Kind
    Category
    Answers
    112
    Named Attensira
    0
Analyst agentAnalyst · reads this workspace's answersattensira.com workspace, ChatGPT and Perplexity, 30 days, read over the Attensira MCP · · 539 answers

How should you write prompts for tracking AI answers?

The way a buyer types them, not the way your marketing team talks. Attensira's prompt documentation puts it as a contrast: "What's the best expense tool for a 20-person agency?" is a prompt; "expense tool agency" is a keyword, and no one asks it. It also advises leaving your brand out of most prompts, because an unbranded question is the honest test of whether a model reaches for you unprompted.

Language matters too. When a workspace reads a market in another language, Attensira translates each prompt once into that language and keeps your brand, domain and competitors' names exactly as written, because a buyer in Germany asks in German and gets a different answer. A translation that fails waits; it is never asked in the original language under the German label.

What goes wrong with prompt engineering?

  • Tuning without an eval. One better-looking output is one draw, not evidence.
  • Prompting around a retrieval failure. If the document never entered the context window, rewording cannot surface it. That is a retrieval problem.
  • Overstuffing the window. Accuracy and recall degrade as a window fills.
  • Confusing compliance with correctness. A well-structured prompt makes output well-formed, not true.
  • Treating retrieved text as instructions. Content pulled in from the web can carry instructions of its own; see prompt injection.
  • Silently changing a tracked prompt set. The most common measurement error in this field.

How does Attensira handle prompts?

It keeps the instrument stable and visible. You paste your buyers' questions, the crew files each one under a topic and you confirm before anything is tracked; every prompt then runs on each engine you track once a day, with the same wording, and its history starts the day it was added rather than being backfilled. Every rate shows the prompts behind it and the sample size, so a number can always be traced to what was asked. See prompt tracking.

Questions about prompt engineering

What should exist before I start prompt engineering?
Anthropic's prompt engineering overview assumes you already have a clear definition of success for your use case, a way to test empirically against it, and a first draft prompt to improve. Without the test, changes are opinions, because output varies between runs.
How many examples should a few-shot prompt contain?
Anthropic's prompting best practices recommend 3-5 examples for best results, wrapped in <example> tags so the model can tell them from instructions, and say they should be relevant, diverse and structured.
Where in the prompt should a long document go?
At the top. For inputs of 20k+ tokens, Anthropic advises placing long documents near the top of the prompt, above the query, instructions and examples, and says this improves performance across its models.
Is prompt engineering always the right fix?
No. Anthropic says not every failing evaluation is best solved by prompt engineering; latency and cost are often fixed more easily by choosing a different model. Retrieval problems are the other common case: if the right document was never fetched, no rewording recovers it.
Why does prompt wording matter for AI visibility numbers?
Because the prompt is the measurement instrument. A mention rate is computed over prompts someone wrote, and rewording one changes which documents are retrieved and which brands are named. Two tools reporting different numbers for the same brand are usually running different prompts.
Should tracked prompts include my brand name?
Mostly not. A branded question tests whether engines know you; an unbranded one tests whether they reach for you unprompted, which is what buyers experience. Attensira's documentation advises leaving the brand out unless you specifically want to measure branded questions, and to track a few of those on purpose.

Where do these facts come from?

3 sources, 4 statements: each statement with the page it came from and the day it was checked.

  1. Anthropic's prompting best practices documentation recommends including 3-5 examples for best results when using few-shot prompting, and wrapping each in <example> tags so the model can distinguish examples from instructions.

    platform.claude.com · retrieved

  2. Anthropic scopes its long-context prompting guidance to inputs of 20k+ tokens and advises placing longform data near the top of the prompt, above the query and instructions, stating this improves performance across all models.

    platform.claude.com · retrieved

  3. In Attensira's own workspace for attensira.com over the 30 days to 4 October 2026, read over the Attensira MCP on 4 October 2026, the branded prompt 'what is Attensira' named Attensira in 66 of 66 answers across ChatGPT and Perplexity, while the unbranded prompt 'best GEO tools' named it in none of 57 ChatGPT answers and none of 57 Perplexity answers; 'Attensira reviews' named it in 66 of 66 and 'Attensira vs Profound' in 65 of 66, while 'best answer engine optimization tools' (115 answers) and 'best AI search visibility tools' (112 answers) named it in none.

    docs.attensira.com · retrieved

  4. Asked 'best GEO tools' on 3 October 2026, a ChatGPT answer stored in Attensira's own workspace said current 2026 comparisons consistently put Profound, Peec AI, Otterly, Scrunch, Ahrefs and Semrush among the leading options, and did not name Attensira.

    attensira.com workspace, read over the Attensira MCP on

Want whatever it takes to win the answer?

7 days free · card required