Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← Gemini AI for Business Productivity Expert · Lesson 3 of 7

Module Two

📖 Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3
Module 2: Gemini AI for Business Productivity – Mastering Prompt Engineering

Module 2: Mastering Prompt Engineering

Module Introduction
Welcome back, AI explorers! In Module 1, we learned about Generative AI and met Gemini – Google's super-smart AI assistant. We discovered that Gemini can write emails, create images, and answer questions. But here's the secret: how you ask Gemini is just as important as what you ask. This is called prompt engineering. A prompt is the question or instruction you give to the AI. And engineering means designing it carefully – like a builder designing a house. In this module, you will learn how to write amazing prompts that get you the best possible answers. You will discover techniques like role prompting, few-shot prompting, and chain-of-thought prompting. By the end, you will be a prompt master – able to make Gemini do almost anything you want. Let's start crafting great prompts!

Learning Objectives

  • Understand what a prompt is and why it matters.
  • Learn the anatomy of a good prompt – clarity, context, and constraints.
  • Discover advanced techniques: role prompting, few-shot prompting, and chain-of-thought.
  • Learn to write clear and specific instructions.
  • Build your own prompt library for common tasks.
  • Practice refining and iterating on prompts for better results.

Warm‑up Story: Ada's Prompt Adventure

Ada is 11 years old. She loves using Gemini to help her with homework. One day, she asks Gemini: "Tell me about lions." Gemini gives her a short answer. Ada is not satisfied. She asks her older brother, "Why didn't Gemini tell me more?" Her brother says, "You need to ask better questions. Try: 'Tell me five interesting facts about lions, including where they live and what they eat.'" Ada tries it. Gemini gives her a detailed, helpful answer. Ada learns that the way you ask changes the answer you get. She becomes a prompt expert. Now she can get Gemini to write poems, explain science, and even help with her business ideas. Ada's lesson: a good prompt makes all the difference!

Main Lessons

Lesson 1: What is a Prompt?

Definition: A prompt is the instruction or question you give to an AI like Gemini. It tells the AI what you want it to do.

Why it's important: The prompt is how you communicate with the AI. A good prompt gets a good answer. A bad prompt gets a bad answer.

Simple explanation: Think of a prompt like a order you give to a waiter. If you say "food," the waiter doesn't know what you want. If you say "I'd like a cheeseburger with fries," you get exactly what you want.

Real‑life example: When you search on Google, you type a search query – that's a prompt.

School example: When you ask a teacher a question, you give them a prompt.

Home example: When you ask a parent for something, you give them a prompt.

Nigerian example: When you order food at a restaurant, you give the waiter a prompt.

+------------------------------------------+
|         What is a Prompt?                 |
|------------------------------------------+
|  A prompt is an instruction you give      |
|  to Gemini.                              |
|                                        |
|  +---------+    +---------+    +-------+|
|  | You ask | -> | Gemini  | -> | Answer||
|  | (Prompt)|    | thinks  |    |       ||
|  +---------+    +---------+    +-------+|
|                                        |
|  Example:                              |
|  Prompt: "Write a poem about rain."    |
|  Answer: A beautiful poem about rain!  |
+------------------------------------------+

Mini summary: A prompt is the instruction you give to the AI. It tells Gemini what you want it to do.

Lesson 2: Why Prompt Engineering Matters

Definition: Prompt engineering is the art and science of designing prompts to get the best possible responses from AI.

Why it's important: The quality of your prompt determines the quality of the answer. A well‑designed prompt saves time and gives better results.

Simple explanation: It's like giving clear directions to a driver. If you say "take me to the market," they might take you to a different market. If you say "take me to the main market on Allen Avenue," you get exactly where you want to go.

Real‑life example: In a business meeting, you get better answers when you ask specific questions.

School example: You get better help from a teacher when you ask a specific question.

Home example: You get better help from a parent when you explain clearly.

Nigerian example: At the market, you get better prices when you bargain clearly.

