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!
After this module, you will be able to:
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!
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
How to Create a System Prompt in 4 Steps:
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.
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.
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.
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. |
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!
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
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.
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.
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.
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.
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.
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.
Answers to the Multiple Choice Questions are already provided above. For other exercises, refer to the lessons and key vocabulary.
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!