You type "Write a short update about the delay" into a chat assistant and get four bland paragraphs about "unforeseen challenges". A colleague types almost the same words and gets a sharp, usable note. The difference is rarely luck. It is the prompt, and the prompt is much more than the line either of you typed.
A prompt is everything a language model reads before it writes an answer. In a chat app, that is a hidden set of instructions from the app, the conversation so far, any files you attached and your new message, joined into one long input. Once you know what is in that package, most surprising AI answers stop being surprising, and you know which part to fix. This lesson opens the Prompt Engineering pathway; the next one, FROG in a Bowl, turns it into a checklist.
TL;DR
| Question | Short answer |
|---|---|
| What is a prompt? | All the input the model reads before it answers, not only your last message |
| What is inside it in a chat app? | System prompt + earlier messages + attached files + your message |
| Who writes the system prompt? | Whoever built the app; you usually cannot see it |
| Why do answers vary? | The model picks words with some randomness, and the hidden parts of the prompt differ |
| Can the model see my other chats or files? | Only if the app adds them (attachments, memory, connectors) |
| Is a prompt like a search query? | No. A search finds pages; a prompt asks the model to write new text from what it reads |
| What should I learn next? | The parts of a good prompt: FROG in a Bowl |
What counts as a prompt?
A large language model does one thing: it reads a stretch of text and predicts what comes next, one small piece (a token) at a time. The prompt is that stretch of text. Everything the model "knows" about your task in the moment comes from two places: what it learned in training, and what is in the prompt.
That makes the prompt your only lever. You cannot change what the model learned. You can change what it reads.
A prompt can be:
- An instruction: "Summarise this contract in five bullet points."
- A question: "Why does my Excel formula return #VALUE?"
- Examples to copy: three subject lines you liked, followed by "write three more like these".
- Material to work on: a pasted report, an image, a spreadsheet.
- A role or point of view: "Review this as a sceptical CFO would."
Most good prompts mix several of these. The FROG in a Bowl method gives the mix a fixed order, so you do not forget a part.
What the model actually sees
When you press Enter in a chat app, the app does not send your message alone. It builds one input from several layers and sends that to the model.
What is a prompt: the layers a chat app joins into one input before the model reads it
| Layer | Who writes it | Can you see it? | Example |
|---|---|---|---|
| System prompt | The company or developer who built the app | Usually not | "You are a helpful assistant. Today is 5 December. Do not give legal advice." |
| Custom instructions and memory | You, in settings, or the app from past chats | In settings | "I work in B2B marketing. Use British spelling." |
| Conversation history | You and the model, earlier in this chat | Yes | Your last ten messages and its replies |
| Attachments and tool results | You (files), or the app (web search, connectors) | Partly | A PDF, a search result, a row from a spreadsheet |
| Your new message | You | Yes | "Now make it shorter." |
The model reads all of it as one text. That explains several everyday puzzles:
- "Make it shorter" works because the earlier draft is in the history. Start a new chat and the same words mean nothing.
- The assistant refuses something that a different app allows. The two apps have different system prompts, even if the model underneath is the same.
- Long chats drift. Every model can read only so much at once. That limit is the context window. In a very long conversation, early details are summarised, cut or given less attention.
- Facts get invented when the prompt does not contain them. The model fills the gap with something plausible. That is one of the main reasons AI models hallucinate.
Why the same prompt gives different answers
Ask the same question twice and you may get two different answers. There are two reasons.
Why the same prompt gives different answers: the sampling temperature dial in a language model
The model samples. At each step it has a ranked list of likely next tokens, and it picks one with a little randomness. That randomness is what makes answers sound natural instead of robotic, and it is controlled by settings such as temperature, top-p and top-k. Chat apps choose these settings for you. Developers can set them through the API.
The hidden parts differ. Your memory settings, the chat history, the app's system prompt, the time of day written into it, and the model version can all change between two runs. Two people typing the same words into two accounts are not sending the same prompt.
The practical rule: for anything you will act on, run the prompt more than once, or ask in a fresh chat, and compare. If the answers disagree on a fact, check that fact before you use it.
A prompt is not a search query
Many people prompt the way they search: a few keywords, no context. "Q3 marketing plan ideas". Search engines are built for this. They match your words to pages that already exist and show you a list.
A language model writes a new answer from what it reads. With a few keywords it has almost nothing to work with, so it writes the most average answer it can. That is why short prompts produce generic text.
| Search engine | Language model | |
|---|---|---|
| What it does with your words | Finds existing pages that match | Writes new text that continues them |
| Best input | Short, distinctive keywords | A full request with context and a clear goal |
| What it returns | Links to sources | One answer, with no sources unless asked or given |
| When it is wrong | The page is wrong | The model filled a gap with a guess |
Compare these two prompts for the same task:
Search-style: Q3 marketing plan ideas
Prompt-style: I run marketing for a 20-person B2B software company selling to finance teams. Our Q3 budget is fixed, and our best channel last quarter was webinars. Suggest five campaign ideas for Q3, each with one sentence on why it fits a finance audience. Return a table.
The second one tells the model who you are, what constraints apply, what good looks like and what shape the answer should take. It is longer, and it takes a minute to write. It also produces something you can use.
Types of prompts you will use
You do not need to memorise a taxonomy, but naming the common patterns helps you pick one on purpose.
| Pattern | What it is | Use it when | Learn more |
|---|---|---|---|
| Zero-shot | A plain instruction, no examples | The task is common and the format is simple | Zero-shot vs few-shot vs chain-of-thought |
| Few-shot | Two or three examples, then "do the same for this" | You need a specific tone, format or labelling | Same guide |
| Step by step | You ask the model to work through the problem before answering | Multi-step maths, logic, planning | Same guide; many newer models do this on their own |
| Role | "Act as a sceptical editor" | Tone and point of view matter | Does coaxing an AI actually work? |
| Template | A saved prompt with blanks you fill in each time | You repeat the same task weekly | What is meta-prompting? |
| Follow-up | A short message that builds on the last answer | You are refining a draft | This lesson: it works because of the history |
One caution on roles: telling a model it is "the world's best physicist" changes its tone, not its accuracy. Research summarised in our coaxing guide found that personas, tips and threats do not make answers more correct. Clear instructions and the right facts do.
Five beginner mistakes, and what to do instead
- Assuming the model knows your situation. It does not know your company, your audience, your deadline or last week's meeting. Paste the facts it needs.
- Asking for several things at once. "Summarise this, find the risks, draft a reply and suggest an agenda" gets four thin answers. Ask for one thing, then follow up.
- Not saying what the answer is for. "Write an email" and "write an email my CFO can approve in one read" are different tasks. Say who reads it and what they must do.
- Not naming the shape. If you need three bullets, a table or a two-line note, say so. Otherwise you get the model's default: a few friendly paragraphs.
- Trusting the first answer. Read it against the facts you gave. Anything that was not in your prompt, such as a date, a number or a name, is a claim to check.
Each of these maps to one part of a good prompt: context, objective, goal, format and a final check. That is exactly the checklist in the next lesson, FROG in a Bowl.
What to learn next
A prompt is the full input the model reads. You control only some of it, so make that part count: the facts the model cannot know, the one task you want done, what a good answer looks like, and the shape you need it in.
From here, the Prompt Engineering pathway builds the skill step by step: the parts of a good prompt, examples and step-by-step reasoning, system prompts for standing rules, and finally how to test a prompt before you reuse it. If you want to practise this live with feedback, the AI Basics workshop covers prompting from the first message.
Related reading
- FROG in a Bowl: the parts of a good prompt
- What is a system prompt?
- What is a large language model?
- What is a context window?
- What are LLM tokens?
- Why AI models hallucinate, and how to catch it
- Temperature, top-p and top-k explained
Official guides: Anthropic prompt engineering overview · OpenAI prompt engineering guide · Google Gemini prompt design strategies
How chat apps assemble prompts (memory, connectors, system prompts) changes as products update. The idea in this lesson stays the same: the model answers what it reads. Accurate as of December 2026. Follow @explainx_ai for updates.
