Session 6 / 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. What does an Iterator do?
    โœ… Breaks an array into a bundle per item
    Array โ†’ bundles.
  2. What is the Source module in an aggregator?
    โœ… The module it starts collecting bundles from
    Usually the Iterator or the search.
  3. The maximum Sleep in one module:
    โœ… 300 seconds
    Up to 5 minutes.
  4. Break saves the run in:
    โœ… Incomplete executions
    Requires turning it on in the scenario settings.
  5. Resume does:
    โœ… Continues with a substitute value
    A fallback output.
  6. Rollback undoes:
    โœ… Only actions in modules that support transactions
    ACID only.
  7. A 401 error (an expired token). What's right?
    โœ… An alert to a person to renew the connection
    Retry won't help.
  8. 1 email with 10 files โ†’ Iterator โ†’ Upload. How many Credits?
    โœ… 12
    1 + 1 + 10.

Solution to task 1: Iterator and aggregators

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
    JSON โ†’ Parse JSON with [{"client":"Alpha","amount":4200},โ€ฆ].
    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: S06 - Iterator.
    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 JSON and click the JSON app.
    5. In the list of actions choose Parse JSON.
    6. In the JSON string field type: [{"client":"Alpha","amount":4200},{"client":"Beta","amount":1800},โ€ฆ]
    7. Click OK (or Save) to close the module window.
  2. 2
    Iterator
    Flow Control โ†’ Iterator โ†’ Array: the output.
    Marked screenshot โ€” step 2: Iterator
    ๐Ÿ“ธ 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 Iterator.
    4. In the Array field map (drag from the panel or type): {{1.array}}
    5. Click OK (or Save) to close the module window.
  3. 3
    Text aggregator
    Tools โ†’ Text aggregator, Source: Iterator, Row separator: New row, Text: โ€ข {{2.client}} โ€” ILS {{formatNumber(2.amount; 0; "."; ",")}}.
    Marked screenshot โ€” step 3: Text aggregator
    ๐Ÿ“ธ 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 Text aggregator.
    4. In the Source Module field type: Iterator [2]
    5. In the Row separator field type: New row
    6. In the Text field map (drag from the panel or type): โ€ข {{2.client}} โ€” โ‚ช{{formatNumber(2.amount; 0; "."; ",")}}
    7. Click OK (or Save) to close the module window.
  4. 4
    Sum
    In Telegram: Total: ILS {{formatNumber(sum(map(1.array; "amount")); 0; "."; ",")}}.
    Marked screenshot โ€” step 4: Sum
    ๐Ÿ“ธ 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 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.text}} Total: โ‚ช{{formatNumber(sum(map(1.array; "amount")); 0; "."; ",")}}
    5. Click OK (or Save) to close the module window.
  5. 5
    Send
    Telegram Send.
    Marked screenshot โ€” step 5: Send
    ๐Ÿ“ธ Step 5 โ€” 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:
      {
       "text": "โ€ข Alpha โ€” โ‚ช4,200\nโ€ข Beta โ€” โ‚ช1,800\nTotal: โ‚ช6,000"
      }

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

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

SymptomFix
Telegram was sent 3 timesThe aggregator is missing or the source module is wrong.
sum returns 0amount is text โ€” parseNumber, or map on the right field.

