SOFTWARE TRAINING for STUDENTS @ UNIVERSITY of WISCONSIN-MADISON

Hands-On Activity:
AI: First Steps into AI Hands-On Activities

Before You Start

In these activities you will train your own image recognition model, see how much a better prompt changes what an AI gives you, and build a small working web app just by describing it. Work through them in order. Each one has a time estimate, step-by-step instructions, and a few questions to think about at the end.

What You Will Need

  • A web browser (Chrome, Edge, Firefox, or Safari)
  • Your UW-Madison NetID and password
  • A webcam for Activity 1 (if you do not have one, pair up with someone who does)

Sign In to Microsoft 365 Copilot

Activities 2 and 3 use Microsoft 365 Copilot, which UW-Madison provides to students and staff.

  1. Go to m365.cloud.microsoft.
  2. Sign in with your UW email address and NetID password.
  3. Look for the green shield near the top of the chat. It means you are signed in with your UW account and your chats are protected.

Warning: Never enter sensitive or restricted data into any AI tool, even when the green shield is showing. This includes student records, health information, Social Security numbers, passwords, and unpublished research data.

Activity 1: Teach a Computer to See

Time: about 10 minutes

In this activity you will use Google Teachable Machine to train an image classifier that tells a thumbs up from a thumbs down. You give it examples, it finds the patterns, and then it makes predictions on images it has never seen. This is the same basic process behind much larger AI systems.

Steps

  1. Go to teachablemachine.withgoogle.com and click Get Started.
  2. Choose Image Project, then Standard image model.
  3. Rename Class 1 to Thumbs up and Class 2 to Thumbs down by clicking the pencil icon next to each name.
  4. Under Thumbs up, click Webcam. Allow camera access if your browser asks.
  5. Hold a thumbs up in front of the camera, then press and hold Hold to Record until you have about 50 images. Move your hand around a little so the pictures are not all identical.
  6. Repeat for Thumbs down.
  7. Click Train Model. Keep the tab open while it trains. This takes less than a minute.
  8. Test your model in the Preview panel on the right. Show a thumbs up and a thumbs down and watch the confidence bars change.
  9. Now try to break it. Change the lighting, stand in front of a different background, or use your other hand. Notice when the model gets confused.

Good to Know: No webcam? Pair up with a neighbor who has one and train the model together. You can each take a turn recording your own hand so the model sees more than one person.

Think About It

  • When did your model get confused, and why do you think that happened?
  • What extra training data could you add to make it more reliable?
  • If a face recognition system was trained mostly on photos of one group of people, what could go wrong when it is used on everyone?

Activity 2: Prompt Makeover

Time: about 10 minutes

The same AI tool can give you a generic answer or a genuinely useful one depending on how you ask. In this activity you will ask Copilot for a study plan twice, once with a lazy prompt and once with a detailed one, and compare the results.

Steps

  1. Open Microsoft 365 Copilot and check that the green shield is showing.
  2. Type this lazy prompt and send it:
Make me a study plan.
  1. Read the answer. Notice how general it is.
  2. Start a New chat so Copilot does not carry over the first conversation.
  3. Copy the prompt below, fill in the parts in brackets with your own details, and send it:
I'm a [year] student at UW-Madison taking [your classes]. I have [exams or deadlines coming up] and I usually have [hours] free on weekdays and [hours] on weekends. Make me a weekly study plan as a table with days as columns and time blocks as rows. Put my hardest class at times when I focus best. Ask me any questions you need before you start.
  1. Answer any questions Copilot asks you.
  2. Once you have a plan, ask for a change. For example: Move my hardest class to mornings or Add a 10-minute break every hour.
  3. Compare the two answers side by side. Which one would you actually use?

The Five Parts of a Good Prompt

PartWhat it meansExample from this activity
ContextWho you are and what situation you are inI’m a sophomore at UW-Madison taking…
TaskWhat you want the AI to doMake me a weekly study plan
ConstraintsLimits or rules it should followI have 3 hours free on weekdays
FormatHow the answer should lookAs a table with days as columns
ExamplesA sample of what you want, if you have oneA plan you liked from a friend or advisor

Good to Know: Ending a prompt with Ask me any questions you need before you start is one of the easiest ways to get better results. The AI fills in its own gaps by asking you instead of guessing.

Think About It

  • Which of the five parts made the biggest difference in your result?
  • Did Copilot ask you anything you had not thought about?
  • Where else in your classes or job could you use this kind of detailed prompt?

Activity 3: Vibe Code a Mini App

Time: about 15 minutes

Vibe coding means building software by describing what you want in plain English and letting the AI write the code. In this activity you will build a working Pomodoro study timer without writing any code yourself, then improve it with a follow-up request.

Steps

  1. In Copilot, start a new chat and send this prompt:
Write a single HTML file for a Pomodoro study timer with start, pause, and reset buttons. Use a clean design with Badger red. Put all the CSS and JavaScript inside the one file.
  1. When the code appears, click the Copy button on the code block.
  2. Save it as a file named timer.html:
  • Windows: Open Notepad, paste the code, choose File > Save As, set Save as type to All files, and name it timer.html.
  • Mac: Open TextEdit, choose Format > Make Plain Text, paste the code, save it as timer.html, and click Use .html when asked.
  1. Double-click timer.html. It opens in your browser as a working timer. Try the buttons.
  2. Go back to Copilot and ask for one improvement, such as a sound when the timer ends, a dark mode toggle, a small task list, or buttons for 25, 45, and 60 minutes.
  3. Copy the new code, replace everything in timer.html with it, save, and refresh the browser tab.
  4. Bonus: Ask Copilot to explain the JavaScript part of the file line by line.

Troubleshooting

ProblemWhat to try
The browser shows the code instead of the appThe file was saved as plain text. Make sure the name ends in .html, not .html.txt, and on a Mac that you used Make Plain Text.
The buttons do nothingAsk Copilot: The buttons don’t work, can you fix it? and paste the new code in.
Only part of the code was copiedAsk Copilot to send the complete file again in one code block.
Running out of timeFollow along on the instructor’s screen and try building it again on your own after the workshop.

Important: AI-written code can look right and still have bugs. For anything beyond a personal practice project, test it carefully and make sure you understand what it does before you rely on it.

Think About It

  • What did the AI get right on the first try, and what did you have to ask it to fix?
  • What kind of small tool would be useful for your own classes or work?

Bonus Challenges

Finished early or want to keep practicing at home? Try any of these.

  • Spot the hallucination: Ask Copilot for three research papers on a topic you know, with authors and years. Then search for each one. Do they all exist?
  • Turn on web search: Ask the same question with web search on and off. How do the answers and sources change?
  • Study buddy: Upload a PDF of your own lecture notes (nothing sensitive) and ask Copilot to quiz you on it.
  • Listen instead of look: In Teachable Machine, make an Audio Project that tells a clap from a snap.
  • Flashcard app: Vibe code a flashcard app for one of your classes.
  • Explain it two ways: Ask Copilot to explain next-token prediction to a 10-year-old, then to a computer science major. Compare the two.