+------------------------------------------+
|         Why Prompt Engineering Matters    |
|------------------------------------------+
|  +-------------------+                    |
|  | Good Prompt       | → Great Answer    |
|  +-------------------+                    |
|  +-------------------+                    |
|  | Bad Prompt        | → Poor Answer     |
|  +-------------------+                    |
|                                        |
|  The better the prompt, the better the  |
|  result!                                |
+------------------------------------------+

Mini summary: Prompt engineering is designing prompts to get the best answers. Good prompts = good answers.

Lesson 3: The Anatomy of a Good Prompt

Definition: A good prompt has three parts: clarity (clear instructions), context (background information), and constraints (rules or limits).

Why it's important: These three parts help Gemini understand exactly what you want.

Simple explanation: Think of it like baking a cake. Clarity is knowing you want a cake. Context is knowing the occasion. Constraints are knowing the ingredients you have.

Real‑life example: "Write a birthday message for my friend" (clarity) who loves football (context) in 50 words (constraint).

School example: "Explain photosynthesis" (clarity) for a 6th grader (context) in 3 paragraphs (constraint).

Home example: "Give me a recipe" (clarity) for a quick dinner (context) using only 5 ingredients (constraint).

Nigerian example: "Write a business proposal" (clarity) for a Lagos market (context) in 2 pages (constraint).

+------------------------------------------+
|         The Anatomy of a Good Prompt      |
|------------------------------------------+
|  +-------------------+                    |
|  | Clarity           | → What do you     |
|  |                   |   want?           |
|  +-------------------+                    |
|  +-------------------+                    |
|  | Context           | → What is the     |
|  |                   |   situation?      |
|  +-------------------+                    |
|  +-------------------+                    |
|  | Constraints       | → Any rules or    |
|  |                   |   limits?         |
|  +-------------------+                    |
|                                        |
|  Good prompt = Clarity + Context +      |
|  Constraints                            |
+------------------------------------------+

Mini summary: A good prompt has clarity (what you want), context (background), and constraints (rules).

Lesson 4: Clarity – Being Specific

Definition: Clarity means being clear and specific about what you want. Don't be vague – be exact.

Why it's important: If you're vague, Gemini might guess wrong. Being specific gives you exactly what you want.

Simple explanation: Instead of saying "tell me about animals," say "tell me about elephants – their size, what they eat, and where they live."

Real‑life example: "Write an email to a customer" vs "Write a friendly email to thank a customer for their order and ask for a review."

School example: "Help me with my homework" vs "Help me solve this math problem: 3x + 5 = 20."

Home example: "Make dinner" vs "Make pasta with tomato sauce."

Nigerian example: "Give me business advice" vs "Give me advice on how to sell more beads at my online store."

+------------------------------------------+
|         Clarity Example                   |
|------------------------------------------+
|  Vague prompt:                            |
|  "Write something about Nigeria."        |
|  → Gemini doesn't know what to write.    |
|                                        |
|  Clear prompt:                          |
|  "Write a short paragraph about Nigeria's|
|  capital city, Lagos, and why it is     |
|  important."                            |
|  → Gemini knows exactly what to write.  |
|                                        |
|  Be clear, be specific!                 |
+------------------------------------------+

Mini summary: Clarity means being specific about what you want. Clear prompts get better answers.

Lesson 5: Context – Giving Background

Definition: Context is the background information you give to Gemini so it understands the situation.

Why it's important: Context helps Gemini understand why you're asking and what's important.

Simple explanation: It's like telling a story – you need to set the scene so the listener understands.

Real‑life example: "I'm writing a marketing plan for a new shoe company. Help me come up with a slogan."

School example: "I'm doing a project on climate change. Give me three key facts."

Home example: "We're having a party for my friend. Help me plan the activities."

Nigerian example: "I'm starting a small business in Lagos selling fabrics. Give me marketing ideas."

