AI Pulse by Inblix
Part 3 of 8 · Fundamentals · 10 min read ·

Prompt Engineering: How to Talk to AI and Get Exactly What You Want

Master the art of writing effective AI prompts. From basic techniques to advanced strategies — role-setting, chain-of-thought, few-shot prompting, and templates you can use today.


The Most Underrated AI Skill

Prompt engineering — the craft of writing effective instructions for AI — is the single highest-leverage skill in the AI era. It’s the difference between getting generic, forgettable output and getting exactly what you need on the first try.

The good news: it’s not complicated. Most of what works follows a few simple patterns anyone can learn in an afternoon.

Why Prompts Matter

Large language models are powerful but directionless. They’ve read (approximately) everything humanity has published, and they can generate text on any topic. But without a good prompt, they default to safe, generic, average output.

A well-crafted prompt is like a good brief to a colleague. It provides context, sets expectations, and gives clear guardrails. The model has the knowledge — your prompt unlocks it.

Anatomy of a Great Prompt

Every effective prompt has up to five ingredients:

1. Role — Who is the AI supposed to be?

Instead of “Help me write a sales email,” try: “You are a senior sales director at a SaaS company who has closed hundreds of enterprise deals.”

Role-setting constrains the model’s tone, vocabulary, and approach. It dramatically improves output quality.

2. Context — What situation are we in?

“Your recipient is a VP of Engineering who attended our webinar last week. They mentioned being frustrated with their current CI/CD pipeline. Our tool reduces build times by 60%.”

Context gives the model something to work with. Without it, the AI has to guess — and it guesses generic.

3. Task — What specifically should the AI do?

“Draft a follow-up email that references their webinar attendance, acknowledges their CI/CD frustration, and proposes a 15-minute call to show how our tool could help. Keep it under 150 words.”

Be specific. “Write an email” is bad. “Draft a follow-up email that references X, acknowledges Y, and proposes Z” is good.

4. Format — What should the output look like?

“Use a casual but professional tone. Start with a personal reference to the webinar. End with a single clear call to action.”

Format constraints prevent the AI from defaulting to its generic voice.

5. Constraints — What should the AI avoid?

“Do not mention pricing. Do not use the phrase ‘I hope this email finds you well.’ Do not make claims about ROI we can’t back up.”

Negative constraints are as important as positive ones.

Putting It All Together

Here’s a weak prompt:

“Write a sales email about our CI/CD tool.”

Here’s the same request, engineered:

“You are a senior sales director at a SaaS company. Your recipient is a VP of Engineering who attended our webinar last week and mentioned being frustrated with slow CI/CD pipelines. Draft a follow-up email that references the webinar, acknowledges their frustration, and proposes a 15-minute call to show how our tool reduces build times. Casual but professional tone. Under 150 words. Do not mention pricing or use generic greetings.”

The second prompt takes 30 seconds longer to write and produces output that’s 10x more usable.

Core Techniques

Few-Shot Prompting

Show the AI examples of what you want.

“Classify the sentiment of these movie reviews as positive, negative, or neutral.

Review: ‘This film was a complete waste of time.’ → Sentiment: Negative Review: ‘Surprisingly good! The lead actor carried the whole thing.’ → Sentiment: Positive Review: ‘It was a movie. I watched it. That’s about all I can say.’ → Sentiment: Neutral Review: ‘The cinematography was breathtaking but the plot fell apart in act three.’ → Sentiment:”

The model learns the pattern from your examples and applies it to the new input. Two to three examples are usually enough. This is the most reliable way to get consistent formatting from AI.

Chain-of-Thought Prompting

Ask the AI to show its work before giving the answer.

“A bat and a ball cost $1.10 in total. The bat costs $1.00 more than the ball. How much does the ball cost? Think through this step by step.”

Without chain-of-thought, many models get this wrong (answering 10 cents). With step-by-step reasoning, they work through the math and arrive at 5 cents.

This technique is essential for any task requiring logic, math, or multi-step reasoning. It also lets you see where the AI’s thinking went wrong if the answer is off.

Persona / Role Setting

This deserves emphasis because it’s the easiest high-impact technique.

“You are a ruthless editor at a top-tier publication. Review this draft and be brutally honest about what doesn’t work.”

vs.

“You are a supportive writing coach. Review this draft and highlight strengths before gently pointing out areas for improvement.”

Same draft. Radically different responses. The persona you choose determines everything about the output — tone, depth, focus, and even factual emphasis.

Effective personas:

  • “You are an experienced product manager reviewing a feature proposal…”
  • “You are a skeptical investor evaluating a pitch deck…”
  • “You are a patient high school teacher explaining a concept…”
  • “You are a senior software engineer conducting a code review…”

Structured Output

AI models are happy to produce structured formats — use this.

“List the top 5 project management tools. For each, provide: name, pricing tier best for small teams, one key strength, and one known weakness. Format as a markdown table.”

