Understanding Prompting Technique !

Have you ever talked to an AI and wondered why it replies the way it does? Or maybe you tried asking something and got a weird answer?
That’s where prompting techniques come in — they’re like different ways of giving instructions to AI so it understands us better.
In this guide, we’ll explore several types of prompting styles using easy, real-life examples.
Whether you're just curious or starting to explore the world of AI and prompt engineering, these examples will help you get the idea without all the technical jargon.
Let’s dive into the fun world of prompting — made simple!
Zero-Shot Prompting
Zero-shot prompting is when you ask the model to do something without giving it any examples beforehand. It’s like giving a direct instruction and expecting it to just know what to do.
Example:
Imagine your teacher says, "Write a poem about friendship," but never showed you how. You try your best, but there's a chance it’s not what the teacher really wanted. That’s zero-shot prompting.
Few-Shot Prompting
Few-shot prompting is when you show the model a few examples before giving it a new task. These examples help guide the model to perform better.
Example:
Your teacher gives you two short poems about friendship and then says, “Now write your own.” Because you’ve seen examples, you now know the style, tone, and structure to follow. That’s few-shot prompting.
Chain-of-Thought (CoT) Prompting
Chain-of-thought prompting means the model solves a problem step-by-step, explaining its thinking before giving an answer. This is especially useful for reasoning tasks.
Example:
You’re solving a tricky math word problem. Instead of jumping to the answer, you start by understanding the question, breaking it down into smaller parts, and solving each part step-by-step. That’s how CoT works — like showing your work in class.
Self-Consistency Prompting
Self-consistency builds on CoT by generating multiple step-by-step solutions and then choosing the answer that shows up the most. It’s like cross-checking your work through different methods.
Example:
You and a few classmates all solve the same puzzle using your own ways. Later, you compare answers. Most of you arrive at the same solution, so you trust that’s likely the correct one. That’s self-consistency in action.
Instruction Prompting
Instruction prompting is when the model is given a clear and detailed task to follow step-by-step.
Example:
Your dad tells you, “Go to the grocery store and get 2 liters of milk and a packet of bread.”
You go, get exactly that, and come back. No thinking needed. Just follow the plan — that’s instruction prompting.
Direct Answer Prompting
This is where the model is asked to give a short, direct answer — no need for explanation or reasoning.
Example:
Like a quiz:
Q: What’s 5 x 5?
A: 25.
Fast and straight to the point — that’s direct answer prompting.
Persona-based Prompting
In this type, we tell the model to behave like a certain person whether real or imaginary — by describing their style or personality.
Example:
Prompt: Pretend you are Elon Musk. “Hi Elon, how’s everything going?”
Response: "Busy as ever, working on getting humanity to Mars 🚀. But hey, always good to chat. Let’s build something awesome!"
This helps the model respond in a style that matches the personality we gave it.
Role-Playing Prompting
Here, we assign the model a role — like a chef, a teacher, or a superhero — and it answers accordingly.
Example:
Prompt: You're a chef, not a doctor. So don't give health advice. What’s a good meal for tonight?
Response: “Oh, how about creamy mushroom pasta with garlic bread? Delicious and easy! But for medical stuff — better call the doc. 😉”
The role guides the tone and knowledge used in the reply.
Contextual Prompting
This method involves giving the model full background details so it can understand the situation clearly before responding.
Example:
Prompt: "We’re planning a road trip for 5 people, some elderly, across rough terrain. Limited rest stops. What’s the best vehicle option?”
Response: “A comfortable, high-clearance SUV with good suspension is ideal. It offers space and handles rough roads well.”
More context = better, more accurate answers.
Multimodal Prompting
Multimodal prompting combines the strengths of different models (text, image, etc.) to complete a task efficiently.
Example:
A user wants a birthday invitation.
The text model writes the message.
The image model creates a matching design.
Then they’re combined into a ready-to-use card.
It’s like teamwork — each model does what it’s best at, then puts it all together
Subscribe to my newsletter
Read articles from Manika directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
