Session 10 / 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 customer profile in long-term memory

🔥 Advanced⏱️ ~40 min

🎬 The scenario

Noa will remember a name and preferences even in a new conversation a month from now.

🎯 The requirements

  1. A customers table by chat_id.
  2. Loading before the agent.
  3. An update_profile 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": "Hi Dana! Oak table again like last time?"
}

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

💡 Hints (try without them first)
  • Data store Get → map into the input: "Profile: …".

Telegram → Data store Get (chat_id) → Run an agent with Input: Customer profile: {{2.name}}, preferences: {{2.prefs}}\nMessage: {{1.message.text}} + an update_profile tool (a scenario that writes to the data store). The conversation ID for the conversation, the DB for long-term memory.

🎬 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
    A profiles table
    Data store customers by chat_id: name, prefs.
    Marked screenshot — step 1: A profiles table
    📸 Step 1 — the red ring marks where to click
    1. Open eu2.make.com/datastores in your browser (the “Data stores” screen).
    2. On the screen you will see: Name: customers · name (Text) · prefs (Text)
    3. Click the Save button.
  2. 2
    Load the profile before the agent
    Telegram → Data store Get (chat_id).
    Marked screenshot — step 2: Load the profile before the agent
    📸 Step 2.1 — the red ring marks where to click
    Marked screenshot — step 2: Load the profile before the agent
    📸 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: C10 - Noa with memory.
    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: customers
    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.
  3. 3
    The agent gets the profile
    Input: profile + message; Conversation ID for the conversation.
    Marked screenshot — step 3: The agent gets the profile
    📸 Step 3 — 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 Conversation ID field map (drag from the panel or type): {{1.message.chat.id}}
    6. In the Input field map (drag from the panel or type): Profile: {{2.name}}, preferences: {{2.prefs}} Message: {{1.message.text}}
    7. Click OK (or Save) to close the module window.
  4. 4
    An update_profile tool
    A tool scenario that writes to the data store, connected to the agent.
    Marked screenshot — step 4: An update_profile tool
    📸 Step 4 — 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: update_profile · Description: saves the customer's name and preferences
    3. Click the Save button.
  5. 5
    Send and test
    In a new conversation — Noa uses the name.
    Marked screenshot — step 5: Send and test
    📸 Step 5.1 — the red ring marks where to click
    Marked screenshot — step 5: Send and test
    📸 Step 5.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 Telegram Bot and click the Telegram Bot app.
    3. In the list of actions choose Send a Text Message or a Reply.
    4. In the Text field map (drag from the panel or type): {{3.response}}
    5. Click OK (or Save) to close the module window.
    6. Click ▶ Run once at the bottom left.
    7. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    8. The output should look roughly like this:
      {
       "response": "Hi Dana! Oak table again like last time?"
      }

Experts: A filter on the agent's output

🔥🔥 Experts⏱️ ~50 min

🎬 The scenario

Make sure no answer contains a promise of a refund or a credit card number.

🎯 The requirements

  1. Check the output before sending.
  2. An alternative route.
  3. A log.

🎯 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": "fallback",
  "logged": true
}

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

💡 Hints (try without them first)
  • Router: a Matches pattern filter on words/numbers.

After the agent: Router → Filter: doesn't contain /(refund|full credit|\d{12,16})/ → Send; fallback → a generic message + escalate + a Sheets log. A protection layer that doesn't depend on the LLM.

🎬 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
    A Router after the agent
    A protection layer that does not depend on the model.
    Marked screenshot — step 1: A Router after the agent
    📸 Step 1.1 — the red ring marks where to click
    Marked screenshot — step 1: A Router after the agent
    📸 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: C10 - Output check.
    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 Make AI Agent and click the Make AI Agent app.
    10. In the list of actions choose Run an agent.
    11. In the Agent field type: Noa
    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 Flow Control and click the Flow Control app.
    15. In the list of actions choose Router.
    16. Keep the defaults.
    17. Click OK (or Save) to close the module window.
  2. 2
    A safe route → send
    Filter: the answer does not contain refund/credit/a card number.
    Marked screenshot — step 2: A safe route → send
    📸 Step 2.1 — the red ring marks where to click
    Marked screenshot — step 2: A safe route → send
    📸 Step 2.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 Telegram Bot and click the Telegram Bot app.
    3. In the list of actions choose Send a Text Message or a Reply.
    4. In the Text field map (drag from the panel or type): {{2.response}}
    5. Click OK (or Save) to close the module window.
    6. Click the 🔧 icon on the line between the last two modules → Set up a filter.
    7. In the Label field type: Safe.
    8. In Condition set: 2.response Does not match pattern (refund|full credit|money back|\d{12,16}) (pick the field from the panel, the operator from the list, and type a value).
    9. Click OK — a funnel icon appears on the line.
  3. 3
    Fallback → a generic message + log
    A generic answer, escalation to an agent and a log in a sheet.
    Marked screenshot — step 3: Fallback → a generic message + log
    📸 Step 3.1 — the red ring marks where to click
    Marked screenshot — step 3: Fallback → a generic message + log
    📸 Step 3.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: agent_log
    5. In the response field map (drag from the panel or type): {{2.response}}
    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": "fallback",
       "logged": true
      }

Boss challenge: An agent by email

👑 Boss challenge⏱️ ~60 min

🎬 The scenario

The same Noa, on the email channel: she answers with a draft in the thread.

🎯 The requirements

  1. Gmail Watch.
  2. Conversation ID = thread ID.
  3. Create a draft.

🎯 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
{
  "draftId": "r-77…",
  "threadId": "18f…"
}

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

💡 Hints (try without them first)
  • The same tools — shared scenarios!

This is the power of scenarios as tools: Gmail → Run an agent (the same instructions + "channel: email, a longer answer") → Create a draft (thread ID). The get_order and escalate tools are shared by both channels.

🎬 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
    Gmail as the trigger
    Watch emails for the service inbox.
    Marked screenshot — step 1: Gmail as the trigger
    📸 Step 1.1 — the red ring marks where to click
    Marked screenshot — step 1: Gmail as the trigger
    📸 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: C10 - Noa by email.
    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: to:service@etzvaor.co.il
    7. Click OK (or Save) to close the module window.
  2. 2
    The same Noa, Thread ID as memory
    Conversation ID = threadId; instruction: email channel, a longer answer.
    Marked screenshot — step 2: The same Noa, Thread ID as memory
    📸 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 Conversation ID field map (drag from the panel or type): {{1.threadId}}
    6. In the Additional instructions field type: Channel: email. A full, polite answer.
    7. Click OK (or Save) to close the module window.
  3. 3
    A draft in the thread
    Gmail → Create a draft with Thread ID — an agent approves.
    Marked screenshot — step 3: A draft in the thread
    📸 Step 3.1 — the red ring marks where to click
    Marked screenshot — step 3: A draft in the thread
    📸 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 Gmail and click the Gmail app.
    3. In the list of actions choose Create a draft.
    4. In the Thread ID field map (drag from the panel or type): {{1.threadId}}
    5. In the Content field map (drag from the panel or type): {{2.response}}
    6. Click OK (or Save) to close the module window.
    7. Click ▶ Run once at the bottom left.
    8. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    9. The output should look roughly like this:
      {
       "draftId": "r-77…",
       "threadId": "18f…"
      }