How to Prompt

Introduction to Prompting

Before we dive into the next exercises, let’s take a moment to understand what prompting really is and why it matters.

When you interact with an AI like a large language model (LLM), the way you ask determines the quality of the answer. That’s where prompt engineering comes in. They provide frameworks to write clever questions and discuss how to communicate clearly and effectively with AI systems.

Prompt engineering helps you:

  • Understand what AI can and can’t do
  • Get better and more useful results
  • Build confidence in using AI tools in real-world settings

Elements of a Good Prompt by Your Story

A well-crafted prompt often includes these four elements:

  1. Goal: What do you want the AI to do? Be specific.
  2. Format: What should the answer look like? A list? A paragraph? A table?
  3. Warnings or Rules: Are there any instructions or examples the AI should follow?
  4. Context: Any background information that helps the AI give a better answer.

Example:
🎯 Goal: "Suggest a variety of engaging and meaningful activities for a solo trip to Spain. Include cultural experiences, local cuisine, nature spots, and relaxing moments that are ideal for solo travelers...
📄 Format: ...Organize the ideas by category (e.g., food, culture, nature). Provide a short description for each activity and include practical tips for solo travelers...
⚠️ Warnings / Rules: ...All suggestions must be safe and suitable for solo travel. Avoid group-only activities, extreme sports, or anything overly expensive...
🖼️ Context: ...This is a first-time solo trip to Spain. The traveler is confident and curious, looking to explore independently while staying safe and inspired."

More resources and examples at: Student Guide to AI, Writing with ChatGPT, and Prompts for Edu

Prompting Techniques by PromptingGuide.ai

There are different ways to structure prompts depending on the task:

  • Zero-shot prompting: You give the AI a task with no examples.
    • Example: “Summarize this article in one paragraph…”
  • Few-shot prompting: You include one or more examples in your prompt to guide the AI.
    • Example: “Here’s how to write a good email… Now write one about this topic...”

While you'll be working mainly with zero-shot and few-shot prompting in these exercises, it's worth knowing that there are more advanced techniques out there, for example chain of thought (where the AI explains its reasoning step by step) and prompt chaining (where outputs from one prompt feed into the next). These methods are powerful for more complex tasks, and you're encouraged to explore them as you grow more confident in your prompting skills.

✍ What You’ll Practice

In following exercises, we will practice a technique called reverse prompting. For each task, you’ll be provided with a scenario, some initial information, and an example of an output. Your job will be to write the original prompt that could have generated that output, test it in an AI chat, and compare the results. Use the structure provided above (Goal+Format+Warning+Context) and take into account the additional information given with each example. Try achieving the desired result using only one prompt.

🛠️ Choosing Your AI Tool

For this exercise, you can use any generative AI chat (like Copilot, ChatGPT, Gemini, or Claude). Be sure the chosen tool supports multi modal outputs (table and code).

As SLC students, we recommend you to use Copilot through you school account. It’s integrated with your Microsoft package, supports document export, and won’t use up credits from other platforms. However feel free to choose which ever you feel more confident and comfortable with.

📩 Submission

For each exercise, submit your prompt and generated output in the forms below. Your output doesn’t need to (and hardly will) be identical to the one provided. This exercises aims to practice your ability in understanding and formulating effective prompts for various scenarios.

