Intro to Prompt Engineering
Learn to talk to AI
Coding Without Borders, 2025

1

SOWCoders
Dedicated to battling gender-based digital inequality in low and middle-income countries.
Global Impact
Impacted over 40,000 girls across 57 countries since 2018.
Empowering Through Support
Providing training, mentorship, and culture-specific infrastructure support.

2

Course Overview
Here's a quick look at what you can expect from the program:
4 Classes
Dive deep into prompt engineering with a series of comprehensive lessons.
9 AM New York Time Every Saturday
Live sessions designed to fit your schedule.
1 Project
Apply your skills to a real-world project and build your portfolio.

3

🌟 What is AI?
Making computers intelligent

4

🤖 Examples of AI
YouTube recommendations
AI studies what you watch to suggest new shows
ChatGPT
AI that can read, write, and talk like a person

5

⚠️ The Bad Parts of AI
Very high energy consumption
AI encouraging harmful behaviors
Misinformation and bias

6

🌈 The Good Parts of AI
Intelligence at your disposal
Education
Creativity
Entrepreneurship
Day-to-Day Activities

7

🧰 AI Tools
ChatGPT, Cursor, Gemini, Claude

8

💬 What is a Prompt?
A prompt is the instruction you give to an AI tool to tell it what to do.
It's how you communicate with AI.

9

🎯 What is Prompt Engineering?
It is the skill of designing and refining instructions, or "prompts", to guide an AI model toward generating the desired output.

10

🎯 Why Learn Prompt Engineering?
AI tools are everywhere — school, homework, future jobs
It's becoming a fundamental skill
Use AI in a way that helps people, not harms them

11

📝 Your First Prompt
(Activity slide)

12

🧩 Prompt Framework
Task → Context → Expectation
Task
What do you want the AI to do?
Context
Background the AI should know
Expectation
Format, tone, or output style

13

🔄 Iterate
1
Revisit the prompt framework
2
Break it down into multiple shorter prompts
3
Phrase it differently
4
Use constraints

14

🖼️ Creating an Image
Use the prompting framework but for images.

15

🎙️ Multi-Modal Prompt
Include text, audio, documents, and images in your prompt for rich context.
Text
Audio
Documents
Images

16

📚 Process Large Documents
Use AI to summarize, extract, and organize long text.

17

🌀 Hallucinations
AI sometimes makes things up — and it can happen anytime.

18

📊 Build Tables
Use AI to turn information into clean tables.

19

🔗 Prompt Chaining
For bigger tasks, you can use an AI’s output as input for the next prompt. Linking prompts this way forms a chain—called prompt chaining.

20

💭 Chain-of-Thought Prompting
Enhance AI performance and transparency by guiding it through a logical reasoning process.
Request Step-by-Step Reasoning
Understand the AI's Logic
Spot Mistakes and Refine

21

Homework Submission and Reflection

22

🛡️ What are some ways you can keep yourself safe from trusting AI answers that might be wrong or made-up (hallucinated)?
To mitigate the risks of AI hallucinations and ensure accuracy, follow these essential steps:
Ask an expert (teacher, parent, mentor)
Do a web search
Ask the AI tool for sources and verify them
Cross-check across multiple AI tools
Proofread and use your own judgement

23

Your Questions
Thank you for submitting your insightful questions. Let's explore them together:
Safety & References
  • Is it safe to upload our photos to AI tools?
  • Do you have to add references in the prompt?
Hallucinations & Learning
  • How do you determine whether an answer is correct or a hallucination?
  • How to use AI in a way that helps us learn without becoming dependent or less intelligent?
  • Can you explain more about AI hallucinations?
AI Creation & Application
  • How can I tell if a piece of writing was created by AI or by a human?
  • How can I share an app prototype made on Google AI Studio?
  • How to use a prompt generated using AI?
  • How can we use AI to build apps?
  • How can I create AI? What tools can I use?
Ethical Considerations
  • How can using AI harm other people? E.g., How does a silly picture like a jumping cat be harmful?
  • How can prompt engineering help in reducing hallucinations?

24

Meta-Prompting
Use AI to generate prompts
Direct Request
Simply ask the AI to generate a prompt for a specific goal or output.
Template
Provide a structured template for the AI to fill in or expand upon, guiding its prompt creation.
Image
Use an image as input and instruct the AI to generate a descriptive prompt for that image.
Prompt Reversal
Reverse engineer the conversation to produce a prompt

25

Simulations Agents
Simulations agents enable a dynamic learning environment, allowing for iterative improvement and skill development through practical engagement.
Simulate Scenarios
Practice
Get Feedback

26

The Red Team Technique
A powerful technique to generating the desired output by having the AI generate content, and then challenging it from a critical perspective.
Generate using AI
Flip to Critique

27

Incremental Requirement Gathering
Use AI to gradually collect context for a task; especially when you don’t know what all should be given as context.
Ask AI to question you
Answer the questions
Review the context summary
Proceed with the task

28

Made with