# Prompt

> The Prompt is the input text or instructions given to an AI model to produce a response.

## What is a prompt in AI?

The instructions, question or data passed to a model as input. A clear prompt with context, constraints and examples of the expected result leads to more accurate answers.

- Topic: Prompting
- Type: concept

## Example

Wrong:

```text
Summarize this: {{email}}
```

Right:

```text
Summarize the email below in 3 bullet points for a support agent.
If it has no clear request, write 'No request'.
<email>
{{email}}
</email>
```

The better prompt states the audience, format and fallback, and the tags keep the email as data.

## Common mistakes

- Writing a vague prompt and blaming the model for a vague answer.

## Key points

- Instructions are separated from user data with clear delimiters or tags.
- Untrusted input is not inserted into the system prompt as if it were instructions.
- The prompt states the expected output format and what to do when information is missing.

## Interview questions

### What makes a good prompt?

A clear task, the needed context, constraints and the exact output format, plus what to do when information is missing.

### Is a longer prompt always better?

No. Text that does not help the task can distract the model and costs tokens. Add detail where the model actually goes wrong.

### What is the difference between a prompt and a system prompt?

The system prompt sets rules for the whole conversation. A prompt usually means the input for one request, often the user message.

## Related cards

- [Prompt Engineering](https://wonderium.dev/ai/prompt-engineering.md)
- [System Prompt](https://wonderium.dev/ai/system-prompt.md)
- [Prompt Template](https://wonderium.dev/ai/prompt-template.md)
- [Prompt Injection](https://wonderium.dev/ai/prompt-injection.md)
- [Message Roles](https://wonderium.dev/ai/message-roles.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/prompt
- Last updated: 2026-11-25
