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

How to work with the challenges

The challenges here are harder than the practice tasks, and are meant for those who finished and want to go deeper. Try on your own for at least 20 minutes before opening the hints, and the solution only after that. There is no single right solution: if your scenario meets the requirements, it is right.

Broken scenario โ€” find the bug

This is what real work looks like: something broke, and all you have is the History. Read the error, and pick the right fix.

Advanced: Translating and normalizing English inquiries

๐Ÿ”ฅ Advancedโฑ๏ธ ~40 min

๐ŸŽฌ The scenario

Some inquiries are in English. Translate them into Hebrew for the summary, but reply in the sender's language.

๐ŸŽฏ The requirements

  1. Detect the language.
  2. summary always in Hebrew.
  3. reply in the original language.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "language": "en",
  "summary": "ื‘ืงืฉื” ืœื”ืฆืขืช ืžื—ื™ืจ ืœืืชืจ",
  "reply": "Hi Dana, thanks for reaching outโ€ฆ"
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • Add a language field to the JSON.

Extend the prompt: "language": "he|en|other", "summary always in Hebrew", "reply in the same language as the email". Another Router isn't needed โ€” only an extra field.

๐ŸŽฌ The guided solution โ€” a click simulation

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    Open the AI module
    In the Smart Inbox scenario โ€” open the classification module.
    Marked screenshot โ€” step 1: Open the AI module
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Open the AI module
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: S09 - Smart Inbox.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Gmail and click the Gmail app.
    5. In the list of actions choose Watch emails.
    6. In the Folder field type: INBOX
    7. Click OK (or Save) to close the module window.
    8. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    9. In the search box type OpenAI and click the OpenAI app.
    10. In the list of actions choose Create a completion.
    11. In the Model field type: gpt-4o-mini
    12. In the Response format field type: JSON
    13. Click OK (or Save) to close the module window.
  2. 2
    Extend the prompt
    language, summary always in Hebrew, reply in the same language.
    Marked screenshot โ€” step 2: Extend the prompt
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click module number 2 to open its settings.
    2. In the Prompt field type: โ€ฆReturn JSON: {category, language: he|en|other, summary (always in Hebrew), reply (in the same language as the email)}
    3. Click OK.
  3. 3
    Run with an English email
    Check: summary in Hebrew, reply in English.
    Marked screenshot โ€” step 3: Run with an English email
    ๐Ÿ“ธ Step 3 โ€” the red ring marks where to click
    1. Click โ–ถ Run once at the bottom left.
    2. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    3. The output should look roughly like this:
      {
       "language": "en",
       "summary": "ื‘ืงืฉื” ืœื”ืฆืขืช ืžื—ื™ืจ ืœืืชืจ",
       "reply": "Hi Dana, thanks for reaching outโ€ฆ"
      }

Experts: Extracting from an attached invoice

๐Ÿ”ฅ๐Ÿ”ฅ Expertsโฑ๏ธ ~50 min

๐ŸŽฌ The scenario

Invoice emails arrive with a PDF. Extract the vendor, the amount, the date and the VAT.

๐ŸŽฏ The requirements

  1. An Iterator over the files.
  2. A model that supports files / an extraction module.
  3. Saving in a bookkeeping sheet.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "vendor": "Acme",
  "number": "INV-881",
  "total": 4720
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • The Make AI Toolkit / Claude / Gemini support PDF files in some modules.
  • Check: net amount ร— 1.18 โ‰ˆ total (18% VAT).

Router invoice โ†’ Iterator (attachments) โ†’ Filter PDF โ†’ AI with a file input and JSON {vendor, number, date, net, vat, total} โ†’ a validation filter: abs(net*1.18 - total) < 1 โ†’ Sheets. Invoices that fail validation โ†’ a queue for manual review.

