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

Blueprint files + how to compare with the solution

All the files and import instructions: the Blueprint files page.

For every task you will find four layers here: an animated click simulation, an illustrated step-by-step guide (a marked screenshot for every step + "what to click and what to type" instructions), the final result and a table of common problems.

โ„น๏ธ How do you import a Blueprint into Make?
  1. Open a new scenario: Scenarios โ†’ Create a new scenario.
  2. Click โ‹ฏ (More) in the bottom bar โ†’ Import Blueprint.
  3. Choose a JSON file you saved (Export Blueprint) and click Save.
  4. Modules that need a connection will be marked โ€” open each one and choose your connection.
  5. A Blueprint does not include passwords or keys โ€” you always create the connections again.

Solution to Part A โ€” multiple-choice questions

  1. How do you get the 3 agents with the highest amount?
    โœ… slice(sort(array; "desc"; "amount"); 0; 3)
    sort + slice.
  2. distinct(map(array; "agent")) returns:
    โœ… A list of agents without duplicates
    Unique values.
  3. When is regex better than AI?
    โœ… A fixed, known format
    Fast, cheap and precise.
  4. A named group in regex:
    โœ… (?\d+)
    The name becomes a field in the output.
  5. About how much does Make Code cost?
    โœ… About 2 Credits a second
    By runtime.
  6. What does Group by do in the Array aggregator?
    โœ… Outputs a bundle per group
    A bundle per unique value.
  7. How do you build an HTML table from 30 rows?
    โœ… A Text aggregator with per row
    And then wrap it in .
  8. Which function sums an array of numbers?
    โœ… sum()
    sum(map(...)).
  9. Solution to task 1: Array functions

    The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

    ๐Ÿ“ธ 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
      Search
      Search Rows without a filter (or by date).
      Marked screenshot โ€” step 1: Search
      ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
      Marked screenshot โ€” step 1: Search
      ๐Ÿ“ธ 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: S07 - KPIs.
      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 Google Sheets and click the Google Sheets app.
      5. In the list of actions choose Search Rows.
      6. In the Spreadsheet field type: Sales
      7. Click OK (or Save) to close the module window.
    2. 2
      Aggregator
      Array aggregator, Source: Search Rows, fields: agent, amount, region.
      Marked screenshot โ€” step 2: Aggregator
      ๐Ÿ“ธ 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 Flow Control and click the Flow Control app.
      3. In the list of actions choose Array aggregator.
      4. In the Source Module field type: Google Sheets - Search Rows [1]
      5. In the Aggregated fields field type: agent, amount, region
      6. Click OK (or Save) to close the module window.
    3. 3
      KPIs
      total={{sum(map(2.array; "amount"))}}, deals={{length(2.array)}}, avg={{round(total/deals)}}, agents={{join(distinct(map(2.array; "agent")); ", ")}}.
      Marked screenshot โ€” step 3: KPIs
      ๐Ÿ“ธ 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 Tools and click the Tools app.
      3. In the list of actions choose Set multiple variables.
      4. In the total field map (drag from the panel or type): {{sum(map(2.array; "amount"))}}
      5. In the deals field map (drag from the panel or type): {{length(2.array)}}
      6. In the avg field map (drag from the panel or type): {{round(total/deals)}}
      7. In the agents field map (drag from the panel or type): {{join(distinct(map(2.array; "agent")); ", ")}}
      8. Click OK (or Save) to close the module window.
    4. 4
      Filtered
      sumCenter={{sum(map(2.array; "amount"; "region"; "Center"))}}.
      Marked screenshot โ€” step 4: Filtered
      ๐Ÿ“ธ Step 4.1 โ€” the red ring marks where to click
      Marked screenshot โ€” step 4: Filtered
      ๐Ÿ“ธ Step 4.2 โ€” the red ring marks where to click
      1. Click module number 3 to open its settings.
      2. In the sumMerkaz field map (drag from the panel or type): {{sum(map(2.array; "amount"; "region"; "Center"))}}
      3. Click OK.
      4. Click โ–ถ Run once at the bottom left.
      5. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
      6. The output should look roughly like this:
        {
         "total": 214500,
         "deals": 38,
         "avg": 5645,
         "agents": "Yossi, Dana, Ron",
         "sumMerkaz": 121000
        }

    ๐ŸŽฌ The final result โ€” run the simulation

    ๐Ÿ› ๏ธ Common problems and how to fix them

    SymptomFix
    sum returns an errorText values with a currency sign or commas โ€” clean them in the sheet or parseNumber.
    agents appears as [object]map on a whole collection โ€” specify a field.

Solution to task 2: The Text parser on order emails

The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