“Give me 10 blog post ideas about remote work. Format as: Title, Target audience, One-sentence hook, Estimated reading time.”

Structured output forces the AI to be organized and complete. No missing fields. No rambling.

Iterative Refinement

The first response is rarely the final draft. Use follow-up prompts to tune the output:

  1. “Make it shorter” or “Expand on the second point”
  2. “That’s too formal — make it more conversational”
  3. “The third paragraph doesn’t flow from the second. Fix the transition.”
  4. “Can you rewrite this from the perspective of the customer instead of the company?”
  5. “Add more specific data points to support the claims”

Think of prompt engineering as a conversation, not a one-shot command. You’d never expect perfect work product from a colleague based on a single sentence of instruction. Same principle applies.

Prompt Templates for Common Tasks

Writing

“You are a [role]. Write a [format] about [topic] for [audience]. Tone: [casual/formal/persuasive/etc.]. Length: [word count]. Include: [specific elements]. Avoid: [specific things to exclude].”

Summarization

“Summarize the following [article/document/transcript] in [number] bullet points. Focus on key findings, methodology, and actionable insights. Keep each bullet under 25 words.”

Analysis

“Analyze the following [argument/proposal/strategy] from the perspective of [specific lens — financial, technical, customer, competitive]. Identify the 3 strongest points and 3 weakest points. For each weakness, suggest a concrete improvement.”

Learning

“Explain [topic] to me as if I’m a [level — high school student, junior developer, MBA]. Use analogies where helpful. After the explanation, ask me questions to test my understanding.”

Coding

“I need a Python script that [purpose]. Requirements: [list constraints]. Handle edge cases: [list edge cases]. Include error handling for [specific errors]. Add comments explaining the approach.”

Decision-making

“Help me decide between [option A] and [option B]. For each option, list pros and cons across these dimensions: [dimension 1] [dimension 2] [dimension 3]. Summarize which option is better for which type of person or situation. Important context: [add relevant context].”

Common Mistakes and How to Fix Them

Mistake 1: Being too vague

Bad: “Write about AI.” Fix: “Explain how transformer models work to a software engineer who hasn’t worked with AI. Focus on the attention mechanism. Use the analogy of a reader highlighting important words in a paragraph.”

Mistake 2: Assuming the AI knows your context

Bad: “Reply to this email.” (pastes email) Fix: “I’m a freelance designer and this is a potential client who found me through my portfolio site. They’re asking about pricing for a brand identity project. Draft a response that’s warm but professional, asks clarifying questions about their needs, and doesn’t give a fixed price yet.”

Mistake 3: Giving up after one shot

Bad: First response isn’t perfect → “AI is useless.” Fix: First response is directionally right → iterate. “This is close. Can you make it more [adjective]? Also, add a section on [topic]. And the third paragraph is confusing — rewrite it to be more direct.”

Mistake 4: Not specifying what to avoid

Bad: “Write a cover letter.” Fix: “Write a cover letter for a data analyst role. Do not use the phrases ‘I am writing to express my interest,’ ‘team player,’ or ‘think outside the box.’ Do not exceed 200 words. Do not repeat my resume — focus on what the resume doesn’t show.”

Mistake 5: Treating AI as an oracle

Bad: “Is this business idea going to succeed?” Fix: “Analyze this business idea from the perspective of market size, competition, and execution risk. What are the critical assumptions that would need to be true for this to work? What’s the most likely reason it would fail?”

When Prompt Engineering Doesn’t Help

Not every task is a prompting problem. Some limits are inherent to the model:

  • Factual precision: If you need exact numbers, dates, or citations, don’t just prompt better — connect the model to a search tool or knowledge base (RAG, which we cover in Part 8).
  • Consistent formatting across thousands of outputs: Prompting can’t guarantee 100% consistency. Use structured output APIs or post-processing code.
  • Truly novel thinking: Prompting can improve the remixing of existing ideas, but it won’t make the model have genuinely new insights. Use AI as a thinking partner, not a replacement for your own creative process.

Key Takeaways

  • A good prompt has up to 5 ingredients: role, context, task, format, and constraints
  • Few-shot examples are the most reliable way to get consistent output
  • Chain-of-thought dramatically improves reasoning and accuracy
  • Persona setting is the easiest high-impact technique — one sentence transforms the output
  • Prompt engineering is iterative — the first response is the starting point, not the deliverable
  • Templates save time: build a small library of go-to prompts for your recurring tasks

Next: Understanding LLMs

You know how to talk to AI. Now let’s understand what’s happening when you send that prompt. Part 4 goes under the hood of large language models — how they’re built, trained, and why they work the way they do.

← Part 2: How AI Actually Works  |  Continue to Part 4: Understanding LLMs →

Prompt EngineeringChatGPTClaudeLLMBeginner Guide

Published:

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.