+------------------------------------------+
|         Context Example                   |
|------------------------------------------+
|  Without context:                        |
|  "Write a speech."                       |
|  → Gemini doesn't know the occasion.    |
|                                        |
|  With context:                          |
|  "Write a 1-minute speech for my       |
|  school's graduation ceremony. I want  |
|  to thank my teachers and parents."    |
|  → Gemini writes a perfect speech.     |
|                                        |
|  Context makes everything clear!        |
+------------------------------------------+

Mini summary: Context is background information that helps Gemini understand the situation.

Lesson 6: Constraints – Setting Rules

Definition: Constraints are rules or limits you give to Gemini, like word count, tone, or format.

Why it's important: Constraints help Gemini give you exactly what you need in the right format.

Simple explanation: It's like telling a cook to make a meal in 30 minutes with only 5 ingredients – it gives them clear boundaries.

Real‑life example: "Write a product description in 50 words, friendly tone, and include the price."

School example: "Write a summary of the chapter in 3 sentences."

Home example: "Give me a recipe that takes less than 20 minutes to make."

Nigerian example: "Write a business proposal in 2 pages, formal tone, and include a budget."

+------------------------------------------+
|         Constraints Example               |
|------------------------------------------+
|  Without constraints:                    |
|  "Write a poem."                         |
|  → Gemini writes a long poem.           |
|                                        |
|  With constraints:                      |
|  "Write a poem about rain, maximum 4   |
|  lines, and use the word 'water' twice."|
|  → Gemini writes exactly what you ask.  |
|                                        |
|  Constraints give you control!          |
+------------------------------------------+

Mini summary: Constraints are rules that tell Gemini how to format the answer. They give you control.

Lesson 7: Role Prompting – Acting Like Someone

Definition: Role prompting is when you ask Gemini to act like a specific person – a teacher, a chef, a business expert, or anyone.

Why it's important: Role prompting changes the tone and style of the answer. It makes Gemini more specialized.

Simple explanation: It's like asking a friend to pretend to be a teacher – they answer differently than if they were just being themselves.

Real‑life example: "Act as a financial advisor. Give me tips on saving money."

School example: "Act as a history teacher. Explain World War II."

Home example: "Act as a chef. Give me a recipe for chicken stew."

Nigerian example: "Act as a Lagos business owner. Give me advice on selling in the market."

+------------------------------------------+
|         Role Prompting Example            |
|------------------------------------------+
|  Normal prompt:                          |
|  "Give me advice on starting a business."|
|  → Generic answer.                      |
|                                        |
|  Role prompt:                           |
|  "Act as a successful entrepreneur in   |
|  Nigeria. Give me advice on starting a  |
|  small business in Lagos."              |
|  → Expert advice tailored to your need. |
|                                        |
|  Roles make answers better!             |
+------------------------------------------+

Mini summary: Role prompting asks Gemini to act like a specific person. It changes the style and tone of the answer.

Lesson 8: Few‑Shot Prompting – Showing Examples

Definition: Few‑shot prompting is when you give Gemini a few examples of what you want before asking for more.

Why it's important: Examples help Gemini understand the pattern of what you want. It's like showing a child how to do a puzzle before they try.

Simple explanation: You show Gemini two or three examples of the answer you want, and then ask for more in the same style.

Real‑life example: "Here are three product descriptions I like. Now write one for this new product."

School example: "Here are two examples of good essay introductions. Write one for this topic."

Home example: "Here are two recipes I like. Give me one that's similar."

Nigerian example: "Here are two examples of good business slogans. Write one for my business."

+------------------------------------------+
|         Few‑Shot Prompting Example        |
|------------------------------------------+
|  Examples:                               |
|  1. "Write a catchy slogan for a shoe    |
|     store: 'Walk in style, walk with    |
|     pride.'"                            |
|  2. "Write a catchy slogan for a bakery:|
|     'Fresh bread, happy hearts.'"       |
|                                        |
|  Now ask:                              |
|  "Write a catchy slogan for a bookstore|
|  in the same style."                   |
|  → Gemini understands the pattern and  |
|    gives a great answer!               |
+------------------------------------------+

