Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Ai Prompt Engineering ยท Lesson 6 of 13

Module Five

๐Ÿ“– 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.
6
Module 5: System Prompts and Personas

๐Ÿ“˜ Module Five: System Prompts and Personas

Welcome to Module Five! This is where we become super smart about AI. We will learn about system prompts and personas. A system prompt is like giving AI a permanent job or personality. A persona is the character or way of speaking that AI uses. We will also learn how to make AI remember things and stay in character. This is how professionals use AI. By the end, you will be able to make AI act like a specific person or expert for a whole conversation. Let's begin!

๐ŸŽฏ Learning Objectives

After this module, you will be able to:

  • Define a system prompt and why it is used.
  • Create a system prompt to set AI's role permanently.
  • Use personas to make AI speak in a certain style.
  • Maintain consistency in a conversation with AI.
  • Combine system prompts with user prompts.
  • Apply these skills for school projects and fun.

๐Ÿ“– Warm-up Story: Mr. Eze's Smart Classroom

Mr. Eze was a teacher in Enugu. He wanted AI to help him teach, but he didn't want to keep telling AI "You are a teacher" every time. He wanted AI to always be a teacher. His friend told him: "Use a system prompt. It tells AI what to be from the start."

Mr. Eze typed: "System: You are a friendly primary school teacher. You explain things in simple words." Then, he asked: "What is a noun?" AI answered perfectly. He asked: "What is a verb?" AI answered like a teacher. He didn't have to repeat the role. This made teaching super easy. That is the power of system prompts!

๐Ÿ“š Main Lessons

Lesson 1: What is a System Prompt?

Definition: A system prompt is a special instruction that tells AI how to behave for the whole conversation.

Why it is important: You don't have to repeat instructions every time. AI remembers its role and follows it.

Simple explanation: It's like telling a friend: "For this whole game, you are the referee." They know their job from the start.

Real-life example: At a restaurant, the host says: "Welcome, I am your host." That sets the tone for the meal.

School example: When you enter a classroom, the teacher says "I am your teacher." That is a system prompt for the day.

Home example: "For today, you are the chef." That sets the role.

Nigerian example: At a traditional wedding, the MC says "I am your Master of Ceremonies." That is a system prompt.

Illustration:

    System Prompt: "You are a helpful assistant."
    User: "What is the capital of Nigeria?"
    AI: "Abuja is the capital of Nigeria."
    (AI stays helpful for the whole chat)
    

Mini summary: A system prompt sets AI's role for the whole conversation.

Lesson 2: Why Use a System Prompt?

Definition: System prompts are used to save time and ensure consistency.

Why it is important: Without a system prompt, you have to tell AI its role every time. That's tiring. With a system prompt, AI remembers.

Simple explanation: Imagine if you had to introduce yourself to your friend every time you met. That would be silly. System prompts avoid that.

Real-life example: A customer service bot says: "I am here to help you." That's a system prompt.

School example: A tutor says "I will help you with math." That sets the expectation.

Home example: "For this afternoon, I am the activity director."

Nigerian example: A radio announcer says "You are listening to Wazobia FM." That sets the station's identity.

