Prompting techniques are strategies for writing better instructions (called prompts) so that an
AI model like me gives you the most accurate, relevant, and useful answer.
Think of it like talking to a very smart but very literal person — the way you ask the question
determines the quality of the answer.
AI Prompting Cheat Sheet – 10 Powerful Patterns
Prompting
# How It Works Example
Pattern
Ask directly, no
1 Zero-Shot "List 5 benefits of solar energy."
examples.
"English: Hello → French: Bonjour. English:
Give 2–3 examples
2 Few-Shot Good night → French: Bonne nuit. English: See
before your request.
you later →"
Tell AI to act as an "Act as a professional HR manager and write a
3 Role-Based
expert. rejection email politely."
Chain-of- Ask AI to think step-by- "Explain step-by-step how to calculate compound
4
Thought step. interest for ₹1,00,000 at 8% for 5 years."
Instruction + Give task + limits (tone, "Write a 50-word formal email requesting a
5
Constraint word count, format). meeting."
Persona Give AI a personality or "Respond like a pirate explaining machine
6
Prompting style to follow. learning."
"I run a restaurant in Tamil Nadu serving home-
Provide background
7 Context + Goal cooked meals. Suggest 5 marketing ideas for
before the question.
attracting office workers."
Iterative Start broad, refine after "Write about AI." → "Focus on AI in agriculture
8
Refinement feedback. in India, under 150 words."
Request exact output
"List 5 tourist spots in Tamil Nadu in a table with
9 Format-Specific format (table, JSON,
location and best season."
bullets).
Reverse Ask AI what info it "What details do you need from me to create a
10
Prompting needs before answering. project plan?"