Prompt engineering is the skill of writing clear instructions for an AI tool so it gives you the answer you need, again and again. A good prompt says the goal, gives context, sets a role, asks for a format and length, and shows an example. Then you test the answer and improve the prompt. OpenAI, Anthropic and Google all teach the same core ideas in their official guides.
You type a question into ChatGPT, Gemini or Claude, and the answer is too long, too vague, or just wrong. Most of the time the tool is fine. The question was not clear enough. Prompt engineering is the fix.
On 3 Dec 2026 I read the official prompt guides from OpenAI, Anthropic (the company behind Claude) and Google, and marked up screenshots of the parts that matter most. Every rule below comes from those pages. The before and after prompts are my own examples, written to show each idea in plain words.
1. Say what you want, who it is for, and how long. 2. Paste the facts the AI needs. 3. Ask for a shape: table, bullets, email. 4. Show one example if style matters. 5. Read the answer, then fix the prompt, not just the answer. 6. Never paste passwords, Aadhaar or PAN numbers. 7. Check facts yourself.
On this page16 sections
What is prompt engineering?
A prompt is what you give an AI model: a question, an instruction, some text to work on, or even an image. Prompt engineering is the work of writing and improving that input so the output is right for your job.
Here is how the three biggest AI companies describe it, in short:
| Source | What they say (paraphrased) |
|---|---|
| OpenAI API guide | Writing effective instructions so a model consistently makes content that meets your needs. Because answers vary each time, it is a mix of art and science. |
| OpenAI Help (ChatGPT) | Designing and improving the input you give a language model to guide its answer. |
| Google Cloud | Prompt design is creating prompts that get the answer you want. The repeated loop of changing a prompt and checking the answers is sometimes called prompt engineering. |
| Anthropic (Claude) | Start with clear success goals, a way to test against them, and a first draft prompt. Then improve the draft. |
Guides read 3 Dec 2026.

Notice the common word: consistently. A lucky answer once is not prompt engineering. A prompt that works for 50 different inputs is.
Prompt design vs prompt engineering
Google uses both words. Writing one good prompt is prompt design. Testing it, changing it and testing again is prompt engineering. In daily use, most people mean the same thing by both.

The parts of a good prompt
Google’s Cloud guide splits a prompt into parts. Only the task is required. The rest are optional, but each one makes the answer better when you need it.
| Part | What it does | Short example |
|---|---|---|
| Task or objective (required) | What you want done | Summarise this report for my manager. |
| Role or persona | Who the AI should act as | You are a GST consultant. |
| Instructions | Steps to follow | First list the dates, then the amounts. |
| Constraints | Rules and limits | Do not give legal advice. Use only the text below. |
| Tone | How it should sound | Friendly, simple, no jargon. |
| Context | Facts the AI needs | Our shop is in Pune and sells only organic tea. |
| Few-shot examples | Samples of a good answer | Input: … Output: … |
| Reasoning steps | Ask it to think step by step | Explain your reasoning step by step. |
| Response format | The shape of the answer | A table with 3 columns. |
| Recap | Repeat key rules at the end | Remember: 150 words, Hindi, no emojis. |
Guides read 3 Dec 2026.

