Discover the Magic of Prompting


Most people use AI for small tasks: “Summarize this.” “Explain that.”
Useful, yes—but that’s only the surface.
The real power comes before the answer, in the instructions that shape how the AI thinks and speaks. That’s the system prompt.
Think of the system prompt as the AI’s operating manual. It quietly sets:
Who the AI is: teacher, coder, storyteller
How it responds: friendly, formal, step-by-step
What rules it follows: safety, limits, structure
Set this once, and your AI becomes consistent, on-brand, and reliable across every task.
The Two Layers of Prompting
System prompt = the guidebook (which define role, tone, boundaries, style)
User prompt = the task list (what to do right now)
Example system prompt
You are a technical writer. Write in clear, simple language for beginner . Use short sentences and examples where possible. Break down steps into lists, avoid heavy jargon, and explain any acronyms. Keep each answer under 200 words.
Essential Prompting Techniques
1) Zero‑Shot Prompting
What it is: Ask the AI to do a task without giving any examples—just rely on model training.
When to use it
Common tasks: summaries, lists, rewrites, extractions, sentiment
When speed matters more than precision
As a baseline before adding complexity
Watch out for:
- Inconsistent results on specialized tasks
Ready-to-use prompt:
Summarize the text into exactly 4 bullets for a daily stand‑up. Each bullet ≤15 words. Prioritize what changed, why it matters, and next steps. If key info is missing, write ‘insufficient detail.’
Text: """[paste]"""”
Tip: Add clear constraints (word counts, number of bullets, priorities) to make zero-shot prompts much more stable.
2) Few‑Shot Prompting
What it is: Show the AI a few examples before asking for the real output. This helps it learn your format and tone.
When to use it:
Domain‑specific output (legal, product, finance)
When consistency matters (e.g., formatting logs, writing test cases)
When zero-shot feels too random
Watch out for:
Too many examples can waste tokens
The AI may copy your examples too literally
Example:
Convert product reviews into "Positive" or "Negative."
Examples:
"I love the battery life!" → Positive
"Screen cracked in a week." → NegativeNow classify:
"Customer service was slow, but issue was fixed."
Pro tip: Give 2–3 diverse examples (not 10+)—enough to set the pattern without overloading.
3) Chain‑of‑Thought (Thinking Mode)
What it is: Ask the AI to perform step‑by‑step reasoning before giving final answer.
Use it for:
Math, logic, and step-based tasks
Debugging or explaining code
When accuracy matters more than speed
Watch out for:
Longer, slower responses
Can get verbose if not constrained
Prompt:
Think step by step, show intermediate reasoning, then give the final answer on the last line prefixed with ‘Final:’.
Problem: A store sold 32 apples Monday and twice as many Tuesday. How many in total?”
Tip: Skip thinking mode for trivial tasks; enable it when accuracy matters. — Use phrases like “show your work” or “explain step by step”—they improve accuracy.
4) Structured Output (Schemas & Formats)
What it is: Ask the AI to return results in a strict format (JSON, CSV, Markdown table). This makes outputs easier to parse and use in apps.
When to use it:
Extracting data from text (entities, dates, tasks)
Feeding results into code or workflows
Watch out for:
The AI might “almost” follow the schema → always validate
Too complex formats can break easily
Pattern:
Extract key details from the text and return as JSON:
{
"title": "",
"author": "",
"date": "",
"summary": ""
}Text: """ paste """
Tip: Schemas turn AI from a writer into a data source. Always test with sample inputs.
5) Directional Prompting (Style and Focus Cues)
What it is: Guide the AI’s tone and focus with simple cues like “be concise,” “explain like I’m five,” or “use bullet points.”
When to use it:
Adapting answers for different audiences (executives vs. developers vs. kids)
Blog posts, emails, or tutorials where style matters
Watch out for:
- Keep cues short and clear (≤1 sentence)
Prompt:
Explain recursion in programming.
Use simple language
Give one analogy from daily life
Keep it under 120 words
Tip: Think of directional cues as turning dials: tone, depth, and style. Small tweaks = big changes.
A Practical Prompt Stack
Prompting works best when you build it in layers—each one adds control and clarity.
1. System Prompt → the foundation
Set once per project. Defines role, tone, rules, and safety.
- Example: “You are a mentor. Use short paragraphs, avoid jargon, and give examples.”
2. Directional Cues → style guide
Light defaults that shape audience and focus.
- Example: “Explain like I’m five” or “Use bullet points.”
3. Task Prompt → the request
The specific instruction + constraints for this moment.
- Example: “Summarize this in 4 bullets, ≤15 words each.”
4. Technique → the method
Choose the right prompting approach:
Zero-shot → quick, no examples
Few-shot → show 2–3 examples
Chain-of-thought → step-by-step reasoning
Self-consistency → multiple tries, pick majority
Structured output → enforce JSON, tables, schema
5. Post-Process → quality check
Verify the output before using it:
Validate JSON or schema
Check length or constraints
Lint style, run small tests
Conclusion
Prompting isn’t magic—it’s design. With the right setup, AI becomes consistent, reliable, and useful.
Start small, improve with feedback, and test with real users. The best prompts don’t just work in theory—they work in practice.
Subscribe to my newsletter
Read articles from Rohit Kadam directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