Illustration:

    Without system prompt:
    User: "You are a chef. Give me a recipe."
    AI: (gives recipe)
    User: "Now give me a joke."
    AI: (gives joke, but forgot it was a chef)

    With system prompt:
    System: "You are a chef."
    User: "Give me a recipe."
    AI: (gives recipe)
    User: "Give me a joke."
    AI: (gives a cooking joke because it remembers it's a chef)
    

Mini summary: System prompts help AI stay in character.

Lesson 3: How to Write a System Prompt

Definition: A system prompt is written at the very beginning of your conversation with AI.

Why it is important: It sets the rules before you ask any questions.

Simple explanation: Start with "System:" or "You are..." and then describe the role and rules.

Real-life example: "System: You are a friendly librarian who recommends books."

School example: "System: You are a math tutor. Explain things step by step."

Home example: "System: You are a game master. Suggest fun indoor games."

Nigerian example: "System: You are a Nigerian historian. Talk about Nigerian culture."

Illustration:

    System: You are a poet. Write short, happy poems.
    User: Write a poem about school.
    AI: School is bright, school is fun,
         Learning new things for everyone!
    User: Write a poem about lunch.
    AI: Lunch is yummy, lunch is great,
         I can't wait to fill my plate!
    

Mini summary: Start your chat with a system prompt to set the role.

Lesson 4: What is a Persona?

Definition: A persona is the personality or style that AI uses when speaking.

Why it is important: A persona makes AI's answers more interesting and fitting. You can make AI sound like a pirate, a scholar, or a friend.

Simple explanation: It's like wearing a costume for your voice. You can sound funny, serious, or kind.

Real-life example: A tour guide might use a friendly, excited persona.

School example: A teacher uses a clear, patient persona.

Home example: A parent uses a gentle persona at bedtime.

Nigerian example: A storyteller uses a dramatic, animated persona.

Illustration:

    Persona: "Speak like a pirate."
    AI: "Ahoy matey! The capital of Nigeria be Abuja, arrr!"
    

Mini summary: A persona is the style or personality AI uses.

Lesson 5: System Prompt vs Persona

Definition: A system prompt is the role; a persona is the style. They can be used together.

Why it is important: Knowing the difference helps you build better prompts. You can have a teacher role with a funny persona.

Simple explanation: Role = what you do (teacher). Persona = how you do it (funny teacher).

Real-life example: A doctor has a role (healing) and a persona (calm and caring).

School example: A principal has a role (leading the school) and a persona (serious).

Home example: A chef has a role (cooking) and a persona (creative).

Nigerian example: A traditional chief has a role (leadership) and a persona (wise).

Illustration:

    System: "You are a teacher." (role)
    Persona: "Speak in a very friendly way." (style)
    Combined: "You are a friendly teacher who uses simple words."
    

Mini summary: Role is what; persona is how.

Lesson 6: Creating a Friendly Persona

Definition: A friendly persona is warm, encouraging, and easy to talk to.

Why it is important: A friendly tone makes learning fun and reduces fear.

Simple explanation: "You are a friendly robot who gives compliments."

Real-life example: "You are a kind teacher who says 'good job' often."

School example: "You are a fun science teacher who uses silly examples."

Home example: "You are a cheerful helper who gives high fives."

Nigerian example: "You are a welcoming host who says 'you are welcome'."

Illustration:

    System: "You are a friendly math tutor. Always say 'Great question!'"
    User: "What is 5 x 5?"
    AI: "Great question! 5 x 5 = 25."
    

Mini summary: A friendly persona makes interactions happy.

Lesson 7: Creating an Expert Persona

Definition: An expert persona is knowledgeable, precise, and confident.

Why it is important: An expert persona gives you reliable, detailed answers.

Simple explanation: "You are a scientist who gives facts."

Real-life example: "You are a doctor who gives health advice."

School example: "You are a history professor who gives dates."

Home example: "You are a mechanic who explains car problems."

Nigerian example: "You are a geographer who knows all about Nigerian rivers."

Illustration:

    System: "You are a science expert. Give accurate, short answers."
    User: "What is the speed of light?"
    AI: "The speed of light is approximately 299,792 kilometers per second."
    

Mini summary: An expert persona gives precise answers.

Lesson 8: Creating a Creative Persona

Definition: A creative persona is imaginative and playful.

Why it is important: A creative persona helps generate new ideas and stories.

Simple explanation: "You are an inventor who thinks of wild ideas."

Real-life example: "You are a storyteller who adds magic to every tale."

School example: "You are a drama teacher who loves acting."

Home example: "You are a game designer who invents fun games."

Nigerian example: "You are a traditional artist who creates colorful patterns."

Illustration:

    System: "You are a creative poet. Use rhymes and imagination."
    User: "Write a poem about a pencil."
    AI: "A pencil thin, a pencil tall,
         It writes on paper, that is all.
         But in my hand, it draws a tree,
         A magic tool for you and me!"
    

Mini summary: A creative persona sparks imagination.

Lesson 9: Combining System and User Prompts

Definition: Combining means using a system prompt to set the role, then user prompts to ask questions.

Why it is important: This is how professionals use AI efficiently. The system prompt does the heavy lifting.

Simple explanation: You write one system prompt, then ask many questions. AI stays in character.

Real-life example: "System: You are a travel guide. User: What are the best places in Lagos?"

School example: "System: You are a math tutor. User: Solve 2x + 3 = 7."

Home example: "System: You are a chef. User: Give me a dinner recipe."

Nigerian example: "System: You are a Nigerian musician. User: Sing a song about unity."

Illustration:

    System: "You are a friendly librarian."
    User: "Recommend a book for a 10-year-old."
    AI: "I recommend 'The Magic Tree House' series."
    User: "What is it about?"
    AI: "It's about a brother and sister who travel through time."
    

Mini summary: System + user prompts = smooth conversation.

Lesson 10: Keeping AI in Character

Definition: Keeping AI in character means making sure AI doesn't forget its role during the conversation.

Why it is important: Sometimes AI might slip out of character. You can remind it.

Simple explanation: If AI forgets, you can say "Remember, you are a teacher."

Real-life example: If a tour guide starts talking about their personal life, you can remind them to focus on the tour.

School example: If a tutor starts telling jokes, you can say "Please stay focused on math."

Home example: If the "chef" starts talking about gardening, remind it to talk about cooking.

Nigerian example: If the "historian" starts talking about weather, ask it to return to history.

Illustration:

    System: "You are a serious scientist."
    User: "Tell me a joke."
    AI: "I am a serious scientist, but here is a science joke: Why did the atom lose an electron? Because it was positive!"
    (AI stayed in character by giving a science joke)
    

Mini summary: Remind AI of its role if it forgets.

Lesson 11: System Prompts for Group Projects

Definition: A group project is a task done by several people. AI can help by taking on a role.

Why it is important: System prompts can assign AI a role that supports the whole group, like a researcher or a writer.

Simple explanation: "System: You are the researcher for our group. Find facts about Nigeria."

Real-life example: A team working on a presentation can have AI as the fact-checker.

School example: For a science project, AI can be the experiment planner.

Home example: For a family event, AI can be the activity coordinator.

Nigerian example: For a cultural display, AI can be the costume advisor.

Illustration:

    System: "You are the note-taker for our group. Summarize everything."
    User: "What did we learn about plants?"
    AI: "We learned that plants need sunlight, water, and soil to grow."
    

Mini summary: AI can take on group roles with system prompts.

Lesson 12: System Prompts for Long Conversations

Definition: Long conversations are chats that go on for a while. System prompts keep AI consistent.

Why it is important: Without a system prompt, AI might change its style halfway through.

Simple explanation: A system prompt makes sure AI stays the same helpful assistant from start to finish.

Real-life example: When you chat with a customer service bot, it stays helpful throughout.

School example: During a long tutoring session, the tutor stays patient.

Home example: During a long game, the game master stays fair.

Nigerian example: During a long storytelling session, the storyteller stays dramatic.

Illustration:

    System: "You are a patient tutor."
    User: (asks many questions)
    AI: (answers patiently every time)
    (AI stays consistent because of the system prompt)
    

Mini summary: System prompts keep AI consistent in long chats.

Lesson 13: Testing and Improving System Prompts

Definition: Testing means trying your system prompt to see if it works. Improving means making it better.

Why it is important: Not every system prompt works perfectly. You can adjust it to get better results.

Simple explanation: If AI doesn't act like a teacher, change the prompt to be more specific.

Real-life example: If a guide is too quiet, you tell them to speak louder.

School example: If a tutor is too fast, ask them to slow down.

Home example: If a chef gives unclear recipes, ask for more details.

Nigerian example: If a storyteller is boring, ask them to add more action.

Illustration:

    First try: "You are a teacher." (too vague)
    Improved: "You are a primary school teacher who uses simple words and gives examples."
    

Mini summary: Test and improve your system prompts for best results.

Lesson 14: Saving and Reusing System Prompts

Definition: Saving means keeping your good system prompts to use again later.

Why it is important: If you find a great system prompt, you can use it for other projects.

Simple explanation: Write your best system prompts in a notebook or document. Then copy and paste them when needed.

Real-life example: A teacher has a saved system prompt for each subject.

School example: A student saves prompts for history, math, and science.

Home example: A parent saves prompts for recipes, games, and stories.

Nigerian example: A writer saves prompts for Nigerian folklore.

Illustration:

    My saved prompts:
    - "You are a funny poet."
    - "You are a serious historian."
    - "You are a friendly math tutor."
    

Mini summary: Save your system prompts for easy reuse.

Lesson 15: The Power of Good System Prompts

Definition: Good system prompts make AI your perfect assistant, tutor, or creative partner.

Why it is important: They save time, improve quality, and make interactions consistent.

Simple explanation: A good system prompt is like having a superpower. It makes AI do exactly what you want.

Real-life example: Businesses use system prompts to make their chatbots helpful and consistent.

School example: Students use them to get better homework help.

Home example: Families use them for fun activities and learning.

Nigerian example: Creatives use them to generate ideas for art, music, and stories.

Illustration:

    System: "You are a creative writer who writes in the style of a Nigerian folktale."
    User: "Write a story about a trickster."
    AI: (gives a story in a traditional folktale style)
    

Mini summary: Good system prompts unlock AI's full potential.

๐Ÿ”‘ Key Vocabulary

  • System Prompt: An instruction at the start of a conversation that sets AI's role.
  • Persona: The personality or style AI uses when talking.
  • Role: The job or character AI plays.
  • Consistency: Staying the same throughout the conversation.
  • Character: The persona or role AI adopts.
  • Friendly: Warm and kind.
  • Expert: Very knowledgeable.
  • Creative: Imaginative and original.
  • Save: Keep for later use.
  • Improve: Make better.

๐Ÿ’ก Important Concepts

  • System prompts set the tone for the whole conversation.
  • Personas add flavor to AI's answers.
  • Combining system prompts with user prompts is key.
  • Consistency makes AI reliable.
  • Testing and saving prompts makes you efficient.

๐Ÿ“ Step-by-Step Explanations

How to Create a System Prompt in 4 Steps:

  1. Decide the role: What do you want AI to be? (e.g., a tutor).
  2. Decide the persona: How should it sound? (e.g., friendly).
  3. Write the system prompt: Start with "System: You are..." and add details.
  4. Test it: Ask a few questions to see if AI follows the role.

๐ŸŒ Real-life Examples

  • Customer service: "System: You are a helpful customer service representative."
  • Medical advice: "System: You are a kind doctor. Give general health tips."
  • Financial advice: "System: You are a financial advisor. Give simple saving tips."
  • Language learning: "System: You are a patient language tutor."

๐Ÿ‡ณ๐Ÿ‡ฌ Nigerian Examples

  • "System: You are a Nigerian storyteller who tells tales about Anansi."
  • "System: You are a Yoruba language teacher. Teach simple greetings."
  • "System: You are a Lagos tour guide. Show tourists the best spots."
  • "System: You are a Nigerian chef. Give recipes for local dishes."
  • "System: You are a Nigerian musician. Write lyrics about unity."

๐ŸŽˆ Fun Examples Children Relate To

  • "System: You are a friendly monster who tells silly jokes."
  • "System: You are a wizard who gives magical advice."
  • "System: You are a superhero who gives courage."
  • "System: You are a robot who speaks in beeps and boops."
  • "System: You are a detective who solves mysteries."

๐Ÿ  Everyday Examples

  • "System: You are a cooking assistant. Give easy recipes."
  • "System: You are a homework helper. Explain concepts clearly."
  • "System: You are a game master. Suggest family games."
  • "System: You are a story reader. Read bedtime stories."
  • "System: You are a gardening advisor. Give plant care tips."

๐Ÿง‘โ€๐Ÿซ Teacher Notes

This module introduces advanced concepts. Teachers should emphasize the difference between system prompts and user prompts. Use role-play activities to demonstrate system prompts. Have students create system prompts for various characters. Encourage them to test and refine their prompts. Remind them that system prompts are like setting the stage for a play.

๐Ÿ‘ช Parent Tips

Parents can help children by creating system prompts for different activities. For example, "You are a chef" for cooking time, or "You are a teacher" for homework. Save the good prompts in a document. Encourage children to be creative with personas. Supervise their interactions and help them improve their prompts.

๐ŸŒŸ Interesting Facts

  • Many companies use system prompts to train AI customer service bots.
  • System prompts can be as long as a paragraph to give very detailed instructions.
  • Some AI models can remember system prompts for hundreds of questions.
  • Personas can be based on real people or fictional characters.
  • System prompts are used in video games to control NPC (non-player character) behavior.

๐Ÿค” Did You Know?

  • Did you know that you can give AI a system prompt to speak like a specific celebrity?
  • Did you know that system prompts can be used to create AI companions?
  • Did you know that some AI models have a "system" field built into their interface?
  • Did you know that system prompts can be used to control the length of all answers?

๐Ÿง  Remember This

  • System prompts set AI's role for the whole conversation.
  • Personas define the style of AI's answers.
  • Write system prompts at the start of the chat.
  • Combine system prompts with user prompts for best results.
  • Test and improve your system prompts.
  • Save your best system prompts for later use.

โŒ Common Mistakes

  • Not using a system prompt: Repeating roles every time wastes time.
  • Vague system prompts: "You are a helper" is not specific enough.
  • Forgetting to save prompts: Losing good system prompts is a waste.
  • Not testing: Not checking if the prompt works can lead to bad answers.
  • Overloading with rules: Too many rules can confuse AI.

โœ… Best Practices

  • Start every chat with a clear system prompt.
  • Be specific about the role and persona.
  • Test your system prompt with a few questions.
  • Save your effective system prompts in a note.
  • Adjust the prompt if AI doesn't follow it.
  • Use system prompts to keep AI consistent across long conversations.

๐Ÿ“Š Clear ASCII Illustrations

Flowchart: Using a System Prompt

    +---------------------+
    | Start Chat          |
    +----------+----------+
               |
               V
    +----------+----------+
    | Write System Prompt |
    | "You are a teacher" |
    +----------+----------+
               |
               V
    +----------+----------+
    | User: Ask Question  |
    +----------+----------+
               |
               V
    +----------+----------+
    | AI Answers as Role  |
    +----------+----------+
               |
               V
    +----------+----------+
    | User: Ask Another   |
    | AI Stays in Role    |
    +---------------------+
    

Comparison: System Prompt vs User Prompt

    System Prompt:      Sets the role (e.g., "You are a chef.")
    User Prompt:        Asks a specific question (e.g., "Give me a recipe.")
    AI Response:        Answers based on the role.
    

๐Ÿ“‹ Comparison Tables

System Prompt vs No System Prompt

No System Prompt With System Prompt
Must repeat role each time. Role is set once.
AI may forget its character. AI stays in character.
Inconsistent answers. Consistent answers.

Different Personas

Friendly Persona Expert Persona
Uses warm, encouraging words. Uses precise, factual words.
"Great job!" "The answer is 42."
Best for beginners. Best for serious topics.

๐Ÿ“Œ End-of-Module Summary

In Module Five, we learned about system prompts and personas. A system prompt is a special instruction that sets AI's role for the whole conversation. A persona is the style or personality that AI uses. We learned how to create friendly, expert, and creative personas, and how to combine system prompts with user prompts for smooth conversations. We also practiced testing, saving, and improving our system prompts. With these skills, you can make AI act as a consistent assistant, tutor, or creative partner. You are now ready to use AI like a professional!

โ“ Frequently Asked Questions

  1. What is a system prompt? A special instruction that sets AI's role for the whole conversation.
  2. Why use a system prompt? To save time and keep AI consistent.
  3. What is a persona? The personality or style AI uses.
  4. How do I write a system prompt? Start with "System: You are..." and describe the role.
  5. Can I use a system prompt for any topic? Yes, for anything you want.
  6. What if AI forgets its role? Remind it with "Remember, you are..."
  7. How long should a system prompt be? As long as needed, but short is best.
  8. Can I save system prompts? Yes, save them in a document.
  9. What is the difference between role and persona? Role is what you do; persona is how you do it.
  10. How can I improve my system prompt? Test it and make it more specific.

๐Ÿ“ Review Questions

  1. What is a system prompt?
  2. Why is a system prompt important?
  3. What is a persona?
  4. Give an example of a system prompt.
  5. What is the difference between a system prompt and a user prompt?
  6. How do you keep AI in character?
  7. What is a friendly persona?
  8. What is an expert persona?
  9. What is a creative persona?
  10. How can you test a system prompt?
  11. Why should you save system prompts?
  12. Give a Nigerian example of a system prompt.
  13. What happens if you don't use a system prompt?
  14. How can you improve a system prompt?
  15. What is the benefit of combining system and user prompts?

โœ๏ธ Fill-in-the-Blank

  1. A _______ prompt sets AI's role for the whole conversation. (system)
  2. A _______ is the personality AI uses. (persona)
  3. Start a system prompt with "System: You are a _______." (role)
  4. A friendly persona uses _______ words. (warm/encouraging)
  5. An expert persona gives _______ answers. (precise/accurate)
  6. A creative persona is _______ and playful. (imaginative)
  7. To keep AI in character, you can _______ it of its role. (remind)
  8. You should _______ your system prompts for later use. (save)
  9. If a system prompt doesn't work, you should _______ it. (improve)
  10. Combining system and _______ prompts makes a smooth conversation. (user)

โœ… True or False

  1. System prompts are used to save time. (True)
  2. A persona is the same as a system prompt. (False)
  3. You should use system prompts for every chat. (True)
  4. AI never forgets its role. (False)
  5. A friendly persona is good for teaching young children. (True)
  6. Expert personas use simple words. (False โ€“ they use precise words)
  7. Creative personas are only for artists. (False)
  8. You cannot save system prompts. (False)
  9. Testing system prompts is not necessary. (False)
  10. System prompts can be used for Nigerian folklore. (True)

๐Ÿ”˜ Multiple Choice Questions

  1. What does a system prompt do?
    A) Sets the role for one question only
    B) Sets the role for the whole conversation
    C) Asks a question
    D) None
    Answer: B
  2. What is a persona?
    A) The role
    B) The style of speaking
    C) A type of AI
    D) None
    Answer: B
  3. How do you start a system prompt?
    A) "User:"
    B) "System:"
    C) "Persona:"
    D) None
    Answer: B
  4. Which persona is warm and encouraging?
    A) Expert
    B) Friendly
    C) Creative
    D) None
    Answer: B
  5. Which persona is precise and factual?
    A) Friendly
    B) Expert
    C) Creative
    D) None
    Answer: B
  6. Why save system prompts?
    A) To reuse them
    B) To delete them
    C) To forget them
    D) None
    Answer: A
  7. What should you do if AI forgets its role?
    A) Stop using AI
    B) Remind it
    C) Ignore it
    D) None
    Answer: B
  8. What is a creative persona?
    A) Boring and plain
    B) Imaginative and playful
    C) Serious and strict
    D) None
    Answer: B
  9. Which is a Nigerian system prompt?
    A) "You are a chef. Give me a pizza recipe."
    B) "You are a Nigerian chef. Give me a jollof rice recipe."
    C) "Tell me about snow."
    D) None
    Answer: B
  10. What is the benefit of a system prompt?
    A) It makes AI consistent
    B) It makes AI confused
    C) It makes AI slow
    D) None
    Answer: A
  11. Can you combine system and user prompts?
    A) No
    B) Yes
    C) Only sometimes
    D) None
    Answer: B
  12. What does an expert persona do?
    A) Makes jokes
    B) Gives accurate information
    C) Tells stories
    D) None
    Answer: B
  13. How can you improve a system prompt?
    A) Make it shorter
    B) Make it more specific
    C) Remove all details
    D) None
    Answer: B
  14. What is a good practice for system prompts?
    A) Use them for every chat
    B) Never use them
    C) Use only for fun
    D) None
    Answer: A
  15. What is the main idea of this module?
    A) System prompts and personas
    B) Math
    C) History
    D) None
    Answer: A