OpenAI suggests almost the same order for the instructions you give a model behind an app: identity (who the assistant is), instructions (the rules), examples, then context, which it says usually works best near the end.
Why prompt engineering matters
- Better answers, first time. Anthropic says Claude responds well to clear, explicit instructions, and the more precisely you explain, the better the result.
- Same quality every time. OpenAI notes that output changes from run to run, so a well-built prompt keeps results steady. It advises testing prompts with real inputs, not guessing.
- Less time fixing. A good prompt saves the back and forth of “make it shorter”, “no, more formal”, “use a table”.
- Fewer made-up facts. When you paste the source text and tell the AI to answer only from it, it has less room to invent things. Anthropic suggests asking the model to quote the relevant parts of a long document first.
When prompting is not the answer
Prompting is not magic. Anthropic says not every problem is best fixed with a better prompt: speed and cost, for example, are often easier to fix by picking a different model. Google notes that its Gemini models often do well on simple tasks with no special prompting at all. Prompt engineering pays off most on complex, repeated or high-stakes work.
Core prompt engineering techniques, with examples
These are the techniques that show up in all three official guides. Each one has a short example I wrote to show the idea.
1. Zero-shot prompting: just ask
A zero-shot prompt gives no examples. You only describe the task. OpenAI’s help page says to start here, then add examples if the result is not good enough.
2. Few-shot prompting: show a few examples
A few-shot prompt includes a few sample inputs and outputs. The model picks up the pattern. Google’s AI Studio guide goes further than the others: it recommends always including few-shot examples, says clear examples can even replace some instructions, and warns that too many examples can make the model copy them too closely. Anthropic suggests 3 to 5 examples that are relevant, varied and wrapped in tags.
Keep every example in the same layout. Google says mixed formats in examples lead to mixed formats in answers.
3. Role or persona prompting
Tell the AI who to be. Anthropic says setting a role focuses the model’s behaviour and tone, and even a single sentence makes a difference. Google lists persona as a standard part of a prompt.
Role + reader + length + a safety line. Tax rules change, so the prompt asks the reader to verify.
4. Step-by-step (chain-of-thought) prompting
For maths, logic or planning, ask the AI to work through the problem step by step before it gives the final answer. Google’s table calls this reasoning steps and says it can sometimes improve reasoning. Anthropic calls asking for step-by-step thinking a fallback for when the model’s built-in thinking mode is off, and suggests asking it to check its own answer at the end.
Newer “reasoning” models already think before they answer. OpenAI compares a reasoning model to a senior co-worker you can give a goal to, and a regular GPT model to a junior co-worker who needs exact steps. With reasoning models, give the goal and less hand-holding.
5. Ask for a set format (structured output)
Tell the AI the exact shape you want: a table, bullets, an email, or JSON for software. OpenAI’s help page says models respond better when you show the format, not only describe it. For apps, OpenAI and Google both offer a structured output feature that forces answers into a JSON schema.
6. Use separators: ###, triple quotes or tags
When you paste a long text, mark where it starts and ends. OpenAI’s help page suggests putting the instruction first and fencing the text with ### or “””. Anthropic and OpenAI both suggest XML-style tags such as <context> and <instructions>, so the model does not mix up your rules with your data.
7. Give context and ground the answer
The AI does not know your shop, your syllabus or your company policy. Paste it in. Google shows that a generic router troubleshooting answer becomes specific once the router manual is added to the prompt. OpenAI calls the bigger version of this retrieval-augmented generation (RAG): an app looks up the right documents and adds them to the prompt.
8. Break big jobs into smaller prompts
Google’s checklist flags “too many tasks” as a common problem: asking one prompt to summarise, extract, translate and draft an email at once. Its guides suggest one prompt per instruction, or a chain where the output of one prompt becomes the input of the next.
9. Say what to do, not only what not to do
Both OpenAI and Anthropic give this tip. “Do not use jargon” is weaker than “Use words a Class 6 student knows.” Anthropic’s example: instead of “do not use markdown”, ask for “smoothly flowing prose paragraphs”.
Before and after: 5 real-life prompt makeovers
These are my own examples for common jobs in India. Try both versions in any free AI tool and compare.
Student: exam notes
Small business: reply to a customer
Creator: Instagram caption in Hinglish
Office: turn messy notes into a table
The rule “do not add tasks that are not in the notes” keeps the AI from inventing work.
Job seeker: improve a CV line
A walk-through of the official prompt guides
If you read only three pages about prompting, read these. Here is what each one teaches, with the key parts marked.
| Guide | Best for | Standout advice |
|---|---|---|
| OpenAI: Best practices for prompt engineering | Beginners, ChatGPT users | Instructions first, separators, exact lengths, show the format, zero-shot then few-shot |
| OpenAI: Prompt engineering (API docs) | People building apps | Identity, instructions, examples, context; test prompts; reasoning vs GPT models |
| Anthropic: Prompting best practices | Claude users and builders | Be clear and direct, the colleague test, XML tags, roles, long documents first |
| Google Cloud: Overview of prompting strategies | Gemini users and builders | Components table, sample template, prompt health checklist |
| Google AI Studio: Prompt design strategies | Gemini API users | Always add few-shot examples, break prompts down, iterate |
Guides read 3 Dec 2026.
OpenAI: start simple, then add detail
OpenAI’s help centre article is the easiest place to start. It lists rules of thumb with a “less effective” and a “better” prompt for each. Rule 2: put the instruction at the top and fence your text with ### or triple quotes.