💡 Tips

  • In real-life scenarios, the task and desired output are often not clearly defined. A key part of this exercise is learning how to filter relevant information and organize your thoughts to build a strong prompt.
  • Avoid copying and pasting the provided information. Instead, imagine you are experiencing the situation in real time. You are responsible for describing the context and goal in your own words.
  • Think critically about what the AI needs to know to produce the desired result. Be specific, but concise.
  • Exercise 1: Writing an Email

    Scenario: You work part-time at a cafeteria. Your weekly schedule is assigned by your supervisor. Although your supervisor is aware of your school commitments, they have scheduled you for a shift that overlaps with one of your classes. This week, you are also scheduled to present in that class. You need to write an email requesting a shift change so you don’t miss your class or your presentation.
    Initial information: Professional setting. Avoid sounding accusatory or demanding.
    Expected output:

    Subject: Request for Shift Change Due to Class Presentation

    Dear [Supervisor's Name],

    I hope you're doing well. I noticed that I’ve been scheduled to work during my class time this week. I wanted to kindly request a shift change, as I have a presentation scheduled during that class and it’s important that I attend.

    I understand scheduling can be challenging, and I appreciate your support in accommodating my academic commitments. Please let me know if there’s another shift I could take instead.

    Thank you for your understanding.

    Best regards,
    [Your Name]

    Submit your prompt and output in the form below:

    AI Literacy Pathway

    How to Prompt Exercise 1

  • Exercise 2: Travel Itinerary

    Scenario: Your grandparents are visiting you in Kingston for 3 days while you are attending college. You want to create a thoughtful travel itinerary for them that balances their interests and your availability.
    Initial information: Your grandmother enjoys nature viewing (e.g., parks, gardens, scenic spots). Your grandfather enjoys trying local food (e.g., restaurants, markets, food tours). Your class schedule is: Monday, Thursday, Friday mornings; and Tuesday, Wednesday afternoons. Your work schedule is: Thursday, Friday, Saturday nights.
    Expected output:

    Day 1 – Thursday

    Time Activity
    Morning Breakfast at Pan Chancho Bakery – A cozy local spot with great pastries.
    Visit to Kingston Waterfront & Breakwater Park – Scenic and relaxing.
    Afternoon Lunch at Dianne’s Fish Shack – Local seafood with a casual vibe.
    Explore Lake Ontario Park – Gentle walking trails and lake views.
    Evening Dinner at Chez Piggy (optional) – A charming local restaurant.
    You’ll be at work, so they can dine early or relax at your place.

    Day 2 – Friday

    Time Activity
    Morning Breakfast at Toast & Jam Café – Friendly and accessible.
    Visit to Kingston Public Market – Local produce, crafts, and people.
    Afternoon Lunch at Tango Nuevo – Tapas-style dishes with local flair.
    Tour of Bellevue House – Historic site with gardens and shaded paths.
    Evening Relaxing evening at your place – Maybe a light dinner or takeout.

    Day 3 – Saturday

    Time Activity
    Morning Brunch together at Juniper Café – Beautiful lake views and fresh food.
    Walk through Lemoine Point Conservation Area – Flat trails, nature-rich.
    Afternoon Visit to Agnes Etherington Art Centre – Art and culture in a calm space.
    Coffee break at CRAVE Coffee House – Relax and chat.
    Evening You’ll be at work, so suggest a cozy dinner at Olivea or Atomica.

    Submit your prompt and output in the form below:

    AI Literacy Pathway

    How to Prompt Exercise 2

  • Exercise 3: Creating a Table

    Scenario: You’re organizing an event that involves handling food orders from different providers. You’ve jotted down your thoughts informally, and now you need to turn that into a clear, structured table to help with planning and communication.
    Initial information: You need the table in an Excel file.

    • Order 12 donuts from Tim Hortons
    • Ask if they have gluten-free options
    • Buy fruits at the Fresh Food Market in the morning
    • Maybe 10 savoury baked goods from Tim Hortons too, ask for 3 gluten-free
    • Get 1 lb of grapes
    • Check if the bakery downtown has mini muffins

    Expected output:

    Submit your prompt and output in the form below:

    AI Literacy Pathway

    How to Prompt Exercise 3

  • Exercise 4: Coding

    Scenario: You’re organizing a game night and want to simulate rolling dice using Python. You’re not a programmer, but you’re curious about how AI can help you write simple code. You want to create a small program that rolls one or two dice and shows the result.
    Initial information: The code needs to be easy for a beginner to understand.
    Expected output:

    Submit your prompt and output in the form below:

    AI Literacy Pathway

    How to Prompt Exercise 4