Objective: Learn how to communicate effectively with AI models and AI agents to get accurate, useful and predictable results
Prompt Engineering is not just about asking questions. It is about providing clear instructions, context, requirements and constraints so that AI can perform a task correctly.
This module is especially useful for developers working with ChatGPT, Claude, Gemini and Google Antigravity.
What is Prompt Structure?
Prompt Structure means organizing your instructions in a way that makes it easier for an AI model to understand your requirements.
Consider this example.
Without structure:
The AI may understand the request, but some requirements are unclear.
With structure:
The second prompt is easier to understand because the instructions are organized.
Six Important Components of Prompt Structure
Component | Meaning |
|---|---|
Role | Who should AI act as? |
Task | What should AI do? |
Context | What information does AI need? |
Requirements | What must be included? |
Constraints | What rules must AI follow? |
Output Format | How should AI present the result? |
Not every prompt needs all six components. Use the ones relevant to your task.
A. Role
Defines the expertise or perspective AI should use.
Task
Defines the actual work.
Context
Provides background information.
Requirements
Defines the features you need.
Constraints
Defines what AI must follow or avoid.
Output Format
Defines the expected response.