Solution to task 2: Repeater and pagination

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
    Repeater
    Flow Control โ†’ Repeater: Initial value 1, Repeats 5.
    Marked screenshot โ€” step 1: Repeater
    ๐Ÿ“ธ Step 1.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 1: Repeater
    ๐Ÿ“ธ 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: S06 - Pagination.
    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 Flow Control and click the Flow Control app.
    5. In the list of actions choose Repeater.
    6. In the Initial value field choose: 1
    7. In the Repeats field choose: 5
    8. Click OK (or Save) to close the module window.
  2. 2
    HTTP
    A URL with {{1.i}}.
    Marked screenshot โ€” step 2: HTTP
    ๐Ÿ“ธ 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 HTTP and click the HTTP app.
    3. In the list of actions choose Make a request.
    4. In the URL field map (drag from the panel or type): https://jsonplaceholder.typicode.com/posts?_page={{1.i}}&_limit=20
    5. In the Parse response field choose: Yes
    6. Click OK (or Save) to close the module window.
  3. 3
    Filter
    length(data) > 0.
    Marked screenshot โ€” step 3: Filter
    ๐Ÿ“ธ Step 3 โ€” 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: Has data.
    3. In Condition set: {{length(2.data)}} ยท Numeric: Greater than ยท 0 (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.
  4. 4
    Count
    Numeric aggregator, Source: Repeater, Function SUM, Value: {{length(2.data)}}.
    Marked screenshot โ€” step 4: Count
    ๐Ÿ“ธ Step 4.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 4: Count
    ๐Ÿ“ธ 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 Tools and click the Tools app.
    3. In the list of actions choose Numeric aggregator.
    4. In the Source Module field type: Repeater [1]
    5. In the Aggregate function field type: SUM
    6. In the Value field map (drag from the panel or type): {{length(2.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:
      {
       "result": 100
      }

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

SymptomFix
Only 20 resultsThe aggregator's source module is the HTTP instead of the Repeater โ€” check.
The Repeater doesn't appearIt's under Flow Control.

Solution to task 3: Error handlers in action

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
    Setup
    Scenario settings โ†’ Allow storing of incomplete executions: Yes.
    Marked screenshot โ€” step 1: Setup
    ๐Ÿ“ธ Step 1 โ€” the red ring marks where to click
    1. Click โš™๏ธ Scenario settings in the bottom bar.
    2. In the Allow storing of incomplete executions field choose: Yes
    3. Click OK.
  2. 2
    HTTP
    GET httpstat.us/503, Evaluate all states as errors: Yes.
    Marked screenshot โ€” step 2: HTTP
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: HTTP
    ๐Ÿ“ธ 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: S06 - Error handlers.
    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 HTTP and click the HTTP app.
    5. In the list of actions choose Make a request.
    6. In the URL field type: https://httpstat.us/503
    7. In the Evaluate all states as errors field choose: Yes
    8. Click OK (or Save) to close the module window.
  3. 3
    Break
    Add error handler โ†’ Telegram (error.message) โ†’ Break: Automatically complete execution: Yes, attempts 2, interval 1.
    Marked screenshot โ€” step 3: Break
    ๐Ÿ“ธ Step 3.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 3: Break
    ๐Ÿ“ธ Step 3.2 โ€” the red ring marks where to click
    1. Right-click module 1 โ†’ Add error handler.
    2. Choose the Break directive.
    3. In the Automatically complete execution field choose: Yes
    4. In the Number of attempts field choose: 2
    5. In the Interval between attempts field type: 1 minute
    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:
      {
       "error": "DataError ยท 503 Service Unavailable",
       "stored": "Incomplete executions"
      }
  4. 4
    Compare
    Swap Break for Resume (Output: statusCode = 0) and then Ignore. Check History.
    Marked screenshot โ€” step 4: Compare
    ๐Ÿ“ธ Step 4.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 4: Compare
    ๐Ÿ“ธ Step 4.2 โ€” the red ring marks where to click
    1. Right-click module 1 โ†’ Add error handler.
    2. Choose the Resume directive.
    3. In the statusCode field choose: 0
    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:
      {
       "statusCode": 0,
       "note": "Continued with a fallback value"
      }
    7. Right-click module 1 โ†’ Add error handler.
    8. Choose the Ignore directive.
    9. Click the History tab (at the top) and check that the last line is: Success (warning) ยท Ignore.
  5. 5
    Clean up
    Cancel the runs in incomplete executions.
    Marked screenshot โ€” step 5: Clean up
    ๐Ÿ“ธ Step 5 โ€” the red ring marks where to click
    1. Click the History tab (at the top) and check that the last line is: Incomplete executions ยท 1 โ†’ Delete.

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

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

SymptomFix
Break doesn't saveIncomplete executions is off.
The handler isn't calledEvaluate all states as errors is off โ€” 503 counts as success.

Solution to task 4: A payment-reminder system

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
    Sheet
    Add a lastReminder column.
    Marked screenshot โ€” step 1: Sheet
    ๐Ÿ“ธ Step 1 โ€” the red ring marks where to click
    1. Open sheets.google.com in your browser (the โ€œInvoicesโ€ screen).
    2. On the screen you will see: A: customer ยท B: email ยท C: amount ยท D: due ยท E: paid ยท F: lastReminder
  2. 2
    Trigger
    Days of the week Sunโ€“Thu 09:00 โ†’ Search Rows paid = no.
    Marked screenshot โ€” step 2: Trigger
    ๐Ÿ“ธ Step 2.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 2: Trigger
    ๐Ÿ“ธ 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: S06 - Reminders.
    3. Click the clock ๐Ÿ•’ in the bottom bar (next to the ON/OFF switch).
    4. In the schedule settings choose: Days of the week ยท Sunโ€“Thu ยท 09:00 and click OK.
    5. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    6. In the search box type Google Sheets and click the Google Sheets app.
    7. In the list of actions choose Search Rows.
    8. In the Filter field type: paid ยท Equal to ยท No
    9. Click OK (or Save) to close the module window.
  3. 3
    daysLate
    Set variable: {{floor((now - parseDate(4.due; "DD/MM/YYYY"; "Asia/Jerusalem")) / 86400000)}}.
    Marked screenshot โ€” step 3: daysLate
    ๐Ÿ“ธ 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 variable.
    4. In the daysLate field map (drag from the panel or type): {{floor((now - parseDate(1.due; "DD/MM/YYYY"; "Asia/Jerusalem")) / 86400000)}}
    5. Click OK (or Save) to close the module window.
  4. 4
    Filter
    daysLate โ‰ฅ 1 AND lastReminder โ‰  {{formatDate(now; "DD/MM/YYYY"; "Asia/Jerusalem")}}.
    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: Overdue and not sent today.
    3. In Condition set: daysLate โ‰ฅ 1 AND lastReminder โ‰  {{formatDate(now; "DD/MM/YYYY"; "Asia/Jerusalem")}} (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.
  5. 5
    Router
    1โ€“7 / 8โ€“14 / 15+ with Gmail, Gmail, Telegram.
    Marked screenshot โ€” step 5: Router
    ๐Ÿ“ธ Step 5.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 5: Router
    ๐Ÿ“ธ 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 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 Gmail and click the Gmail app.
    8. In the list of actions choose Send an email.
    9. In the Subject field type: Friendly reminder
    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: 1โ€“7.
    13. In Condition set: daysLate โ‰ค 7 (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 Gmail and click the Gmail app.
    17. In the list of actions choose Send an email.
    18. In the Subject field type: Second reminder
    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: 8โ€“14.
    22. In Condition set: daysLate 8โ€“14 (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 the small + coming out of the Router (to its right) to open a new route.
    25. In the search box type Telegram Bot and click the Telegram Bot app.
    26. In the list of actions choose Send a Text Message or a Reply.
    27. In the Text field map (drag from the panel or type): โš ๏ธ 15+ days overdue: {{customer}}
    28. Click OK (or Save) to close the module window.
    29. Click the ๐Ÿ”ง on the line of the last route โ†’ Set up a filter.
    30. Type Fallback as the Label, and tick Fallback route: Yes.
    31. Click OK โ€” this route runs only when no other route matched.
  6. 6
    Sleep + Update
    Sleep 2 โ†’ Update a Row lastReminder = today.
    Marked screenshot โ€” step 6: Sleep + Update
    ๐Ÿ“ธ Step 6.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 6: Sleep + Update
    ๐Ÿ“ธ 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 Tools and click the Tools app.
    3. In the list of actions choose Sleep.
    4. In the Delay field choose: 2
    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 Google Sheets and click the Google Sheets app.
    8. In the list of actions choose Update a Row.
    9. In the Row number field map (drag from the panel or type): {{1.__ROW_NUMBER__}}
    10. In the lastReminder field map (drag from the panel or type): {{formatDate(now; "DD/MM/YYYY"; "Asia/Jerusalem")}}
    11. Click OK (or Save) to close the module window.
  7. 7
    Errors
    Gmail: Break 3 ร— 15 min; Update: Resume.
    Marked screenshot โ€” step 7: Errors
    ๐Ÿ“ธ Step 7.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 7: Errors
    ๐Ÿ“ธ Step 7.2 โ€” the red ring marks where to click
    1. Right-click module -3 โ†’ Add error handler.
    2. Choose the Break directive.
    3. In the Number of attempts field choose: 3
    4. In the Interval field type: 15 minutes
    5. Right-click module the last โ†’ Add error handler.
    6. Choose the Resume directive.
  8. 8
    Summary
    A small separate scenario at 09:15: Search โ†’ Text aggregator โ†’ Telegram.
    Marked screenshot โ€” step 8: Summary
    ๐Ÿ“ธ Step 8.1 โ€” the red ring marks where to click
    Marked screenshot โ€” step 8: Summary
    ๐Ÿ“ธ Step 8.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: S06 - Reminder summary.
    3. Click the clock ๐Ÿ•’ in the bottom bar (next to the ON/OFF switch).
    4. In the schedule settings choose: Every day ยท 09:15 and click OK.
    5. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    6. In the search box type Google Sheets and click the Google Sheets app.
    7. In the list of actions choose Search Rows.
    8. Keep the defaults.
    9. Click OK (or Save) to close the module window.
    10. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    11. In the search box type Tools and click the Tools app.
    12. In the list of actions choose Text aggregator.
    13. Keep the defaults.
    14. Click OK (or Save) to close the module window.
    15. Click the + (the big circle in the middle, or the half-circle to the right of the last module).
    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. Keep the defaults.
    19. Click OK (or Save) to close the module window.

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

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

SymptomFix
daysLate is negativeThe invoice isn't overdue yet โ€” that's fine, the filter will stop it.
2 reminders were sent on the same dayUpdate didn't run (an error) โ€” check the Resume, or a date comparison with spaces.

Solution to the bonus challenge

Webhook errors โ†’ Sheets Add a Row (scenario, module, message, time). A second scenario every hour: Search Rows (time after an hour ago) โ†’ Text aggregator โ†’ Telegram โ€” only if there are rows (a filter on length). The scenario name is available in the system variables: {{scenario.name}} and {{execution.id}} (the Variables tab in the panel).