Instruction in Prompt Engineering
The prompt instruction is the main task direction given to an AI model. It tells the model what action to perform, such as explain, summarize, compare, rewrite, classify, generate, analyze, or convert. Without a clear instruction, the model may guess what the user wants and produce a response that is too broad or misaligned.
In the anatomy of a good prompt, instruction is the starting point. It gives the AI a purpose. A strong instruction does not simply mention a topic; it tells the model exactly what to do with that topic.
What is an Instruction?
An instruction is the command or task statement inside a prompt. It answers the question: “What should the AI do?” For example, “Explain customer segmentation,” “Summarize this report,” “Rewrite this paragraph,” and “Create a study plan” are all instructions.
A weak instruction may only name a subject. A strong instruction defines the action, scope, and expected result. This difference is important because AI models respond better when the task is clearly framed.
Core Idea: Instruction is the action engine of a prompt. It tells the AI what job it must complete.
Weak Instruction vs Strong Instruction
| Weak Instruction | Problem | Strong Instruction |
|---|---|---|
| AI in marketing | Only gives a topic, not a task. | Explain how AI is used in marketing with three beginner-friendly examples. |
| Sales report | The model does not know whether to summarize, analyze, or rewrite. | Summarize this sales report into key findings, risks, and recommended actions. |
| Customer feedback | The expected output is unclear. | Classify these customer feedback comments as positive, negative, or neutral. |
| Make content | Too broad and directionless. | Create five LinkedIn post ideas for a beginner data analytics audience. |
Common Instruction Verbs
Good prompt instructions often begin with action verbs. These verbs tell the AI what kind of thinking or output is required. Choosing the right verb can change the entire response.
Instruction Should Match the Goal
The instruction must match the actual goal. If the goal is to understand a concept, use “explain.” If the goal is to make a decision, use “compare” or “evaluate.” If the goal is to improve writing, use “rewrite,” “edit,” or “polish.” If the goal is to extract information, use “extract” or “identify.”
| User Goal | Useful Instruction Verb | Example Prompt Instruction |
|---|---|---|
| Learn a concept | Explain | Explain prompt engineering to a beginner. |
| Reduce long text | Summarize | Summarize this article into five key points. |
| Make a decision | Compare | Compare these two software tools using cost, features, and ease of use. |
| Improve writing | Rewrite | Rewrite this email in a professional and polite tone. |
| Find details | Extract | Extract names, companies, email addresses, and phone numbers from this text. |
How to Write a Clear Instruction
A clear instruction should be direct, specific, and action-oriented. It should avoid unnecessary ambiguity. Instead of asking the AI to “do something with this,” tell it exactly what operation to perform.
Instruction Writing Process
Practical Example
Weak Prompt
“Social media marketing.”
Better Instruction
“Explain social media marketing to a beginner and include examples from Instagram, LinkedIn, and YouTube.”
The better version tells the AI to explain, defines the audience level, and names the platforms to include. The instruction is no longer just a topic. It becomes a usable task.
Instruction Placement
Place the main instruction near the beginning of the prompt. This makes the task easy to identify. If the prompt is long, separate the instruction from the background information so that the model can clearly distinguish what to do from what to consider.
Important: Do not hide the main instruction inside a long paragraph. State the task clearly before adding details.
Instruction Checklist
Before submitting a prompt, check whether the instruction clearly says what the AI should do. If the instruction is only a topic, convert it into an action. If the instruction has multiple tasks, consider breaking it into steps.
Key Takeaways
- Instruction tells the AI what task to perform.
- A strong instruction uses clear action verbs such as explain, summarize, compare, rewrite, generate, classify, or extract.
- Instruction should match the user’s actual goal.
- The main instruction should appear clearly near the beginning of the prompt.
- Weak instructions often produce broad or generic answers.