Rule 6 is the one most people miss: cut vague words. “Fairly short, a few sentences” becomes “a 3 to 5 sentence paragraph”.

The same page says to begin with zero-shot, then try few-shot, and only then consider fine-tuning (training a model on your own examples). It also notes that a lower temperature setting (0 is best for factual tasks like data extraction) makes answers less random. In the chat apps you usually cannot change temperature, so clear prompts do that job.
Anthropic: write for a smart new colleague
Anthropic’s prompting best practices page opens its general principles with be clear and direct. It asks you to think of Claude as a brilliant but new employee who does not know your norms. Its key test: show your prompt to a colleague with little context. If they would be confused, the AI will be too.

The page then explains XML tags: wrap instructions, context, examples and inputs each in their own tag so the model does not confuse them.

And roles: a single sentence in the system prompt, like “You are a helpful coding assistant specialising in Python”, focuses tone and behaviour.

Two more useful tips from the same page: put long documents at the top of the prompt and your question at the end, and explain why a rule matters, because the model can generalise from the reason. Anthropic also has a free interactive tutorial on GitHub. It notes the tutorial was written for older Claude 3 models, so follow the newer best practices page where they differ.
Google: a template and a health checklist
Google’s Overview of prompting strategies says prompt engineering is test-driven and iterative, and that two things decide quality: content (all the information needed) and structure (order, labels and separators). It offers a sample template with tags for objective and persona, instructions, constraints, context, output format, few-shot examples and a recap.
Its prompt health checklist is the most practical part. Two items surprise many people:

