Session 9 / 15๐Ÿ”Žืขื‘

In one sentence

Students combine language models in scenarios responsibly: a structured prompt, JSON, validation, costs and human-in-the-loop.

Preparation before the session

Time plan

  1. 00:00โ€“00:15 Review: the mini-CRM
  2. 00:15โ€“00:40 What AI does well in automation (and what not)
  3. 00:40โ€“01:05 Providers and modules in Make
  4. 01:05โ€“01:20 โ˜• Break
  5. 01:20โ€“01:50 Prompt engineering for automation
  6. 01:50โ€“02:15 Structured output, costs and errors
  7. 02:15โ€“02:50 Building together: Smart Inbox
  8. 02:50โ€“03:00 Summary and practice

Lecture parts and activity type

PartActivity type
What does AI do well in automation?Discussion
Providers and modules in MakeExplanation
Prompt engineering for automationWorkshop
Structured output โ€” JSON you can mapDemo
Smart Inbox โ€” the architectureSimulation

The 3 messages that must get across

  1. AI extracts, Make calculates.
  2. Structured JSON + validation.
  3. A draft before sending.

Questions for class discussion

  • What information is it OK to send to an AI provider in your organization?
  • Where is an AI mistake most dangerous?
  • What is "good enough" โ€” 90%? 99%?

Live demo script

A first AI: classification

  1. Input โ€” Tools โ†’ Set variable: text.
  2. AI โ€” Make AI Toolkit โ†’ (Categorize / Ask anything) or OpenAI โ†’ Generate a response / Anthropic Claude โ†’ Create a prompt.
  3. Prompt โ€” The classification from the lecture in a short version.
  4. Test โ€” 5 emails, a results table.

Structured JSON extraction

  1. AI โ€” The full prompt with JSON.
  2. Clean-up โ€” Set variable clean = replace ร—2.
  3. Parse โ€” JSON โ†’ Parse JSON โ†’ data structure.
  4. Errors โ€” An error handler on Parse โ†’ Resume.

Smart Inbox

  1. Trigger โ€” Gmail โ†’ Watch emails, Folder INBOX, Criteria: unread.
  2. Clean-up โ€” Text parser โ†’ HTML to text; substring 4000.
  3. AI โ€” The full prompt.
  4. Parse โ€” Parse JSON + Resume.
  5. Router โ€” 4 routes with filters on category.
  6. Actions โ€” Create a draft (reply), Add a label, CRM (session 5/8), Telegram.

Problems students will run into

ProblemQuick fix
It returns a whole sentenceAdd "one word only, no punctuation".
Connection errorAn invalid key or no credit with the provider.
Source is not valid JSONAI added text โ€” strengthen the instruction or use structured output.
budget "60 thousand"Instruct explicitly: a number only.
The draft isn't in the threadThe Thread ID isn't mapped.
It processes the same email againMark it as read or add a label and matching criteria.
It's hard to calculate CreditsLook at a run's summary in History, or Usage in the organization.

Tips from the classroom

  • Show a real hallucination (a made-up field) โ€” it's convincing.
  • Let everyone break the prompt on purpose.
  • Measuring 20 emails is part of the lesson, not a bonus.

Adapting to different levels

For students who struggle: Classification only.

For fast students: Few-shot + PDF invoices.

Answer key โ€” multiple-choice questions

Students see the answers in shuffled order, so the key gives the wording of the right answer.

#Right answer
1Precise calculations
2By tokens / actual usage
3"Don't make it up โ€” null" + context
4Saving tokens and Credits
5The model is bound to a defined JSON structure
6Classification at high volumes
7Resume with category = other
8A person approves before an irreversible action

Homework

  1. The smart inbox works on a test label.
  2. Accuracy measurement on 20 emails.
  3. Preparing for session 10: think about a "service agent" for your business โ€” what does she need to know and which actions should she take.