๐ŸŽฌ The guided solution โ€” a click simulation

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    An invoice route
    In the Smart Inbox Router: a category = invoice route.
    Marked screenshot โ€” step 1: An invoice route
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: An invoice route
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C09 - Invoices.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Gmail and click the Gmail app.
    5. In the list of actions choose Watch emails.
    6. In the Criteria field type: has:attachment
    7. Click OK (or Save) to close the module window.
    8. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    9. In the search box type Flow Control and click the Flow Control app.
    10. In the list of actions choose Iterator.
    11. In the Array field map (drag from the panel or type): {{1.attachments}}
    12. Click OK (or Save) to close the module window.
  2. 2
    PDF only + AI with a file
    Filter PDF โ†’ a model that supports files, with structured JSON.
    Marked screenshot โ€” step 2: PDF only + AI with a file
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: PDF only + AI with a file
    ๐Ÿ“ธ Step 2.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type OpenAI and click the OpenAI app.
    3. In the list of actions choose Create a completion.
    4. In the File field map (drag from the panel or type): {{2.data}}
    5. In the Response format field type: JSON schema: vendor, number, date, net, vat, total
    6. Click OK (or Save) to close the module window.
    7. Click the ๐Ÿ”ง icon on the line between the last two modules โ†’ Set up a filter.
    8. In the Label field type: PDF.
    9. In Condition set: 2.contentType = application/pdf (pick the field from the panel, the operator from the list, and type a value).
    10. Click OK โ€” a funnel icon appears on the line.
  3. 3
    Validate the totals
    abs(net ร— 1.18 โˆ’ total) < 1 โ€” otherwise to a manual review queue.
    Marked screenshot โ€” step 3: Validate the totals
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Validate the totals
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Flow Control and click the Flow Control app.
    3. In the list of actions choose Router.
    4. Keep the defaults.
    5. Click OK (or Save) to close the module window.
    6. Click the small + coming out of the Router (to its right) to open a new route.
    7. In the search box type Google Sheets and click the Google Sheets app.
    8. In the list of actions choose Add a Row.
    9. In the Sheet field type: Bookkeeping
    10. In the vendor field map (drag from the panel or type): {{3.result.vendor}}
    11. In the total field map (drag from the panel or type): {{3.result.total}}
    12. Click OK (or Save) to close the module window.
    13. Click the ๐Ÿ”ง icon on the line between the last two modules โ†’ Set up a filter.
    14. In the Label field type: Totals OK.
    15. In Condition set: abs(3.result.net * 1.18 - 3.result.total) < 1 (pick the field from the panel, the operator from the list, and type a value).
    16. Click OK โ€” a funnel icon appears on the line.
    17. Click the small + coming out of the Router (to its right) to open a new route.
    18. In the search box type Google Sheets and click the Google Sheets app.
    19. In the list of actions choose Add a Row.
    20. In the Sheet field type: To review
    21. Click OK (or Save) to close the module window.
    22. Click the ๐Ÿ”ง on the line of the last route โ†’ Set up a filter.
    23. Type Fallback as the Label, and tick Fallback route: Yes.
    24. Click OK โ€” this route runs only when no other route matched.
  4. 4
    Run
    Check a row in the bookkeeping sheet.
    Marked screenshot โ€” step 4: Run
    ๐Ÿ“ธ Step 4 โ€” the red ring marks where to click
    1. Click โ–ถ Run once at the bottom left.
    2. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    3. The output should look roughly like this:
      {
       "vendor": "Acme",
       "number": "INV-881",
       "total": 4720
      }

Boss challenge: Routing by urgency and hours

๐Ÿ‘‘ Boss challengeโฑ๏ธ ~60 min

๐ŸŽฌ The scenario

Urgent support requests at night โ†’ an SMS to the on-call person; otherwise โ†’ a morning queue.

๐ŸŽฏ The requirements

  1. urgency from the AI.
  2. Business hours (session 3).
  3. Two channels.

๐ŸŽฏ The desired result โ€” how the scenario should look and work

Click Run once and then each module: you will see its settings, and on the last module โ€” the output you should get.

๐Ÿ“ค Example of the final output
{
  "route": "SMS",
  "count": 1
}

๐ŸŽฌ Stuck? To the guided solution with a click simulation โ†’

๐Ÿ’ก Hints (try without them first)
  • Combine a filter on urgency = high with the hour.

Router support: (urgency=high AND outside hours) โ†’ SMS (Twilio/019) to the on-call person; fallback โ†’ Sheets "morning queue" + an 08:00 scenario. Add a mechanism so the AI can't escalate more than X times a night (a data store counter) โ€” protection against flooding.

