Prompt Engineering Explained: The Complete Way to Get the Best Answers from AI
Many people say that AI gave them a "very ordinary" answer. Most of the time the reason is not the AI but the question. The more clearly you explain things to the AI, the more useful the answer will be. This skill is called Prompt Engineering, that is, the art of writing instructions for AI.
In this article you will learn which parts make up a good prompt, how to teach the AI your own style by giving examples, how to get answers in Urdu or Roman Urdu, which common mistakes to avoid, and finally 11 ready-made prompts you can start using today. These methods work on ChatGPT, Gemini and most other chatbots.
What Is a Prompt and Why Does It Matter?
A prompt is the message you write to the AI. The AI cannot read your mind; it only knows what you have written. If you write "Write something for YouTube", the AI does not know what topic the video is about, how long it is, who the viewers are, or which language you want. The result is a very generic piece of text. A good prompt fills in these blanks for it.
The Six Parts of a Good Prompt
Not every prompt needs every part, but the more of them you include, the better the answer will be.
1. Role
Tell the AI which kind of expert it should think like. For example, "You are an experienced Urdu teacher" or "You are a YouTube script writer". This changes the tone and depth of the answer.
2. Task
Write clearly what needs to be done. Use clear action verbs such as "write", "summarize", "compare", "find the mistakes" or "give 10 ideas".
3. Context
Explain who the work is for, what your goal is, and what information already exists. For example, "My channel is for Pakistani students who are new to computers."
4. Format
In what form do you want the answer? Bullet points, numbered steps, a table, an email, a 60-second script, or a single paragraph. Also state the length, for example "a maximum of 150 words".
5. Constraints
Also write what you do not want: "No difficult English words", "Do not give any made-up statistics", "If you are not sure, say clearly that you don't know". The last instruction is especially useful, because AI sometimes writes something wrong with complete confidence.
6. Examples
If you want a particular style, give one or two examples. This is called few-shot prompting. The next section explains it in detail.
Few-shot Prompting: Teach by Example
Suppose you want a short line in the same style for every product in your shop. Instead of only giving an instruction, give two examples:
Write a one-line product caption in simple Urdu, same style as these examples.
Example 1: Product: steel water bottle → "گرمی میں بھی پانی ٹھنڈا، سفر میں ساتھ ہمیشہ۔"
Example 2: Product: cotton bedsheet → "نرم کاٹن، سکون کی نیند، ہر موسم میں آرام۔"
Now write for: Product: leather wallet
(The two example captions mean roughly "Water stays cold even in the heat, always with you on the go" and "Soft cotton, peaceful sleep, comfort in every season".) From the examples the AI picks up the length, tone and style. Usually two or three examples are enough.
Iteration: The First Answer Is Not the Last
Good results often come on the second or third attempt. Read the first answer, then ask for improvements in the same chat:
- "Make it half as long"
- "Make the tone friendlier"
- "Explain the third point with an example"
- "Rewrite it in simple language for children"
A good habit is to ask the AI to ask you questions first: "Before you start, ask me 3 questions about anything you need to know". This way the AI itself tells you what information it needs.
If the conversation goes badly off track, start again in a new chat with a better prompt.
Urdu Script or Roman Urdu?
AI usually replies in the same language you ask in, but this is not always guaranteed. So state it clearly:
- For Urdu script: "Reply in Urdu script (اردو رسم الخط), simple everyday Pakistani Urdu."
- For Roman Urdu: "Reply in Roman Urdu (Urdu written in English letters), like a WhatsApp message."
- For a mixed language: "Write in Urdu script but keep technical terms like YouTube, CTR, prompt in English letters."
Always read a translation or Urdu answer yourself once and correct the words, because AI's Urdu is sometimes bookish or unnatural.
Common Mistakes to Avoid
- A prompt that is too short: Instead of "write an essay", give the topic, class level, length and tone.
- Ten tasks in a single prompt: Break a big job into smaller steps.
- Believing everything the AI says: Always check dates, laws, prices and statistics against the original source.
- Entering personal information: Do not type a CNIC number, password, bank details or someone's phone number into a chatbot. There is more detail on this in our article How to Stay Safe in the Age of AI.
- Using the answer without editing: AI text is a draft; always add your own understanding and your own style to it.
11 Ready-Made Prompts (with Explanations)
Replace the parts in brackets [ ] with your own information.
1. Understanding a topic easily: This prompt explains a difficult topic with an example and checks your understanding at the end.
Explain [topic] to a Pakistani student in simple Urdu script. Use one everyday example from Pakistan. End with 3 short questions to check my understanding.
2. Structure for a YouTube video: For more detail, read How to Write YouTube Scripts with AI.
You are a YouTube script writer. Create an outline for an 8-minute Urdu video on [topic] for beginners. Include a hook for the first 15 seconds, 5 main sections and a short ending.
3. Writing an email:
Write a polite, short professional email in English to [person/company] about [purpose]. Keep it under 120 words.
4. Finding mistakes in your writing: It improves your own text, but the style stays yours.
Correct the grammar and spelling of this text. Do not change my style. Show the corrected version, then list the changes: [text]
5. Summary:
Summarize the following in 5 bullet points in Urdu script. Keep names and numbers exactly as written: [text]
6. Ideas:
Give me 10 video ideas about [niche] for a Pakistani audience. For each, write one line on why people would click it. Avoid clickbait.
7. Comparison:
Compare [option A] and [option B] for a beginner in Pakistan: cost, difficulty, pros and cons. Use simple Urdu and bullet points. If prices may change, say so.
8. Study plan: For exam preparation. See more methods for students in ChatGPT and Gemini for Students.
Make a 14-day study plan for [subject/exam]. I can study 2 hours a day. Include revision days and short self-tests.
9. Social media post:
Write 3 versions of a Facebook post in Roman Urdu announcing [news]. Friendly tone, max 60 words each, one clear call to action.
10. Getting an image prompt written: A detailed prompt for AI image tools; more guidance on this is in the AI Image Generation Guide.
Write a detailed image prompt for [idea]. Include subject, setting, lighting, camera angle, style and aspect ratio 16:9.
11. Ask questions first: For when you yourself are not sure what to tell the AI.
I want help with [goal]. Before answering, ask me up to 5 questions you need to give the best advice.
Summary
- A good prompt is made of six parts: role, task, context, format, constraints and examples.
- If you want a particular style, give two or three examples (few-shot).
- The first answer is a draft; ask for improvements in the same chat, or ask the AI to ask you questions first.
- State the language clearly: Urdu script, Roman Urdu or a mix.
- Always check facts against the original source, and do not put personal information into a chatbot.
Save any prompt that works well; little by little you will build your own prompt library.
Note: AI tools and YouTube and Google policies change over time. Always check the official help page of the service before making any decision. Facts last checked against official help pages: . Disclaimer


