Prompt Engineering

Ask better.
Get better.

Learn how to communicate effectively with AI, write clearer prompts and get more useful results from AI systems.

The Basics

What is Prompt Engineering?

Prompt engineering is the practice of designing and refining instructions given to an AI system to produce a useful, relevant and reliable response.

You don't need complicated technical language. The goal is simply to communicate your objective clearly and provide the AI with enough context to understand what you need.

💬

Prompt → AI → Response

You provide

A clear instruction and relevant context

AI processes

Your instructions using its learned patterns

Result

A response based on your request

Core Principles

Six habits of better prompts

Strong prompts usually combine a clear objective with context, constraints and a useful output format.

🎯
01

Be Specific

Clearly explain what you want the AI to accomplish instead of giving a vague instruction.

📋
02

Give Context

Provide the background, audience, goal and information the AI needs to produce a useful response.

👤
03

Define the Role

Tell the AI what perspective or expertise it should use when responding to your request.

📐
04

Specify the Format

Tell the AI whether you want a table, bullet points, checklist, explanation, code or another format.

🔍
05

Add Constraints

Set useful boundaries such as length, language, difficulty level, tone or required information.

🔄
06

Iterate

Good prompting is often a conversation. Review the result and refine your instructions.

A Simple Framework

Build a better prompt.

A useful starting framework is to tell the AI who it should be, what it should do, what it needs to know and how you want the answer presented.

01
Role
02
Task
03
Context
04
Constraints
05
Output Format

Example structure

Role: Act as a data analyst.
Task: Analyze this sales dataset.
Context: The dataset contains monthly sales from 2025.
Constraints: Focus on the three most important trends.
Output: Present the findings in a concise table.

Before & After

Turn weak prompts into useful prompts

Compare a vague instruction with a more specific prompt.

✍️

Writing

Weak prompt

"Write a post about data analytics."

Better prompt

"Write a 150-word LinkedIn post explaining why Excel, SQL and Power BI are useful skills for beginners entering data analytics. Use a professional but beginner-friendly tone."

📚

Learning

Weak prompt

"Explain SQL."

Better prompt

"Teach me SQL as a complete beginner. Explain SELECT, WHERE and GROUP BY using one simple sales dataset and provide three practice questions."

📊

Data Analysis

Weak prompt

"Analyze this data."

Better prompt

"Act as a data analyst. Examine this sales dataset, identify the three most important trends, point out unusual values and present your findings in a concise table."

💻

Coding

Weak prompt

"Fix my code."

Better prompt

"Act as a senior JavaScript developer. Find the bug in the following code, explain why it happens, provide the corrected version and briefly explain each change."

Avoid These

Common prompting mistakes

Prompt engineering is not about writing extremely long prompts. It is about providing the right information.

×Being too vague about the desired result
×Giving no context about the problem
×Not specifying the target audience
×Expecting the AI to know missing information
×Using unnecessary complexity
×Accepting the first answer without reviewing it
🧠

Better prompts don't guarantee perfect answers.

AI systems can still misunderstand instructions or produce incorrect information. Review important outputs and verify facts before relying on them.