- Overt manipulation: emotional appeals, flattery or pressure such as “very bad things will happen if you get this wrong”. Google says early models sometimes improved with such lines, but current models do not, and often get worse.
- Too many tasks: one prompt that summarises, extracts, translates and drafts an email is trying to do too much. Split it.
- Other items: typos in key words, undefined jargon, vague words like “brief” (say “3 sentences or less”), missing output format, conflicting instructions, and prompt injection risk when you paste text from strangers.
How to write a good prompt: 7 steps
- Write the goal in one sentence. What should exist when the AI is done? A summary, a table, an email, a plan?
- Name the reader. A child, a client, an examiner, your boss. This sets the level and the tone.
- Add the context. Paste the notes, the product details or the document. Fence it with ### or tags.
- Set the shape and size. “A table with 4 columns”, “5 bullet points”, “under 120 words”.
- Add a role or an example if needed. One line of role, or two short samples of the style you want.
- Run it and read the answer closely. What is missing, wrong or too long?
- Fix the prompt, not just the answer. Add the missing rule to the prompt, then save the improved prompt so you can reuse it.
Step 7 is the “engineering” part. OpenAI, Anthropic and Google all say the same thing: prompting is a loop of test and improve.
Common prompt mistakes and how to fix them
| Mistake | Why it fails | Fix |
|---|---|---|
| “Write something about marketing” | No goal, reader or size | “Write 5 Instagram post ideas for a bakery in Indore, one line each” |
| Vague words: short, nice, detailed | The AI guesses what you mean | Use numbers: 3 sentences, 150 words, 4 bullets |
| Only “don’ts” | The AI knows what to avoid, not what to do | Say the behaviour you want instead |
| Ten tasks in one prompt | Steps get skipped or mixed | One task per prompt, or a chain |
| Threats or bribes (“I will tip you”) | Google says this no longer helps and can hurt | Give clear reasons and rules |
| Examples in mixed layouts | Answers copy the mess | Same format for every example |
| No source text, then trusting the facts | Models can make things up | Paste the source, ask it to use only that, verify yourself |
| Pasting private data | Your data leaves your device | Remove names, numbers and IDs first |
Guides read 3 Dec 2026.
Prompt checklist
Copy this list into your notes app. A prompt that ticks all 10 boxes will beat almost any “secret prompt” you see online.
Prompt checklist: tick all 10 before you press Enter
- Goal: I said what I want in one clear sentence.
- Reader: I said who the answer is for (a Class 8 student, a client, my boss).
- Context: I pasted the facts, notes or document the AI needs.
- Role: I gave the AI a role if it helps (teacher, editor, accountant).
- Format: I asked for a shape: table, bullets, email, JSON, 5 lines.
- Length: I gave a number (3 sentences, 150 words), not “short”.
- Example: I showed one or two samples if the style matters.
- Separators: my pasted text sits between ### marks, triple quotes or tags.
- Do, not just don’t: I said what to do instead of only what to avoid.
- Safety: no passwords, Aadhaar, PAN or client secrets in the prompt; I will check the facts.
Safety: privacy, facts and prompt injection
- Do not paste secrets. Never put passwords, OTPs, Aadhaar, PAN, bank details or a client’s private data into a chatbot prompt.
- Check facts. A confident answer can still be wrong. Verify numbers, laws, tax rules and medical advice on official sites.
- Watch for prompt injection. Google’s checklist names it as a major security risk: if your app pastes text from users or web pages into a prompt, that text can contain hidden instructions. Keep untrusted text clearly fenced and tell the model it is data, not instructions.
- Expect refusals. Google’s intro page says models may refuse prompts about hate speech, harassment, sexual content or dangerous activities. Rewording to trick the model breaks the tools’ rules.
Prompt engineering in India: languages and free tools
You do not need to prompt in English. Google’s help page lists more than 70 languages for the Gemini web app, including Hindi, Marathi, Bengali, Gujarati, Kannada, Malayalam, Odia, Punjabi, Tamil, Telugu, Urdu, Assamese and Nepali, and India is a supported country.