Mini summary: Few‑shot prompting gives Gemini examples of what you want before asking for more.

Lesson 9: Chain‑of‑Thought Prompting – Step by Step

Definition: Chain‑of‑thought prompting asks Gemini to think step by step, explaining its reasoning along the way.

Why it's important: This technique helps Gemini solve complex problems by breaking them down into smaller steps.

Simple explanation: It's like asking a friend to explain their answer step by step, instead of just giving the final answer.

Real‑life example: "Solve this math problem step by step: 25 + 17 = ?"

School example: "Explain how to write a paragraph step by step."

Home example: "Explain how to cook rice step by step."

Nigerian example: "Explain how to register a business in Nigeria step by step."

+------------------------------------------+
|         Chain‑of‑Thought Example          |
|------------------------------------------+
|  Without chain‑of‑thought:               |
|  "What is the capital of France?"        |
|  → "Paris."                              |
|                                        |
|  With chain‑of‑thought:                 |
|  "What is the capital of France?        |
|  Think step by step: France is a country|
|  in Europe. The capital is a city where |
|  the government is located. That city is|
|  Paris."                                |
|  → Gemini explains the reasoning.       |
|                                        |
|  Step‑by‑step thinking = better answers!|
+------------------------------------------+

Mini summary: Chain‑of‑thought prompting asks Gemini to think step by step, explaining its reasoning.

Lesson 10: Building a Prompt Library

Definition: A prompt library is a collection of tested prompts that you can reuse for common tasks.

Why it's important: Instead of writing a new prompt every time, you can use a stored prompt and save time.

Simple explanation: It's like keeping your favourite recipes in a box. When you need one, you just pull it out.

Real‑life example: A business owner keeps a prompt for writing emails, another for creating ads, and another for analyzing data.

School example: A student keeps prompts for writing essays, summarizing, and explaining topics.

Home example: A parent keeps prompts for recipes, meal planning, and to‑do lists.

Nigerian example: A Lagos business owner keeps prompts for customer service, marketing, and inventory management.

+------------------------------------------+
|         Building a Prompt Library         |
|------------------------------------------+
|  Step 1: Identify common tasks.          |
|  Step 2: Write a prompt for each task.   |
|  Step 3: Test each prompt.              |
|  Step 4: Refine and improve.            |
|  Step 5: Store in a document or app.    |
|                                        |
|  Examples of prompts to save:           |
|  - Email drafting                       |
|  - Idea generation                     |
|  - Data analysis                       |
|  - Content creation                    |
+------------------------------------------+

Mini summary: A prompt library is a collection of tested prompts you can reuse. It saves time and improves results.

Lesson 11: Refining and Iterating on Prompts

Definition: Refining means improving your prompt based on the answer you get. Iterating means trying again and again until you get it right.

Why it's important: The first prompt isn't always perfect. Refining helps you get better answers.

Simple explanation: It's like cooking – you taste the food, add more salt, taste again, and keep adjusting until it's perfect.

Real‑life example: If Gemini gives you a short answer, add more context and ask again.

School example: If Gemini doesn't explain a topic well, ask it to explain it differently.

Home example: If Gemini gives you a recipe you don't like, ask it to suggest a different one.

Nigerian example: If Gemini gives you business advice that doesn't fit, refine your prompt to add more specific details.

+------------------------------------------+
|         Refining and Iterating            |
|------------------------------------------+
|  Prompt 1: "Write about Lagos."          |
|  Answer: Too short.                      |
|                                        |
|  Prompt 2: "Write a 100-word paragraph   |
|  about Lagos, the commercial capital of  |
|  Nigeria."                              |
|  Answer: Better, but still missing      |
|  something.                             |
|                                        |
|  Prompt 3: "Write a 150-word paragraph   |
|  about Lagos, Nigeria's commercial       |
|  capital. Include information about the  |
|  population, economy, and culture."     |
|  Answer: Perfect!                       |
|                                        |
|  Keep refining until it's right!       |
+------------------------------------------+

