๐ฌWhat we learn today โ a short video
โก By the end of the session you will know
- AI excels at classification, extraction, writing and summarizing โ not at calculations and facts.
- Make AI Toolkit / OpenAI / Claude / Gemini; Credits by usage.
- A prompt for automation: structured, a closed list, "don't make it up", JSON.
- Structured output + Parse JSON + validation + a draft, not a send.
- We built a smart inbox.
A silent video of about half a minute: the session topic, the learning goals (also listed in the next section) and the scenario we build today.
๐The story of Etz va'Or (Wood & Light) โ Chapter 9: The inbox that reads itself
80 emails a day: quote requests, suppliers, complaints, spam. Now AI comes in: every email is classified, the lead's details are extracted into structured fields, and a reply draft is written in Maya's style โ which she only approves.
๐งต One story across the whole course: every session solves a real problem for the business. At the end โ a complete system.
๐ฏSession goals
- Understand what a language model can and can't do in automation.
- Know the AI providers in Make and the Make AI Toolkit.
- Write a structured prompt: role, task, context, format, examples.
- Get structured JSON output and map it (structured output / Parse JSON).
- Calculate costs: tokens, Credits and choosing a model.
- Handle errors and unexpected AI responses.
- Build a smart inbox that classifies, extracts and drafts.
๐๏ธSession agenda (3 hours)
- 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
1What does AI do well in automation?
๐ท๏ธ
Classification
An email โ lead / support / invoice / spam. A review โ positive / negative.
๐
Extraction
A name, a phone, a budget from free text. Data from an invoice.
โ๏ธ
Writing
A draft reply, a call summary, a social post.
๐
Translation and normalization
Hebrew โ English, spelling fixes, a consistent format.
๐
Summarizing
A long email thread โ 3 lines.
๐งญ
Decisions under uncertainty
Is it urgent? Who should get it?
โ Where AI fails- Precise calculations (use functions)
- Facts you didn't give it (it makes them up)
- Irreversible decisions without control
- A consistent format โ without instructions and checks
โ
How to cope- AI extracts, Make calculates
- Give it context (RAG โ session 11)
- Human-in-the-loop: a draft and not a send
- Structured JSON output + validation
2Providers and modules in Make
| Option | What it is | When |
|---|
| Make AI Toolkit / Make AI Provider | Ready Make modules (classify, extract, summarize, translate, Ask anything). No key needed | A quick start, every plan |
| OpenAI (ChatGPT) | Generate a response / completion, Transcribe, Images, Embeddings | When you want a specific model or advanced capabilities |
| Anthropic Claude | Create a prompt / message | Long text, multilingual, complex instructions |
| Google Gemini AI | Generate content | Documents and images, the Google ecosystem |
| HTTP to any API | Any other provider | Local models / small providers |
๐ฐ AI uses Credits by usageUnlike a regular module (one Credit), Make's AI modules use Credits by actual tokens. With your own key โ you pay the provider directly by tokens, and Make a Credit for the action. The input (prompt + email) is usually the big part: shorten emails (HTML to text, cutting signatures).
| Choosing a model | When |
|---|
| A small, fast model (Haiku / mini / Flash) | Classification, simple extraction, high volumes |
| A mid-size model (Sonnet / a mainstream GPT) | Writing, complex extraction, high-quality multilingual text |
| A large / reasoning model | Complex decisions, analyzing long documents |
3Prompt engineering for automation
A prompt in automation is different from a chat: nobody will read the answer and correct it โ it goes straight to the next module. So it needs to be precise, predictable and structured.
[System / Instructions]
You classify incoming emails for an automation company.
The task: classify one email and extract details.
Categories (choose exactly one):
- lead โ an inquiry from a potential customer
- support โ an existing customer with a problem
- invoice โ an invoice or a payment
- spam โ advertising, phishing, irrelevant
- other โ everything else
Rules:
- Don't make up details. A field that doesn't appear โ null.
- Phone in +972 format.
- budget as a number in ILS (60 thousand โ 60000).
- reply: a short draft reply, in the first person, in a warm and professional tone. Only if category = lead or support.
Return JSON only, with no extra text, in the structure:
{"category":"", "urgency":"low|medium|high", "sentiment":"", "lead":{"name":null,"company":null,"phone":null,"budget":null,"seats":null,"timeline":null}, "summary":"", "reply":""}
[User]
From: {{1.from}}
Subject: {{1.subject}}
Content:
{{substring(1.text; 0; 4000)}}
| Part | Why |
|---|
| Role + task | Focuses the model |
| A closed list of categories | So the Router works โ no "Lead" and "lead " and "leads" |
| "Don't make it up" rules | Reduces hallucinations |
| An exact format | Makes Parse JSON possible |
| Shortening the input | Saves tokens and Credits |
| Examples (few-shot) | Improves consistency in hard cases |
4Structured output โ JSON you can map
Three ways, from best to less good:
- Structured output / JSON schema in the module (when the provider and the module support it) โ the model is bound to the structure.
- Response format: JSON + Parse JSON with a data structure.
- An instruction in the text + Parse JSON โ and be ready for an error.
โ ๏ธ AI sometimes wraps in ```jsonEven when you say "JSON only", some models add ```json. Before Parse JSON: {{{{replace(replace(result; "```json"; emptystring); "```"; emptystring)}}}} โ or use structured output.
Validation after AI
- Filter: category is in the allowed list.
- An error handler on Parse JSON โ Resume with category = "other".
- Check the phone with a regex even if AI returned it.
- Human-in-the-loop: a draft in Gmail, not a send.
5Smart Inbox โ the architecture
๐ก Start with classification onlyFirst week: classification and labels only. Check 50 emails by hand โ how many were right? Only after that add extraction and drafts. That's how you build trust in the system.
๐งชLab: simulations and examples
Three ways to see today's material in action: the scenario canvas runs the session's scenario like Make does (with a Credits count), the race compares manual work with automation, and the function playground shows real mapping examples.
๐ก Why in this order?Clean and shorten before the AI (fewer tokens), and route only once there's a structured category.
๐ขA real-world case study
"Levinson Law Office". The info@ inbox got about 80 emails a day: existing clients, new inquiries, court notices and spam. A secretary sorted them manually for about two hours every morning. A smart inbox with Claude: classification into 6 categories, extracting the case number from court notices (regex + AI), drafts for new inquiries. Accuracy after two weeks of calibration: about 95%. Result: the secretary approves drafts in 20 minutes instead of two hours, and no court notice was forgotten.
โFrequently asked questions
Is the clients' data sent to OpenAI?
Yes, to the provider you chose. Check the provider's data policy (use in training, storage region), and consider masking sensitive details before sending.
Why not send the reply automatically?
AI is sometimes wrong. A draft + human approval = speed + safety. When the accuracy is proven in a certain category โ you can automate only that one.
How much does it cost?
An email of about 500 words + the prompt โ 1,500 tokens. On a small model โ fractions of a cent; on a big model โ a few cents. 80 emails a day = a few dollars a month.
Make AI Toolkit or OpenAI?
The Toolkit is quick to start and works on every plan. Your own provider gives control over the model and sometimes a lower cost at volume.
โ๏ธQuick understanding check
โก๏ธWhat now?
You finished the lecture! Go to the practice page โ multiple-choice questions and tasks that build Smart Inbox: Gmail โ AI classification โ extracting lead details โ a draft reply โ labeling. Stuck? The help guide breaks every task into steps. Only after you have tried, peek at the full solution.