๐ŸŽฌ The guided solution โ€” a click simulation

๐Ÿ“ธ The illustrated guide โ€” step by step, click by click

For every step: a screenshot of the (simulated) Make editor with the click spot marked, and below it exactly what to click and what to type. You can work from here next to an open Make window.

  1. 1
    Business hours
    hour by Asia/Jerusalem (as in session 3).
    Marked screenshot โ€” step 1: Business hours
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Business hours
    ๐Ÿ“ธ Step 1.2 โ€” the red ring marks where to click
    1. In the left menu click Scenarios โ†’ + Create a new scenario.
    2. Click the scenario name at the top left (New scenario) and type: C09 - Night on-call.
    3. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    4. In the search box type Gmail and click the Gmail app.
    5. In the list of actions choose Watch emails.
    6. Keep the defaults.
    7. Click OK (or Save) to close the module window.
    8. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    9. In the search box type OpenAI and click the OpenAI app.
    10. In the list of actions choose Create a completion.
    11. In the Response format field type: JSON: category, urgency
    12. Click OK (or Save) to close the module window.
    13. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    14. In the search box type Tools and click the Tools app.
    15. In the list of actions choose Set variable.
    16. In the Variable name field type: hour
    17. In the Variable value field map (drag from the panel or type): {{parseNumber(formatDate(now; "H"; "Asia/Jerusalem"))}}
    18. Click OK (or Save) to close the module window.
  2. 2
    A nightly escalation counter
    Data store: how many SMS were sent tonight โ€” protection from flooding.
    Marked screenshot โ€” step 2: A nightly escalation counter
    ๐Ÿ“ธ Step 2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Data store and click the Data store app.
    3. In the list of actions choose Get a record.
    4. In the Data store field type: night_alerts
    5. In the Key field map (drag from the panel or type): {{formatDate(now; "YYYY-MM-DD")}}
    6. Click OK (or Save) to close the module window.
  3. 3
    Router: urgent at night โ†’ SMS
    urgency = high AND outside hours AND count < 3.
    Marked screenshot โ€” step 3: Router: urgent at night โ†’ SMS
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Router: urgent at night โ†’ SMS
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    2. In the search box type Flow Control and click the Flow Control app.
    3. In the list of actions choose Router.
    4. Keep the defaults.
    5. Click OK (or Save) to close the module window.
    6. Click the small + coming out of the Router (to its right) to open a new route.
    7. In the search box type HTTP and click the HTTP app.
    8. In the list of actions choose Make a request.
    9. In the URL field type: https://api.twilio.com/โ€ฆ/Messages.json
    10. In the Body field map (drag from the panel or type): ๐Ÿšจ Urgent request: {{1.subject}}
    11. Click OK (or Save) to close the module window.
    12. Click the ๐Ÿ”ง icon on the line between the last two modules โ†’ Set up a filter.
    13. In the Label field type: Urgent at night.
    14. In Condition set: 2.result.urgency = high AND (3.hour < 8 OR 3.hour โ‰ฅ 20) AND 4.count < 3 (pick the field from the panel, the operator from the list, and type a value).
    15. Click OK โ€” a funnel icon appears on the line.
  4. 4
    Fallback: morning queue
    Sheets "morning queue".
    Marked screenshot โ€” step 4: Fallback: morning queue
    ๐Ÿ“ธ Step 4.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 4: Fallback: morning queue
    ๐Ÿ“ธ Step 4.2 โ€” the red ring marks where to click
    1. Click the small + coming out of the Router (to its right) to open a new route.
    2. In the search box type Google Sheets and click the Google Sheets app.
    3. In the list of actions choose Add a Row.
    4. In the Sheet field type: Morning queue
    5. In the subject field map (drag from the panel or type): {{1.subject}}
    6. Click OK (or Save) to close the module window.
    7. Click the ๐Ÿ”ง on the line of the last route โ†’ Set up a filter.
    8. Type Fallback as the Label, and tick Fallback route: Yes.
    9. Click OK โ€” this route runs only when no other route matched.
    10. Click โ–ถ Run once at the bottom left.
    11. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    12. The output should look roughly like this:
      {
       "route": "SMS",
       "count": 1
      }