Mini summary: Refining means improving your prompt. Iterating means trying again and again until you get it right.

Lesson 12: Real‑World Prompting Examples

Definition: Let's look at some real‑world prompts that businesses use every day.

Why it's important: Seeing real examples helps you understand how to apply prompting in your own work.

Simple explanation: It's like seeing how others cook before you start cooking yourself.

Real‑life example: A business owner uses prompts to write emails, create social media posts, and analyze reports.

School example: A student uses prompts to write essays, summarize texts, and explain concepts.

Home example: A parent uses prompts to plan meals, create shopping lists, and manage schedules.

Nigerian example: A Lagos business uses prompts to handle customer service, create marketing content, and manage inventory.

+------------------------------------------+
|         Real‑World Prompting Examples     |
|------------------------------------------+
|  Customer Service:                       |
|  "Act as a friendly customer service     |
|  representative. Draft a response to a   |
|  customer who is unhappy with their     |
|  order. Apologize and offer a solution."|
|                                        |
|  Marketing:                             |
|  "Write a social media post for my      |
|  business. The post should announce a   |
|  20% discount and include a call to     |
|  action. Make it exciting!"             |
|                                        |
|  Data Analysis:                         |
|  "Analyze this sales data and tell me   |
|  the top 3 products and why they are   |
|  selling well."                         |
+------------------------------------------+

Mini summary: Real‑world prompts help businesses with customer service, marketing, and data analysis.

Lesson 13: Review – What We Learned

In this module, we learned about prompt engineering – the art of designing prompts to get the best answers from Gemini. We learned that a good prompt has clarity (being specific), context (background), and constraints (rules). We explored advanced techniques like role prompting (acting like someone), few‑shot prompting (showing examples), and chain‑of‑thought prompting (step‑by‑step thinking). We also learned how to build a prompt library and refine prompts through iteration. You are now a prompt master – ready to get the best out of Gemini!

Key Vocabulary (Simple Definitions)

  • Prompt: The instruction or question you give to Gemini.
  • Prompt Engineering: The art of designing prompts to get better answers.
  • Clarity: Being specific about what you want.
  • Context: Background information that helps Gemini understand.
  • Constraints: Rules or limits you give to Gemini.
  • Role Prompting: Asking Gemini to act like a specific person.
  • Few‑Shot Prompting: Giving Gemini examples before asking for more.
  • Chain‑of‑Thought: Asking Gemini to think step by step.
  • Prompt Library: A collection of tested prompts you can reuse.
  • Refining: Improving a prompt based on the answer you get.

Important Concepts

Concept 1: The better the prompt, the better the answer. Good prompts = good results.

Concept 2: A good prompt has clarity, context, and constraints. These three parts make it powerful.

Concept 3: Techniques like role prompting and few‑shot prompting improve results. They help Gemini understand exactly what you want.

Concept 4: Refining and iterating leads to perfect prompts. Keep trying until you get it right.

Step‑by‑Step Explanations

How to write a good prompt in 5 steps:

  1. Know what you want. Be clear about the goal.
  2. Add context. Give background information.
  3. Add constraints. Set rules like word count or tone.
  4. Test the prompt. See what Gemini answers.
  5. Refine and try again. Improve based on the answer.

How to use role prompting:

  1. Start with "Act as [role]" or "Pretend you are [person]."
  2. Add the task you want Gemini to do.
  3. Add any context or constraints.
  4. Test the prompt and refine if needed.

Real‑life Examples

We've seen many real‑life examples in the lessons, such as writing emails, creating marketing content, and analyzing data. These show how prompt engineering is used in business every day.

Nigerian Examples

In Nigeria, businesses use prompt engineering to write customer emails, create social media posts, and analyze sales data. Lagos entrepreneurs use prompts to get advice on selling in the market, managing inventory, and growing their businesses.

Fun Examples Children Can Relate To

Imagine you have a robot friend. If you say "move," it might move left or right. If you say "move forward 3 steps," it moves exactly 3 steps forward. That's prompt engineering!

