Session 12 / 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: A photo → the agent

🔥 Advanced⏱️ ~40 min

🎬 The scenario

A customer sends a photo of a damaged product — the bot recognizes it and opens a return ticket.

🎯 The requirements

  1. Download the photo.
  2. A model with vision.
  3. A create_return tool.

🎯 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
{
  "response": "I opened return ticket R-221 — a courier will come within 3 business days."
}

🎬 Stuck? To the guided solution with a click simulation →

💡 Hints (try without them first)
  • photo is an array of sizes — last() is the biggest.

Filter photo Exists → Download a File (last(photo).file_id) → Run an agent with an input file (a model that supports files) → the agent runs create_return_ticket with a description.

🎬 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
    Only messages with a photo
    Filter: photo Exists.
    Marked screenshot — step 1: Only messages with a photo
    📸 Step 1.1 — the red ring marks where to click
    Marked screenshot — step 1: Only messages with a photo
    📸 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: C12 - Product photo.
    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 Telegram Bot and click the Telegram Bot app.
    5. In the list of actions choose Watch Updates.
    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 Telegram Bot and click the Telegram Bot app.
    10. In the list of actions choose Download a File.
    11. In the File ID field map (drag from the panel or type): {{last(1.message.photo).file_id}}
    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: Has a photo.
    15. In Condition set: 1.message.photo Exists (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.
  2. 2
    An agent with a file
    Run an agent with an input file — a model that supports images.
    Marked screenshot — step 2: An agent with a file
    📸 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 Make AI Agent and click the Make AI Agent app.
    3. In the list of actions choose Run an agent.
    4. In the Agent field type: Noa
    5. In the Input field type: The customer sent a photo of a damaged product
    6. In the Files field map (drag from the panel or type): {{2.data}}
    7. Click OK (or Save) to close the module window.
  3. 3
    A create_return_ticket tool
    The agent opens a return ticket with a description of the damage.
    Marked screenshot — step 3: A create_return_ticket tool
    📸 Step 3.1 — the red ring marks where to click
    Marked screenshot — step 3: A create_return_ticket tool
    📸 Step 3.2 — the red ring marks where to click
    1. Open eu2.make.com/agents in your browser (the “Noa · Tools” screen).
    2. On the screen you will see: + Add tool · Scenario: create_return_ticket · Inputs: order_id, description
    3. Click the Save button.
    4. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    5. In the search box type Telegram Bot and click the Telegram Bot app.
    6. In the list of actions choose Send a Text Message or a Reply.
    7. In the Text field map (drag from the panel or type): {{3.response}}
    8. Click OK (or Save) to close the module window.
    9. Click ▶ Run once at the bottom left.
    10. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    11. The output should look roughly like this:
      {
       "response": "I opened return ticket R-221 — a courier will come within 3 business days."
      }

Experts: A WhatsApp template

🔥🔥 Experts⏱️ ~50 min

🎬 The scenario

Send an "order shipped" template when the status changes.

🎯 The requirements

  1. An approved template with variables.
  2. A trigger from a status change.
  3. Opt-in.

🎯 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
{
  "messages": [
    {
      "id": "wamid.HBg…"
    }
  ]
}

🎬 Stuck? To the guided solution with a click simulation →

💡 Hints (try without them first)
  • WhatsApp Business Cloud → Send a Template Message.

Meta Business Manager → Message templates → "order_shipped" with {{1}} name, {{2}} number. Make: Watch (DB) status = shipped → Filter opt_in → Send a Template Message with the parameters.

🎬 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 approved template in Meta
    Message templates → order_shipped with {{1}} name and {{2}} order number.
    Marked screenshot — step 1: An approved template in Meta
    📸 Step 1 — the red ring marks where to click
    1. Open business.facebook.com/wa/manage/message-templates in your browser (the “Message templates” screen).
    2. On the screen you will see: order_shipped · Utility · Hi {{1}}, order {{2}} has shipped 🚚
    3. Click the Submit button.
  2. 2
    A trigger from a status change
    Watch rows in the DB with status = shipped.
    Marked screenshot — step 2: A trigger from a status change
    📸 Step 2.1 — the red ring marks where to click
    Marked screenshot — step 2: A trigger from a status change
    📸 Step 2.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: C12 - WhatsApp.
    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 PostgreSQL and click the PostgreSQL app.
    5. In the list of actions choose Watch rows.
    6. In the Table field type: orders
    7. In the Filter field type: status = 'shipped'
    8. Click OK (or Save) to close the module window.
  3. 3
    Only those who opted in
    Filter: opt_in = true.
    Marked screenshot — step 3: Only those who opted in
    📸 Step 3.1 — the red ring marks where to click
    Marked screenshot — step 3: Only those who opted in
    📸 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 HTTP and click the HTTP app.
    3. In the list of actions choose Make a request.
    4. In the URL field type: https://graph.facebook.com/v20.0/PHONE_ID/messages
    5. In the Method field choose: POST
    6. In the Body field map (drag from the panel or type): {"type":"template","template":{"name":"order_shipped","components":[…{{1.name}}…{{1.order_no}}…]}}
    7. Click OK (or Save) to close the module window.
    8. Click the 🔧 icon on the line between the last two modules → Set up a filter.
    9. In the Label field type: Opt-in.
    10. In Condition set: 1.opt_in = true (pick the field from the panel, the operator from the list, and type a value).
    11. Click OK — a funnel icon appears on the line.
    12. Click ▶ Run once at the bottom left.
    13. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    14. The output should look roughly like this:
      {
       "messages": [
        {
         "id": "wamid.HBg…"
        }
       ]
      }

Boss challenge: Rate limiting for the bot

👑 Boss challenge⏱️ ~60 min

🎬 The scenario

A user sends 50 messages a minute (or a malicious bot). Limit it.

🎯 The requirements

  1. A counter per user per time window.
  2. A temporary block.
  3. A "slow down 🙂" message.

🎯 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
{
  "count": 11,
  "route": "slow down"
}

🎬 Stuck? To the guided solution with a click simulation →

💡 Hints (try without them first)
  • Data store: userId → count, windowStart.

At the start of the entry scenario: Data store Get → if(now - windowStart > 60s; reset) → count+1 → Filter count ≤ 10 → continue; otherwise → a message once. It protects the Credits and the agent.

🎬 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
    Read the user's counter
    Data store rate by chat_id: windowStart, count.
    Marked screenshot — step 1: Read the user's counter
    📸 Step 1.1 — the red ring marks where to click
    Marked screenshot — step 1: Read the user's counter
    📸 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: C12 - Rate limit.
    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 Telegram Bot and click the Telegram Bot app.
    5. In the list of actions choose Watch Updates.
    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 Data store and click the Data store app.
    10. In the list of actions choose Get a record.
    11. In the Data store field type: rate
    12. In the Key field map (drag from the panel or type): {{1.message.chat.id}}
    13. Click OK (or Save) to close the module window.
  2. 2
    A 60-second window
    If a minute passed — reset; otherwise count + 1.
    Marked screenshot — step 2: A 60-second window
    📸 Step 2.1 — the red ring marks where to click
    Marked screenshot — step 2: A 60-second window
    📸 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 Tools and click the Tools app.
    3. In the list of actions choose Set multiple variables.
    4. In the reset field map (drag from the panel or type): {{dateDifference(now; 2.windowStart; "seconds") > 60}}
    5. In the count field map (drag from the panel or type): {{if(reset; 1; 2.count + 1)}}
    6. Click OK (or Save) to close the module window.
    7. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    8. In the search box type Data store and click the Data store app.
    9. In the list of actions choose Add/replace a record.
    10. In the Key field map (drag from the panel or type): {{1.message.chat.id}}
    11. In the count field map (drag from the panel or type): {{3.count}}
    12. In the windowStart field map (drag from the panel or type): {{if(3.reset; now; 2.windowStart)}}
    13. Click OK (or Save) to close the module window.
  3. 3
    Router: up to 10 → continue, else → a message
    count ≤ 10 goes on to the agent; exactly 11 gets "slow down 🙂".
    Marked screenshot — step 3: Router: up to 10 → continue, else → a message
    📸 Step 3.1 — the red ring marks where to click
    Marked screenshot — step 3: Router: up to 10 → continue, else → a message
    📸 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 Make AI Agent and click the Make AI Agent app.
    8. In the list of actions choose Run an agent.
    9. In the Agent field type: Noa
    10. Click OK (or Save) to close the module window.
    11. Click the 🔧 icon on the line between the last two modules → Set up a filter.
    12. In the Label field type: ≤ 10.
    13. In Condition set: 3.count ≤ 10 (pick the field from the panel, the operator from the list, and type a value).
    14. Click OK — a funnel icon appears on the line.
    15. Click the small + coming out of the Router (to its right) to open a new route.
    16. In the search box type Telegram Bot and click the Telegram Bot app.
    17. In the list of actions choose Send a Text Message or a Reply.
    18. In the Text field type: Slow down 🙂 try again in a minute
    19. Click OK (or Save) to close the module window.
    20. Click the 🔧 icon on the line between the last two modules → Set up a filter.
    21. In the Label field type: = 11.
    22. In Condition set: 3.count = 11 (pick the field from the panel, the operator from the list, and type a value).
    23. Click OK — a funnel icon appears on the line.
    24. Click ▶ Run once at the bottom left.
    25. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    26. The output should look roughly like this:
      {
       "count": 11,
       "route": "slow down"
      }