๐Ÿ”— Matching Exercises

Match the term with its definition:

Term Definition
1. System Prompt A. The personality AI uses
2. Persona B. An instruction that sets the role for the whole chat
3. Friendly C. Imaginative and playful
4. Expert D. Warm and encouraging
5. Creative E. Precise and knowledgeable

Answers: 1-B, 2-A, 3-D, 4-E, 5-C

โœ๏ธ Short Answer Questions

  1. Write a system prompt for a friendly math tutor.
  2. What is the difference between a system prompt and a persona?
  3. Give an example of a Nigerian system prompt.
  4. How do you test a system prompt?
  5. Why should you save your system prompts?

๐ŸŽญ Scenario-based Exercises

Scenario 1: You are creating a chatbot for a school library. Write a system prompt that makes AI a helpful librarian.

Scenario 2: You want AI to be a creative writing partner for a story about Nigeria. Write a system prompt with a creative persona.

Scenario 3: You are helping a younger sibling with homework. Write a system prompt that makes AI a patient tutor.

๐Ÿ‘ฅ Group Activity

In groups, create a system prompt for a specific character (e.g., a wise old owl, a Nigerian superhero, a friendly robot). Then, take turns asking questions to AI (one member plays AI) to see if it stays in character. Discuss what made the system prompt effective.