Another fun example: You ask Gemini to "tell me a story" – you get a short story. You ask "tell me a 5-sentence story about a cat who can fly" – you get exactly what you want.

Everyday Examples

  • Giving clear instructions to a friend.
  • Asking a specific question in class.
  • Ordering exactly what you want at a restaurant.

Teacher Notes

Key points: Emphasize that prompt engineering is a skill that improves with practice. Use lots of examples. Encourage students to experiment with different prompts.

Activity idea: Have students write a prompt for a specific task, test it, and refine it.

Parent Tips

Parents can help children practice prompt engineering by asking them to give clear instructions for tasks. Encourage them to be specific and add details. Show them how to ask Gemini for help with homework using well‑designed prompts.

Interesting Facts

  • Prompt engineering is one of the most important skills for using AI.
  • Many companies are hiring prompt engineers to get the best out of AI.
  • The first prompt engineers started working in 2022.
  • A well‑designed prompt can save hours of work.

Did You Know?

Did you know that the word "prompt" comes from the Latin word "promptus," which means "ready" or "prepared"?

Did you know that some prompts are so powerful they can make an AI act like a human?

Remember This

  • A prompt is the instruction you give to Gemini.
  • Good prompts = good answers.
  • Clarity + Context + Constraints = Good Prompt.
  • Role prompting, few‑shot prompting, and chain‑of‑thought are powerful techniques.
  • Build a prompt library to save time.
  • Refine and iterate until it's perfect.

Common Mistakes

  • Being too vague – not specific enough.
  • Forgetting context – Gemini doesn't know the background.
  • Not adding constraints – the answer may be too long or too short.
  • Not refining – expecting perfection on the first try.
  • Asking for too much in one prompt – keep it simple.

Best Practices

  • Be specific and clear.
  • Add context to help Gemini understand.
  • Set constraints for format and length.
  • Test and refine your prompts.
  • Build a library of successful prompts.
  • Keep prompts simple and focused.

Illustrations

+------------------------------------------+
|         The Perfect Prompt Formula        |
|------------------------------------------+
|  +-------------------+                    |
|  |    Clarity        |                    |
|  |  (What you want)  |                    |
|  +-------------------+                    |
|           +                               |
|           v                               |
|  +-------------------+                    |
|  |    Context        |                    |
|  |  (Background)     |                    |
|  +-------------------+                    |
|           +                               |
|           v                               |
|  +-------------------+                    |
|  |   Constraints     |                    |
|  |    (Rules)        |                    |
|  +-------------------+                    |
|           |                               |
|           v                               |
|  +-------------------+                    |
|  |  Great Answer!    |                    |
|  +-------------------+                    |
+------------------------------------------+

+------------------------------------------+
|         Prompt Engineering Flow           |
|------------------------------------------+
|  +---------+                              |
|  | Write   |                              |
|  | Prompt  |                              |
|  +----+----+                              |
|       |                                   |
|       v                                   |
|  +----+----+                              |
|  | Test    |                              |
|  | with    |                              |
|  | Gemini  |                              |
|  +----+----+                              |
|       |                                   |
|       v                                   |
|  +----+----+                              |
|  | Check   |                              |
|  | Answer  |                              |
|  +----+----+                              |
|       |                                   |
|       v                                   |
|  +----+----+                              |
|  | Refine  | ← If answer is not good     |
|  | Prompt  |                              |
|  +----+----+                              |
|       |                                   |
|       v                                   |
|  +----+----+                              |
|  | Perfect |                              |
|  | Answer  |                              |
|  +---------+                              |
+------------------------------------------+

Comparison Tables

Prompt TypeWhat it doesExample
Basic PromptSimple instruction"Write a poem."
Role PromptAct like someone"Act as a chef. Give me a recipe."
Few‑ShotShows examples"Here are 2 examples. Now do this."
Chain‑of‑ThoughtStep‑by‑step"Think step by step."

Prompt PartPurposeExample
ClarityWhat you want"Write a product description"
ContextBackground"For a new shoe company"
ConstraintsRules"In 50 words, friendly tone"

