What Is Prompt Engineering? (2026)
Prompt engineering means giving AI the right instructions so it gives the right answer. AI is not magic — it runs on your instructions. Good instructions = a good answer, bad instructions = a useless answer. In this guide, learn what a prompt is, what the 5-part formula is, and what the common mistakes are.
Updated: 13 November 2026.
What is a prompt?
A prompt is the instruction you give to AI. For example: 'a picture of a house' is a prompt, and 'Photorealistic golden sunset over open ocean, warm light, dramatic orange sky, peaceful mood, cinematic, highly detailed, no text, 16:9' is also a prompt. The first gives an ordinary picture, the second a professional one. The difference is the prompt, not the AI. People who get better work from AI actually write better prompts.
The 5-part formula for text prompts
For writing work (CV, email, story, assignment), a prompt has five parts. 1. Role: what the AI should become (for example: 'you are a CV expert'). 2. Task: what it should do (for example: 'write my CV'). 3. Context: who it is for (for example: 'I am a 10th-class student, I need my first job'). 4. Format: in what form (for example: 'in bullet points, one page'). 5. Example: an example (for example: 'like this line: ...'). Write all five together and the answer improves right away.
The 5-part formula for image prompts
The formula for pictures is slightly different, from our Gemini image guide: 1. Subject: what is in the picture. 2. Style: how it should look (photorealistic, cartoon, oil painting). 3. Lighting: what the light is like (warm golden light, soft morning light). 4. Mood: the feeling (peaceful, dramatic). 5. Details: technical (16:9 landscape, no text, highly detailed). A complete example: 'Photorealistic golden sunset over open ocean, warm light reflecting on gentle waves, dramatic orange sky, peaceful mood, cinematic, highly detailed, no text, 16:9'.
Steps to write a good prompt
Step 1: First write your goal in one line — what do you want. Step 2: Give a role, tell the AI what to become. Step 3: Give context — who it is for and why you need it. Step 4: Tell it the format — bullet points, a table or a story. Step 5: Look at the first answer and refine it — change one or two words and try again. Professional people try 5-10 variations on one prompt, then pick the best. If the first try is not perfect, do not give up — that is normal.
Common mistakes beginners make
Mistake 1: a prompt that is too short — 'write a CV' gives an ordinary CV, so give context. Mistake 2: not telling it any format, then you do not like the shape of the answer. Mistake 3: giving up on the first try — refining is the real skill. Mistake 4: asking it to write text in the prompt — AI text often comes with wrong spellings, so add the text yourself later. Mistake 5: using the AI's answer without checking it — always verify the facts.
3 ready-made prompts — copy and try them
For a CV: 'You are a CV expert. Write my CV. I am a 10th-class student, I need my first part-time job, I have no experience. In bullet points, one page, answer in English.' For an email: 'You are a professional email writer. Write a thank-you email to a customer for my shop, 5 lines, friendly tone, in English.' For a story: 'Write me a short story, a child and an old house, 200 words, simple English, with a lesson at the end.'
The last word
Prompt engineering is a skill, and it gets better with daily practice. Write one prompt every day and refine it — you will see the difference in a week. Save your best prompts, and they will become your library. And if you want to earn money with AI, read our guide to earning money with AI — good prompting helps there too.
Try it: a better prompt
Improve this prompt of mine: 'Write a CV'. First tell me what is missing in it, then rewrite it using the 5-part formula (role, task, context, format, example), in English.
Common questions
What is prompt engineering?
It is the method of giving AI the right instructions. Good instructions get a good answer from AI, bad instructions get a useless answer. It is not coding — it is the skill of writing clearly.
Do I need to know coding for this?
No. You only need to write clearly: what you want, who it is for, and in what form. That is the whole skill.
How long should a good prompt be?
As long as it needs to be. A short, clear prompt is better than a long, confusing instruction. Usually 2-4 lines are enough.
Does the same prompt work on every tool?
The foundation is the same, but every tool has its own preference. For images, the 5-part formula (subject, style, lighting, mood, details), and for text, role, task, context, format and example.
Can you earn money from prompts?
Yes. Prompt packs sell as digital products, and good prompting helps in freelancing, because the client gets better and faster work.
Want to learn more? The free course is here.
Related: What Is AI? Understand It in Simple Words / How to Create Free AI Images with Gemini / 7 Ways to Earn Money with AI in Pakistan (2026) / Gemini vs ChatGPT 2026: Which Is Better in Pakistan? / Free AI Tools for Students in Pakistan (2026) / How to Create a ChatGPT Account in Pakistan (Step-by-Step) / Free AI Video Generator: How to Make Videos (2026) / AI Tools Directory — all 35 free tools / Compare AI Tools side by side