๐Ÿง‘ Individual Activity

Write three different system prompts for three different roles (e.g., teacher, chef, poet). For each, also specify a persona. Then, ask one question to each and write down the responses. Reflect on which system prompt worked best.

๐Ÿ’ฌ Classroom Discussion Questions

  • Why are system prompts helpful for teachers?
  • What persona would you use for a science project?
  • How can system prompts help in group projects?
  • What is your favorite persona to give AI and why?
  • How can you improve a system prompt if it doesn't work well?

๐Ÿ› ๏ธ Mini Project

Create a "System Prompt Bank" with at least 5 different system prompts for different purposes (e.g., homework, stories, games, cooking, Nigerian folklore). Share your bank with the class and explain when you would use each one.

๐Ÿ“„ Practical Assignment

Use an AI assistant and write a system prompt for a specific role. Have a conversation with at least 5 questions and answers. Then, write a short report on how well AI stayed in character and any improvements you would make to the system prompt.

๐Ÿ† Challenge Exercise

Write a system prompt that gives AI a very specific and unusual role (e.g., "You are a pirate who is also a scientist"). Then, ask a series of questions to see if AI can blend both roles. For example, ask "What is the best pirate ship for a science experiment?" Challenge a friend to do the same and compare results.

๐Ÿ” Quiz Answers

Answers to the Multiple Choice Questions are already provided above. For other exercises, refer to the lessons and key vocabulary.

๐ŸŽ Key Takeaways

  • System prompts set AI's role for the whole conversation.
  • Personas define the style and personality of AI.
  • Use "System: You are..." to start a system prompt.
  • Combine system prompts with user prompts for smooth chats.
  • Test and improve your system prompts.
  • Save your best prompts for reuse.
  • Consistency is the key to great AI interactions.

๐Ÿ”œ Preparation for Module Six

In Module Six, we will learn about advanced prompting techniques like chain-of-thought (asking AI to think step by step), using AI for decision-making, and creating AI-assisted projects. We will also learn about ethical considerations and how to be responsible with AI. Get ready to become a true AI expert! Keep practicing your system prompts and personas.


End of Module Five โ€“ You are a system prompt master!

๐Ÿ† 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.
โ†’