๐Ÿ“ธ 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
    Input
    Tools โ†’ Compose a string with the order text.
    Marked screenshot โ€” step 1: Input
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Input
    ๐Ÿ“ธ 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: S07 - Text parser.
    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 Tools and click the Tools app.
    5. In the list of actions choose Compose a string.
    6. In the Text field type: Order no. 48213 ยท Amount: 1,299.90 โ‚ช ยท Date: 10/11/2026
    7. Click OK (or Save) to close the module window.
  2. 2
    Regex
    Text parser โ†’ Match pattern โ†’ the pattern from the lecture โ†’ Run once.
    Marked screenshot โ€” step 2: Regex
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: Regex
    ๐Ÿ“ธ 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 Text parser and click the Text parser app.
    3. In the list of actions choose Match pattern.
    4. In the Pattern field type: Order no.? (?<order>\d+).*?Amount: (?<amount>[\d,.]+).*?Date: (?<date>[\d/]+)
    5. In the Text field map (drag from the panel or type): {{1.text}}
    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:
      {
       "order": "48213",
       "amount": "1,299.90",
       "date": "10/11/2026"
      }
  3. 3
    Conversions
    amount={{parseNumber(replace(2.amount; ","; emptystring))}}, date={{parseDate(2.date; "DD/MM/YYYY")}}.
    Marked screenshot โ€” step 3: Conversions
    ๐Ÿ“ธ 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 Tools and click the Tools app.
    3. In the list of actions choose Set multiple variables.
    4. In the amount field map (drag from the panel or type): {{parseNumber(replace(2.amount; ","; emptystring))}}
    5. In the date field map (drag from the panel or type): {{parseDate(2.date; "DD/MM/YYYY")}}
    6. Click OK (or Save) to close the module window.
  4. 4
    Filter
    order Exists.
    Marked screenshot โ€” step 4: Filter
    ๐Ÿ“ธ Step 4 โ€” the red ring marks where to click
    1. Click the ๐Ÿ”ง icon on the line between the last two modules โ†’ Set up a filter.
    2. In the Label field type: Order found.
    3. In Condition set: order ยท Basic: Exists (pick the field from the panel, the operator from the list, and type a value).
    4. Click OK โ€” a funnel icon appears on the line.

๐Ÿ› ๏ธ Common problems and how to fix them

SymptomFix
The pattern doesn't matchTypographic quotes/dots vs. plain ones โ€” use .? instead.
amount with a commareplace before parseNumber.

Solution to task 3: An HTML table and a CSV

The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

๐Ÿ“ธ 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
    Table
    Text aggregator (Source: Search Rows), Text: <tr><td>{{agent}}</td>โ€ฆ</tr>.
    Marked screenshot โ€” step 1: Table
    ๐Ÿ“ธ Step 1 โ€” 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 Text aggregator.
    4. In the Source Module field type: Google Sheets - Search Rows
    5. In the Text field map (drag from the panel or type): <tr><td>{{agent}}</td><td>{{amount}}</td></tr>
    6. Click OK (or Save) to close the module window.
  2. 2
    CSV
    CSV โ†’ Create CSV (advanced) โ†’ Source: Search Rows? (or Array aggregator) โ†’ fields.
    Marked screenshot โ€” step 2: CSV
    ๐Ÿ“ธ 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 CSV and click the CSV app.
    3. In the list of actions choose Create CSV (advanced).
    4. In the Source Module field type: Google Sheets - Search Rows
    5. In the Data structure field type: agent, amount, region
    6. Click OK (or Save) to close the module window.
  3. 3
    BOM
    File data: {{"\uFEFF" + 6.text}} (or the Include BOM option if it exists).
    Marked screenshot โ€” step 3: BOM
    ๐Ÿ“ธ Step 3 โ€” the red ring marks where to click
    1. Click the last module to open its settings.
    2. In the File data field map (drag from the panel or type): {{"\uFEFF" + 6.text}}
    3. Click OK.
  4. 4
    Gmail
    HTML content with <table>, Attachments: file name sales-week-{{formatDate(now; "W")}}.csv, Data: the CSV.
    Marked screenshot โ€” step 4: Gmail
    ๐Ÿ“ธ Step 4.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 4: Gmail
    ๐Ÿ“ธ Step 4.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 Send an email.
    4. In the Content field map (drag from the panel or type): <table>{{5.text}}</table>
    5. In the File name field map (drag from the panel or type): sales-week-{{formatDate(now; "W")}}.csv
    6. In the Data field map (drag from the panel or type): {{7.data}}
    7. Click OK (or Save) to close the module window.
    8. Click โ–ถ Run once at the bottom left.
    9. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    10. The output should look roughly like this:
      {
       "id": "18eโ€ฆ",
       "attachments": [
        "sales-week-45.csv"
       ]
      }

