System Prompts & Types of Prompting in AI

Dipanjan RoyDipanjan Roy
2 min read

What is a System Prompt?

A system prompt is a special instruction given to an AI model before any user input, telling it how to behave throughout the conversation.

Think of it like thwe director’s note to an actor before filming:

This is different from a user prompt, which is what you type directly (e.g., "Explain quantum computing to a 10-year-old"). The system prompt stays behind the scenes, influencing tone, style, and constraints for the whole interaction.

📌 Why System Prompts Matter

  1. Consistency — Keeps tone, format, and structure the same across responses.

  2. Efficiency — You don’t have to rewrite the same instructions for every request.

  3. Control — Guides the AI to follow rules (e.g., avoid sensitive content, stick to a persona).

  4. Multi-turn Context — Helps the AI remember its role in longer conversations.

Without a good system prompt, AI can drift off-topic, use inconsistent formatting, or misinterpret the intended purpose.

🧠 Types of Prompting Techniques

Different tasks require different prompting strategies. Let’s break down the most common ones:

1. Zero-shot Prompting:

You give the model only the task, without any examples.

2. Few-shot Prompting

You provide a few examples before the real task, so the model understands the pattern.

3. Chain-of-Thought Prompting

You ask the model to show its reasoning step-by-step before giving the final answer.

4. Few-shot Chain-of-Thought

A combination of examples + step-by-step reasoning.

💡 Best Practices for Prompting

  • Be explicit — Tell the model exactly what you want (tone, length, format).

  • Break it down — Complex tasks work better when split into steps.

  • Use examples — Models learn patterns from just a few demonstrations.

  • Control style — Use system prompts to set persona and formatting rules.

  • Test iteratively — Small tweaks can lead to big improvements.

🚀 Final Thoughts

System prompts are the foundation of any AI-powered workflow.
Prompting styles—Zero-shot, Few-shot, Chain-of-Thought, and others—are the tools you choose to get the desired results.

If you treat system prompts as the "operating system" of your AI, and prompting techniques as your "apps," you’ll get more consistent, accurate, and creative outputs.

0
Subscribe to my newsletter

Read articles from Dipanjan Roy directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Dipanjan Roy
Dipanjan Roy