Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Accept all cookies

AI Prompts: The Method to Write Prompts That Get Useful Answers

What an AI prompt is, the six parts of a good prompt, techniques that work (examples, steps, self-review), common mistakes and before/after marketing prompts.

Published on:
17/10/2026
-
Updated on:
17/10/2026
Cover of the Sorank guide to writing AI prompts, with a prompt split into role, context, task, constraints, format and examples

Tools

Thibault Besson-Magdelain, founder of Sorank

About Author

Thibault Besson-Magdelain

Founder of Sorank, 7+ years of experience in SEO, GEO enthusiast.
On this page

In short

An AI prompt is the instruction you give to an assistant such as ChatGPT, Claude or Gemini. A good prompt states who the AI should act as, the context, the exact task, the constraints, the expected format and, when useful, an example of the result. Adding examples, asking the model to work step by step and having it review its own answer improve results further. The same logic applies on the other side: the prompts your customers type into the AI decide whether your brand is recommended, and they can be tracked.

Want to go further? Ask

Writing an AI prompt is a skill close to writing a good brief for a colleague. Model providers publish their own advice, such as the OpenAI prompt engineering guide, and the principles below are shared by most of them. Our glossary entry on prompt engineering covers the vocabulary.

What is an AI prompt?

A prompt is everything the model reads before it answers: your question, the instructions, any pasted document and the earlier messages of the conversation. The model has no other information about your goal, your audience or your standards. A vague prompt gets an average answer, because the model fills the gaps with the most likely generic choices.

What are the parts of a good prompt?

1. Role

Tell the AI who it should act as: "You are a B2B copywriter who writes for finance directors." The role sets vocabulary, tone and level of expertise.

2. Context

Explain the situation: the company, the product, the audience, the goal of the text, what has already been done. Context is the part most people skip and the one that changes results most.

3. Task

State one clear task with an action verb: write, summarize, compare, rewrite, list. Split large jobs into several prompts.

4. Constraints

Length, tone, words to avoid, facts to include, reading level, language. Constraints turn a generic answer into one that fits your brand.

5. Format

Say how the answer should look: a table with given columns, a numbered list, three versions, a JSON object, headings and short paragraphs.

6. Examples

Show one or two examples of what you expect. This technique is called few-shot prompting, after the research paper Language Models are Few-Shot Learners, which showed that large models can pick up a task from a handful of examples placed in the prompt. See our entry on few-shot learning.

Which prompting techniques work best?

  • Ask for steps: on reasoning tasks, asking the model to work through the problem step by step improves accuracy. The idea was formalized in research on chain-of-thought prompting.
  • Give reference material: paste the source text, data or style guide and ask the model to use only that. It reduces invented facts.
  • Ask for a self-review: "Check your answer against the constraints and correct anything that does not fit."
  • Ask questions first: "Before writing, ask me the questions you need answered." Useful when you are not sure what context to give.
  • Iterate: treat the first answer as a draft and refine with precise feedback ("shorter", "more concrete", "remove the jargon").
  • Separate instructions from content: put pasted text between clear markers so the model does not confuse it with your instructions.

Bad prompt vs good prompt: marketing examples

UseWeak promptBetter prompt
Product descriptionWrite a description for our water bottle.You are an e-commerce copywriter. Write a 120-word description of a 750 ml insulated steel bottle for hikers. Mention: keeps cold 24 h, 380 g, dishwasher safe. Tone: practical, no superlatives. End with one line on the warranty.
Email subject linesGive me subject lines for our newsletter.Give 10 subject lines under 45 characters for a newsletter announcing a new invoicing feature to small business owners. Avoid capitals and exclamation marks. Rank them by expected open rate and explain the top 3 in one line each.
LinkedIn postWrite a LinkedIn post about our study.Write a LinkedIn post of 150 to 200 words for HR managers about our survey of 400 recruiters (key finding pasted below). Open with the finding, add one practical tip, finish with a question. No hashtags in the text, three at the end.
Customer personaCreate a persona for our app.From the 20 customer reviews pasted below, describe our main customer type in a table: role, company size, problem, trigger to buy, objections, words they use. Quote the reviews that support each line.
Ad variationsMake ads for our sale.Write 5 Google Ads headlines (max 30 characters) and 3 descriptions (max 90 characters) for a 20% sale on running shoes, ending Sunday. Include the offer in every headline. Return a table with the character count.

What mistakes should you avoid?

  • Too little context: the model guesses your audience and goal.
  • Several tasks at once: quality drops on each one.
  • Contradictory instructions: "short but detailed", "formal but casual".
  • Asking for facts without sources: the model may produce plausible but false figures. Provide the data or verify everything.
  • Accepting the first answer: two or three rounds of feedback usually make the difference.
  • Pasting confidential data into tools whose data policy you have not checked.

For ready-made SEO and GEO prompts built on this method, see our library of SEO and GEO prompts. To refine prompts over time, our entry on prompt optimization explains how to test versions against each other.

What about the prompts your customers type?

Prompts also matter from the other side. When a buyer asks ChatGPT "which accounting software for a small agency?" or asks Perplexity "best CRM for real estate", the answer names a few brands. Those prompts work like search queries: they are longer, more conversational and more specific, and they increasingly decide who gets considered.

Following a list of these prompts and checking which brands appear is called prompt monitoring. It tells you on which questions you are recommended, on which you are absent and which sources the AI cite instead. That data then guides your content: pages that answer those questions clearly, with sourced facts, are the ones assistants cite.

A good AI prompt gives the model what a good colleague would need: a role, the context, one task, clear constraints, a format and an example; and the prompts your customers type deserve the same attention, because they decide whether the AI recommend you. To track those customer prompts in ChatGPT, Claude and Gemini, Sorank follows 25 to 150 prompts depending on the plan, shows who is cited in your place and publishes optimized articles on autopilot, with a 3-day free trial.

Frequently asked questions

How long should an AI prompt be?

As long as needed to give the context, the task, the constraints and the format, and no longer. A one-line prompt is fine for a simple question, while a content brief can run to several paragraphs with pasted material. Clarity matters more than length: remove anything that does not change the result.

Do the same prompts work in ChatGPT, Claude and Gemini?

Mostly yes. The core principles of context, clear task, constraints, format and examples work across current assistants. Results still differ in tone, length and formatting habits, so test an important prompt in each tool you use and adjust the constraints if needed.

What is a system prompt?

A system prompt is a set of standing instructions placed before the conversation, such as the role, the tone and the rules the assistant must follow. Many tools let you set them as custom instructions or in a project. It saves you from repeating the same context in every message.

Our Blog for Ambitious Company

Our free SEO tools

See all our free tools

THEY TRIED SORANK BEFORE YOU

Testimonials from ambitious founders

Organic growthE-commerce

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.fr
Organic growthSoftware

0 to 5000 clients in 8 months

Thibault BMsorank.com
Organic growthLeisure and aviation

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.com
Organic growthMusic software

x30 clicks in 4 months

Valentin Cordiertiger-sounds.com
Organic growthHealth and wellness

x30 clicks in 4 months

Rodrigue Bretonalthevia.com