End‑of‑Module Summary

In this module, we mastered the art of prompt engineering. We learned that a prompt is the instruction you give to Gemini, and that good prompts lead to good answers. We discovered the three parts of a great prompt: clarity (being specific), context (giving background), and constraints (setting rules). We explored powerful techniques like role prompting (acting like someone), few‑shot prompting (showing examples), and chain‑of‑thought prompting (step‑by‑step thinking). We learned to build a prompt library and refine prompts through iteration. You are now a prompt master – able to get the best possible answers from Gemini. In the next module, we will dive into using Gemini in Google Workspace – Gmail, Docs, Sheets, and Slides!

Frequently Asked Questions (10)

  1. What is a prompt? The instruction or question you give to Gemini.
  2. What is prompt engineering? Designing prompts to get the best answers.
  3. What are the three parts of a good prompt? Clarity, context, and constraints.
  4. What is role prompting? Asking Gemini to act like a specific person.
  5. What is few‑shot prompting? Giving Gemini examples before asking for more.
  6. What is chain‑of‑thought prompting? Asking Gemini to think step by step.
  7. Why is context important? It helps Gemini understand the situation.
  8. What is a prompt library? A collection of tested prompts you can reuse.
  9. What is refining? Improving a prompt based on the answer you get.
  10. How do I get better at prompt engineering? Practice, test, and refine.

Review Questions (15)

  1. What is a prompt?
  2. Why does prompt engineering matter?
  3. What are the three parts of a good prompt?
  4. What is clarity in a prompt?
  5. What is context in a prompt?
  6. What are constraints in a prompt?
  7. What is role prompting?
  8. What is few‑shot prompting?
  9. What is chain‑of‑thought prompting?
  10. What is a prompt library?
  11. Why should you refine your prompts?
  12. Give an example of a good prompt for writing an email.
  13. Give an example of role prompting.
  14. What is the difference between a basic prompt and a role prompt?
  15. How do you build a prompt library?

Fill‑in‑the‑Blank Exercises

  1. A __________ is the instruction you give to Gemini.
  2. Good prompts = good __________.
  3. __________, __________, and __________ are the three parts of a good prompt.
  4. __________ prompting asks Gemini to act like a specific person.
  5. __________ prompting shows Gemini examples before asking for more.

True or False Exercises

  1. Being vague is good for prompts. (False)
  2. Context helps Gemini understand the situation. (True)
  3. Constraints are rules you give to Gemini. (True)
  4. Role prompting is the same as a basic prompt. (False)
  5. You should never refine your prompts. (False)

Multiple Choice Questions (15)

  1. What is a prompt?
    A) A type of computer
    B) An instruction or question to Gemini
    C) A programming language
    D) A type of email
    Answer: B
  2. What is prompt engineering?
    A) Building computers
    B) Designing prompts to get better answers
    C) Writing code
    D) Creating websites
    Answer: B
  3. Which is NOT a part of a good prompt?
    A) Clarity
    B) Context
    C) Confusion
    D) Constraints
    Answer: C
  4. What is clarity in a prompt?
    A) Being confusing
    B) Being specific about what you want
    C) Giving background
    D) Setting rules
    Answer: B
  5. What is context in a prompt?
    A) Being specific
    B) Giving background
    C) Setting rules
    D) Ignoring details
    Answer: B
  6. What are constraints in a prompt?
    A) Being specific
    B) Giving background
    C) Rules or limits
    D) Ignoring details
    Answer: C
  7. What is role prompting?
    A) Asking Gemini to act like someone
    B) Giving examples
    C) Thinking step by step
    D) Being vague
    Answer: A
  8. What is few‑shot prompting?
    A) Acting like someone
    B) Giving examples
    C) Thinking step by step
    D) Being vague
    Answer: B
  9. What is chain‑of‑thought prompting?
    A) Acting like someone
    B) Giving examples
    C) Thinking step by step
    D) Being vague
    Answer: C
  10. What is a prompt library?
    A) A collection of tested prompts
    B) A type of computer
    C) A programming language
    D) A type of email
    Answer: A
  11. What does refining a prompt mean?
    A) Deleting it
    B) Improving it based on the answer
    C) Ignoring it
    D) Copying it
    Answer: B
  12. Which example is a role prompt?
    A) "Write a poem."
    B) "Act as a chef. Give me a recipe."
    C) "Here are two examples..."
    D) "Think step by step."
    Answer: B
  13. Which example is a few‑shot prompt?
    A) "Write a poem."
    B) "Act as a chef. Give me a recipe."
    C) "Here are two examples of poems. Now write one."
    D) "Think step by step."
    Answer: C
  14. Which example is a chain‑of‑thought prompt?
    A) "Write a poem."
    B) "Act as a chef. Give me a recipe."
    C) "Here are two examples..."
    D) "Solve this problem step by step."
    Answer: D
  15. Why should you use a prompt library?
    A) To waste time
    B) To save time and reuse good prompts
    C) To confuse Gemini
    D) To delete prompts
    Answer: B

