Session 9 of 15
Introduction to AI in Automation β Language Models, Prompts and Structured Output
How to combine language models in Make scenarios: AI providers (Make AI Provider, OpenAI, Claude, Gemini), writing prompts that work, structured JSON output you can map, costs and Credits β and a smart inbox.
β±οΈ 3 hoursπ οΈ Smart Inbox: Gmail β AI classification β extracting lead details β a draft reply β labeling
π― 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.
π§ͺ Today's scenario β a live run
ποΈ The agenda
- 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
What does AI do well in automation?
- Classification, extraction, writing, translation, summarizing
- AI doesn't calculate and doesn't know facts it wasn't given
- A draft and not a send
- Structured JSON + validation
Providers and modules in Make
- Make AI Toolkit β no key
- OpenAI / Claude / Gemini / HTTP
- AI uses Credits by tokens
- A small model for classification, a big one for reasoning
Prompt engineering for automation
- A structured prompt: role, task, rules, format
- A closed list of values
- Don't make it up β null
- Shorter input = savings
Structured output β JSON you can map
- Structured output / JSON schema
- Parse JSON + a data structure
- Cleaning ```json
- Validation + human-in-the-loop
Smart Inbox β the architecture
- Watch emails β clean-up β AI β Parse JSON β Router
- Lead β a draft + CRM
- Spam β a label
- Start with classification and measure
βοΈ Understanding check
π To sum up
- 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.
ποΈ Time to practice!
The session project: Smart Inbox: Gmail β AI classification β extracting lead details β a draft reply β labeling