- Say the language and script. “Reply in Marathi, Devanagari script” or “Hinglish in English letters” avoids mixed answers.
- Give local context. City, rupee amounts, school board (CBSE, ICSE, state board), GST or UPI. The AI cannot guess these.
- Check translations of key terms. For legal, medical or exam content, compare with an official source in that language.
- Practise free. ChatGPT, Gemini and Claude all have free plans you can use to practise. See what each free plan gives in our best free AI tools list.
Role, reader, length, format: the same rules work in any language.
Is prompt engineering a career?
Prompting is now a basic work skill, like using a spreadsheet. The World Economic Forum Future of Jobs Report 2025 (January 2025, data from over 1,000 companies) expects skills in AI and big data, networks and cybersecurity to grow fastest by 2030, and says 77% of employers plan to upskill their workers. It does not list “prompt engineer” as a separate job.
In practice, most people use prompting inside other roles: content writers, marketers, support teams, teachers, analysts and developers. Developers who build AI apps do the deepest prompt work, often with testing tools and code. We found no official government or industry salary data for a “prompt engineer” job in India, so be careful with salary claims you see online.
Want to go further? Learn to test prompts on many inputs, learn basic Python to call AI APIs, and learn how structured output and RAG work. Our AI writing tools and AI research tools lists show where prompting is used every day.
Where to learn prompt engineering
Start with the free official guides linked above. Then practise for 15 minutes a day with your own real work: emails, notes, captions, reports. For a structured path, we compared free courses from DeepLearning.AI, IBM, Microsoft, AWS and others in 11 free AI prompting courses. If you are new to AI as a whole, start with our free AI courses list.
Frequently asked questions
What is prompt engineering in simple words?
It is the skill of writing clear instructions for an AI tool so it gives you a useful answer every time. You say what you want, give the facts it needs, show the format, and then improve the prompt after you see the answer.
What is an example of prompt engineering?
Instead of “write about Diwali”, you write: “You are a Class 5 teacher. Write a 120-word paragraph about how families in Maharashtra celebrate Diwali, in simple English, with 3 bullet points at the end.” The second prompt gives a role, a reader, a length and a format.
What are the main prompt engineering techniques?
Zero-shot (just ask), few-shot (give a few examples), giving a role or persona, asking for step-by-step reasoning, asking for a set format like a table or JSON, using separators like ### or tags, adding context, and breaking a big job into smaller prompts. OpenAI, Anthropic and Google all describe these in their official guides.
Is prompt engineering a good career in India?
Prompting is a useful skill, but it is mostly part of other jobs such as content, marketing, support, coding and data work. The World Economic Forum’s Future of Jobs Report 2025 says AI and big data skills are expected to grow fastest. It does not list prompt engineer as a separate job, and we found no official salary data for it.
Do I need coding to learn prompt engineering?
No. You can practise in ChatGPT, Gemini or Claude by typing in plain English or your own language. Coding helps only when you build apps that send prompts through an API.
Can I write prompts in Hindi or Marathi?
Yes. Google’s Gemini help page lists Hindi, Marathi, Bengali, Gujarati, Kannada, Malayalam, Odia, Punjabi, Tamil, Telugu, Urdu and more among its supported languages. The same rules apply: be clear, give context and ask for a format.
Does saying please or threatening the AI help?
Google’s prompt health checklist says emotional appeals, flattery and pressure (like “very bad things will happen”) no longer improve results and often make them worse. Politeness is fine, but clear instructions matter far more.
Where can I learn prompt engineering for free?
Start with the official guides from OpenAI, Anthropic and Google linked in this article, and Anthropic’s free interactive tutorial on GitHub. For structured courses, see our list of free AI prompting courses.
About this page

- WordPress developer and designer, builds sites for clients
- WordCamp Asia Communication Co-Lead
- 14K+ subscribers on the DigitalPritam YouTube channel
How we checked
Updated 3 Dec 2026How I got these facts
I read each official guide listed below on 3 Dec 2026 and paraphrased what it says, quoting only short phrases. I took and marked up the screenshots myself, without signing in. The example prompts were written for this article to show each technique. Guides change often, and model names inside them change every few months, so check the live pages before you rely on a detail.
Sources
- OpenAI API docs, Prompt engineering (read 3 Dec 2026)
- OpenAI Help Center, Best practices for prompt engineering with the OpenAI API
- OpenAI Help Center, Prompt engineering best practices for ChatGPT
- Anthropic, Prompt engineering overview
- Anthropic, Prompting best practices
- Anthropic, Prompt engineering interactive tutorial (GitHub)
- Google AI Studio, Prompt design strategies
- Google Cloud, Introduction to prompting (last updated 1 Dec 2026)
- Google Cloud, Overview of prompting strategies
- Gemini Apps Help, Where you can use the Gemini web app
- World Economic Forum, Future of Jobs Report 2025 press release (Jan 2025)
FREE PDFGet the Hostinger setup checklist, plus every sale alert
The exact steps we use on our lab sites, and an email when each big hosting sale opens.
Sent instantly. Deal alerts until 1 Dec. Unsubscribe in one click.