Matching Exercises

Match the term with its definition.

TermDefinition
Claritya) Background information
Contextb) Being specific
Constraintsc) Rules or limits
Role Promptingd) Act like someone
Few‑Shot Promptinge) Giving examples

Answers: Clarity – b, Context – a, Constraints – c, Role Prompting – d, Few‑Shot Prompting – e

Short Answer Questions

  1. What is a prompt and why is it important?
  2. Explain the three parts of a good prompt.
  3. What is role prompting and give an example.
  4. What is few‑shot prompting and give an example.
  5. How do you build a prompt library?

Scenario‑based Exercises

Scenario 1: You need to write a business email to a customer about a new product. Write a prompt that gives Gemini all the information it needs.

Scenario 2: You want Gemini to help you plan a social media campaign for your business. Write a prompt that includes clarity, context, and constraints.

Group Activity

"Prompt Challenge" – In groups of 4, write the best prompt for a specific task (e.g., writing a business plan, creating a logo description, or analyzing sales data). Test your prompt with Gemini and present the results to the class.

Individual Activity

Write a prompt for Gemini to help you with a task you do regularly (like writing emails, creating to‑do lists, or planning meals). Test it, refine it, and save it to your prompt library.

Classroom Discussion Questions

  1. How can prompt engineering help you in school?
  2. What is the most important part of a prompt?
  3. How can prompt engineering help Nigerian businesses?
  4. What are the challenges of prompt engineering?

Mini Project

"Build Your Prompt Library" – Create a document with 5 prompts for common tasks (email, marketing, data analysis, planning, and creative writing). Test and refine each prompt. Share your library with the class.

Practical Assignment

Using Gemini, write a prompt that generates a business plan outline for a small business. Test the prompt, refine it, and submit the final prompt and the generated outline.

Challenge Exercise

"Prompt Master Challenge" – Write a prompt that uses all three techniques: role prompting, few‑shot prompting, and chain‑of‑thought prompting. Test it with Gemini and explain how each technique improved the answer.

Key Takeaways

  • A prompt is the instruction you give to Gemini.
  • Good prompts lead to good answers.
  • A good prompt has clarity, context, and constraints.
  • Clarity means being specific.
  • Context gives background.
  • Constraints set rules.
  • Role prompting acts like someone.
  • Few‑shot prompting shows examples.
  • Chain‑of‑thought prompting thinks step by step.
  • Build a prompt library and refine your prompts.

Preparation for the Next Module

In Module 3, we will explore Gemini in Google Workspace – Core Applications. You will learn how to use Gemini inside Gmail, Docs, Sheets, and Slides to draft emails, write documents, analyze data, and create presentations. Get ready to see Gemini in action in the tools you use every day!

🏆 Get Certified

🔒

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

🎓 Sign Up to Get Certified
🛠️ Practice Tools
Hands-on simulators & labs - subscription required.
→
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
→