Explainer · Updated November 28, 2026 · 4 minute read
What is a prompt?
The short answer
A prompt is the input you give an AI model to tell it what you want, usually as text. It can be a single question or several pages of instructions and background material. Apart from what it learned in training, the model has only the prompt to go on, so the wording and the context you include have a large effect on the answer.
What counts as a prompt
Everything the model reads before it answers is part of the prompt. That includes your typed message and any files you attach. In a chat it also includes the earlier turns of the conversation, which is how the model appears to remember what was said. Most products also add a system prompt, hidden instructions from the company or developer that set the assistant's role and rules.
What makes a prompt work
The model knows nothing about your situation beyond what is in the prompt. Prompts that work well read like a clear brief to a capable colleague who is new to the project.
- Say what the result is for and who will read it.
- Include the material the model should work from, such as the email you are replying to.
- Describe the format and length you want.
- Give an example of a good result if you have one.
- Ask for changes in a follow-up message instead of starting over.
Prompt engineering
Prompt engineering is the practice of designing and testing prompts so that a model behaves reliably, usually inside a product where the same prompt runs thousands of times. Developers write a system prompt, run it against many test cases and revise it when the model gets something wrong.
Everyday use needs no special formulas. As models have improved, tricks such as set phrases have come to matter less than plain, specific instructions.
Risks to know about
With an online service, anything you put in a prompt is sent to the company that runs the model, so think before pasting in passwords or confidential documents. Prompts can also be used against a model. In a prompt injection attack, instructions hidden in a web page or a file trick the model into following them in place of the user's request.
Common questions
What is a system prompt?
A system prompt is a set of instructions that the developer of an AI product gives the model before the conversation starts. It defines how the assistant should behave and is normally hidden from the user, though some companies publish theirs.
Is prompt engineering a real job?
Some companies hire for it, and many more treat it as one skill within software or product work. Most of the work is clear writing and careful testing.
Do longer prompts give better answers?
A longer prompt often helps when the extra length is relevant background or a clear example. Padding and repeated instructions do not help and can distract the model.