CourseModule 3
Module 3 of 6

Mastering AI Communication - Prompt Engineering

2 hours
4 sections

Learning Objectives

  • Write clear, specific prompts
  • Use advanced techniques like few-shot and chain-of-thought
  • Iterate and refine effectively
Section 1

The Two Golden Rules

Great prompts follow two fundamental principles:

Rule 1: Clarity

Use simple, unambiguous language. Avoid jargon unless necessary. Say exactly what you mean.

Bad: "Make it good" Good: "Make it more concise and professional"

Rule 2: Specificity

Provide context, desired format, length, and audience. The more details, the better.

Bad: "Write an email" Good: "Write a professional follow-up email to a client named Sarah about the website project we discussed. Remind her of our Monday meeting and confirm the time. Keep it under 100 words."

The Clarity + Specificity Formula

Good Prompt = Clear Language + Specific Details

Think about: What exactly do I want? Who is the audience? What format? How long? What tone?

Section 2

The Prompt Structure Template

Here's a reliable template for structuring effective prompts:

[ROLE] Act as a [expert type]
[CONTEXT] I need help with [situation]
[TASK] Please [specific action]
[FORMAT] Present this as [format]
[CONSTRAINTS] Keep it [length/tone/style]

Example Using Template

Act as an experienced marketing copywriter.

I need help creating content for my small bakery's
grand opening next month.

Please write an Instagram caption announcing the event.

Present this as a single paragraph with 3-5 relevant
hashtags at the end.

Keep it friendly and under 150 characters (not
including hashtags).

When to Use Each Element

ElementUse When
ROLEYou want expertise or a specific perspective
CONTEXTBackground information affects the answer
TASKAlways - be specific about what you want
FORMATYou need output in a particular structure
CONSTRAINTSYou have limits on length, tone, or style
Section 3

Advanced Techniques

Once you've mastered the basics, try these powerful techniques:

Few-Shot Prompting

Give examples of what you want, and AI will follow the pattern.

Here are examples of the style I want:

- "The sunset painted the sky in shades of amber"
- "Morning dew clung to petals like tiny diamonds"

Now write one like this about a forest.

Chain of Thought

Ask AI to reason through problems step by step.

Let's solve this problem step by step:

[Your problem here]

Walk me through your reasoning before giving
the final answer.

Role Prompting

Assign a specific role or expertise.

You are a patient teacher explaining this concept
to a complete beginner who has no technical
background. Use simple language and everyday
analogies.

Negative Prompting

Specify what you DON'T want.

Explain quantum computing to me.
Don't use technical jargon.
Don't assume I know physics.
Section 4

Iterative Refinement

The best results come from iteration, not a single perfect prompt.

The Iteration Cycle

  1. First attempt - Give your best initial prompt
  2. Evaluate - Is this what you wanted? What's missing?
  3. Adjust - Ask for specific changes
  4. Repeat - Keep refining until satisfied

Useful Refinement Phrases

For length:

  • "Make this shorter/longer"
  • "Condense this to one paragraph"
  • "Expand point #2"

For tone:

  • "Make this more formal/casual"
  • "Add more enthusiasm"
  • "Make it sound more professional"

For content:

  • "Add specific examples"
  • "Include statistics/data"
  • "Focus more on [topic]"
  • "Remove the part about [topic]"

For structure:

  • "Convert this to bullet points"
  • "Add headers/sections"
  • "Present this as a table"

Example Iteration

First prompt: "Write about coffee"

AI Response: (generic essay about coffee)

Refinement 1: "Make this specifically about the health benefits of coffee"

Refinement 2: "Add scientific studies and make it suitable for a health blog"

Refinement 3: "Shorten to 300 words and make it more conversational"

Each iteration gets you closer to exactly what you need.

Exercises

  • 1Take a vague request and transform it using the template structure
  • 2Practice the iteration cycle: write a prompt, evaluate the response, refine 3 times
  • 3Try few-shot prompting with a creative writing task