๐Ÿ› ๏ธ Common problems and how to fix them

SymptomFix
Gmail was sent 30 timesThe Text aggregator/CSV isn't set with the right source.
The CSV is gibberish in ExcelThe BOM is missing.

Solution to task 4: A full weekly sales report

The solution in four layers: a click simulation (the cursor shows what to click, what to type and in which order), an illustrated guide for every step, the written steps and a simulation of the result.

๐Ÿ“ธ 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
    Trigger
    Days of the week: Sunday 08:00.
    Marked screenshot โ€” step 1: Trigger
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: 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: S07 - Weekly report.
    3. Click the clock ๐Ÿ•’ in the bottom bar (next to the ON/OFF switch).
    4. In the schedule settings choose: Days of the week ยท Sunday ยท 08:00 and click OK.
  2. 2
    This week
    Search (date after addDays(now;-7)) โ†’ Array aggregator.
    Marked screenshot โ€” step 2: This week
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: This week
    ๐Ÿ“ธ 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 Google Sheets and click the Google Sheets app.
    3. In the list of actions choose Search Rows.
    4. In the Filter field map (drag from the panel or type): date ยท Later than ยท {{addDays(now; -7)}}
    5. Click OK (or Save) to close the module window.
    6. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    7. In the search box type Flow Control and click the Flow Control app.
    8. In the list of actions choose Array aggregator.
    9. Keep the defaults.
    10. Click OK (or Save) to close the module window.
  3. 3
    Last week
    Search (between -14 and -7) โ†’ Array aggregator.
    Marked screenshot โ€” step 3: Last week
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Last week
    ๐Ÿ“ธ 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 Google Sheets and click the Google Sheets app.
    3. In the list of actions choose Search Rows.
    4. In the Filter field type: date between -14 and -7 days
    5. Click OK (or Save) to close the module window.
    6. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    7. In the search box type Flow Control and click the Flow Control app.
    8. In the list of actions choose Array aggregator.
    9. Keep the defaults.
    10. Click OK (or Save) to close the module window.
  4. 4
    KPIs
    total, prev, change={{round((total-prev)/prev*100)}}.
    Marked screenshot โ€” step 4: KPIs
    ๐Ÿ“ธ Step 4 โ€” 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 total field map (drag from the panel or type): {{sum(map(2.array; "amount"))}}
    5. In the prev field map (drag from the panel or type): {{sum(map(4.array; "amount"))}}
    6. In the change field map (drag from the panel or type): {{round((total-prev)/prev*100)}}
    7. Click OK (or Save) to close the module window.
  5. 5
    Leader
    Make Code (the JS from the lecture) or Group by.
    Marked screenshot โ€” step 5: Leader
    ๐Ÿ“ธ Step 5 โ€” 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 Code and click the Make Code app.
    3. In the list of actions choose Run code.
    4. In the Language field type: JavaScript
    5. In the Input field map (drag from the panel or type): rows = {{2.array}}
    6. Click OK (or Save) to close the module window.
  6. 6
    Output
    Gmail + Telegram.
    Marked screenshot โ€” step 6: Output
    ๐Ÿ“ธ Step 6.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 6: Output
    ๐Ÿ“ธ Step 6.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 Send an email.
    4. Keep the defaults.
    5. Click OK (or Save) to close the module window.
    6. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    7. In the search box type Telegram Bot and click the Telegram Bot app.
    8. In the list of actions choose Send a Text Message or a Reply.
    9. Keep the defaults.
    10. Click OK (or Save) to close the module window.
    11. Click โ–ถ Run once at the bottom left.
    12. When the run ends, bubbles with numbers appear above the modules. Click the bubble of the last module and check the Output.
    13. The output should look roughly like this:
      {
       "total": 214500,
       "prev": 198000,
       "change": 8,
       "top": "Yossi"
      }

๐ŸŽฌ The final result โ€” run the simulation

๐Ÿ› ๏ธ Common problems and how to fix them

SymptomFix
prev = 0 โ†’ division by zeroif(prev = 0; "โ€”"; โ€ฆ).
Make Code: input undefinedMap the array to an input field named rows.

Solution to the bonus challenge

Set variable chart = {"type":"bar","data":{"labels":{{toString(distinct(map(array;"agent")))}},"datasets":[{"label":"ILS","data":[โ€ฆ]}]}} (better with Create JSON). In the HTML: <img src="https://quickchart.io/chart?w=500&h=300&c={{encodeURL(chart)}}">. Gmail shows external images โ€” some clients require approval.