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
- 00:00โ00:15 Review: the mini-CRM
- 00:15โ00:40 What AI does well in automation (and what not)
- 00:40โ01:05 Providers and modules in Make
- 01:05โ01:20 โ Break
- 01:20โ01:50 Prompt engineering for automation
- 01:50โ02:15 Structured output, costs and errors
- 02:15โ02:50 Building together: Smart Inbox
- 02:50โ03:00 Summary and practice
Lecture parts and activity type
| Part | Activity type |
|---|---|
| What does AI do well in automation? | Discussion |
| Providers and modules in Make | Explanation |
| Prompt engineering for automation | Workshop |
| Structured output โ JSON you can map | Demo |
| Smart Inbox โ the architecture | Simulation |
The 3 messages that must get across
- AI extracts, Make calculates.
- Structured JSON + validation.
- 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
- Input โ Tools โ Set variable: text.
- AI โ Make AI Toolkit โ (Categorize / Ask anything) or OpenAI โ Generate a response / Anthropic Claude โ Create a prompt.
- Prompt โ The classification from the lecture in a short version.
- Test โ 5 emails, a results table.
Structured JSON extraction
- AI โ The full prompt with JSON.
- Clean-up โ Set variable clean = replace ร2.
- Parse โ JSON โ Parse JSON โ data structure.
- Errors โ An error handler on Parse โ Resume.
Smart Inbox
- Trigger โ Gmail โ Watch emails, Folder INBOX, Criteria: unread.
- Clean-up โ Text parser โ HTML to text; substring 4000.
- AI โ The full prompt.
- Parse โ Parse JSON + Resume.
- Router โ 4 routes with filters on category.
- Actions โ Create a draft (reply), Add a label, CRM (session 5/8), Telegram.
Problems students will run into
| Problem | Quick fix |
|---|---|
| It returns a whole sentence | Add "one word only, no punctuation". |
| Connection error | An invalid key or no credit with the provider. |
| Source is not valid JSON | AI added text โ strengthen the instruction or use structured output. |
| budget "60 thousand" | Instruct explicitly: a number only. |
| The draft isn't in the thread | The Thread ID isn't mapped. |
| It processes the same email again | Mark it as read or add a label and matching criteria. |
| It's hard to calculate Credits | Look 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 |
|---|---|
| 1 | Precise calculations |
| 2 | By tokens / actual usage |
| 3 | "Don't make it up โ null" + context |
| 4 | Saving tokens and Credits |
| 5 | The model is bound to a defined JSON structure |
| 6 | Classification at high volumes |
| 7 | Resume with category = other |
| 8 | A person approves before an irreversible action |
Homework
- The smart inbox works on a test label.
- Accuracy measurement on 20 emails.
- Preparing for session 10: think about a "service agent" for your business โ what does she need to know and which actions should she take.