What Is a Prompt
Why does the same assistant give one person a brilliant answer and another a useless one? Srihitha and her sister Navika both ask a chat assistant about AI. Navika types "Explain artificial intelligence" and gets a long, generic essay. Srihitha types two more sentences of detail and gets exactly what she needs. Same model, different instructions.
Those instructions are a prompt. This lesson explains what a prompt is, why clear prompts work better, and the difference between system prompts and user prompts.
A Prompt Is Your Instruction
A prompt is the instruction or input you give a model: a question, a request, a document to work on, or examples to follow. The model can only use what the prompt contains, plus what it learned in training, so the prompt shapes everything that comes back.
The clear prompt added an audience (a bakery owner), a length (four sentences), a style (plain) and an example to use (running a bakery). None of that is magic wording; it is the detail you would give a capable colleague.
System Prompts and User Prompts
| Kind | Who writes it | What it does | Example |
|---|---|---|---|
| System prompt | The app's builder | Sets the model's role and rules for the whole conversation | "You are a friendly tutor. Keep answers short." |
| User prompt | You | Asks for something specific, message by message | "Explain fractions with a pizza example." |
Chat apps usually have a system prompt you never see, which is one reason the same model behaves differently in different apps. When you build with a model API, you write the system prompt yourself.
Common Mistakes
Writing prompts like search queries. "AI bakery" works for a search engine; a model does better with a full request.
Expecting the model to guess the audience. Say who the answer is for.
Thinking there is one perfect magic phrase. Clear detail beats special wording.
Interview Corner
What is a prompt?
The instruction or input given to a model, such as a question, a request, a document or examples. The model's output depends heavily on how clear and complete the prompt is.
What is the difference between a system prompt and a user prompt?
A system prompt, written by the app's builder, sets the model's role and rules for the whole conversation. A user prompt is each request the user sends.
Practice
Exercise: improve one prompt. Take a vague prompt you have used, such as "Help me with my resume". Rewrite it with an audience, a goal, a length and a format. Send both versions to the same assistant. List three differences in the answers.
Check your understanding:
- What is a prompt?
- What four details did the clear bakery prompt add?
- Who writes the system prompt in a chat app?
Key Takeaways
Quick reference
| Term | Meaning |
|---|---|
| Prompt | The instruction or input given to a model |
| System prompt | The builder's instructions that set role and rules |
| User prompt | The user's request in a conversation |
Was this tutorial helpful?