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

In one sentence

Students understand what data looks like in Make (bundles, collections, arrays), map with functions, create secure connections, and run a scheduled Telegram bot.

Preparation before the session

Time plan

  1. 00:00โ€“00:15 Review of session 1 and the ROI slides
  2. 00:15โ€“00:50 Bundles, collections and arrays โ€” what data looks like inside
  3. 00:50โ€“01:20 The mapping panel, data types and functions
  4. 01:20โ€“01:35 โ˜• Break
  5. 01:35โ€“01:55 Connections: creating, securing and managing them
  6. 01:55โ€“02:15 Scheduling, triggers and Credits
  7. 02:15โ€“02:50 Building together: a morning-report bot on Telegram
  8. 02:50โ€“03:00 Summary and on to practice

Lecture parts and activity type

PartActivity type
What's inside a bundle?Explanation + drawing on the board
Data types in MakeExplanation + playground
The mapping panel and functionsLive demo
Parse JSON and data structuresDemo
Connections โ€” secure linksExplanation + demo
Scheduling and triggers โ€” and how not to burn CreditsExplanation + calculation
Scenario settingsExplanation
Building together: a morning-report bot on TelegramBuilding together

The 3 messages that must get across

  1. An array inside a bundle โ‰  several bundles.
  2. Keys only in connections.
  3. Every polling check costs a Credit โ€” choose the schedule wisely.

Questions for class discussion

  • What information would you like to get on your phone every morning?
  • Why would an organization prefer a service account for connections?
  • When is a 15-minute delay fine and when not?

Live demo script

Exploring bundles

  1. HTTP โ€” URL: https://api.frankfurter.app/latest?from=USD&to=ILS,EUR, Parse response: Yes โ†’ Run once.
  2. Read the bubble โ€” Output โ†’ Data โ†’ rates โ†’ ILS. Note the type icon (Number).
  3. Variables โ€” Tools โ†’ Set multiple variables: usd = {{round(1.data.rates.ILS; 2)}}, eur = {{round(1.data.rates.ILS / 1.data.rates.EUR; 2)}}, date = {{formatDate(1.data.date;
  4. Parse JSON โ€” Add JSON โ†’ Parse JSON, JSON string: {"name":"Dana","seats":5} โ†’ Run once.

Create a Telegram bot and connect it to Make

  1. BotFather โ€” In Telegram: @BotFather โ†’ /newbot โ†’ a name โ†’ a username ending with bot. Copy the token.
  2. A message to the bot โ€” Open your bot โ†’ Start โ†’ send "hello".
  3. Watch Updates โ€” A temporary scenario: Telegram Bot โ†’ Watch Updates โ†’ Create a webhook โ†’ Add connection โ†’ paste the token.
  4. Run once and send โ€” Click Run once, and send the bot another message. In the bubble: Message โ†’ Chat โ†’ ID.
  5. A test message โ€” A new scenario: Telegram Bot โ†’ Send a Text Message or a Reply, Chat ID, Text: Hello from Make ๐Ÿ‘‹ โ†’ Run once.

A full morning report

  1. Rates โ€” HTTP โ†’ Frankfurter (Parse response).
  2. Forecast โ€” HTTP โ†’ Open-Meteo with daily=temperature_2m_max,temperature_2m_min&timezone=Asia/Jerusalem&forecast_days=1.
  3. Message โ€” Telegram Bot โ†’ Send a Text Message. Parse mode: HTML. Text:๐ŸŒ… <b>Morning report {{formatDate(now; "DD/MM/YYYY")}}</b>๐Ÿ’ต Dollar: {{round(1.data.rates.I
  4. Note โ€” Right-click the canvas โ†’ Add a note: "Daily morning report โ€” 3 modules, about 90 Credits a month".

Problems students will run into

ProblemQuick fix
rates doesn't appear in mappingParse response is off. Turn it on and run again.
eur comes out 0.23You flipped the division. ILS รท EUR.
Parse JSON: Source is not valid JSONCurly quotes (โ€ instead of ") or an extra comma. Check at jsonformatter.org.
UnauthorizedThe token is wrong or missing. Copy it again from BotFather (including the number and the colon).
Bad Request: chat not foundYou didn't press Start in the bot, or the Chat ID is wrong.
Watch Updates receives nothingSend a message after Run once started, and check that no other scenario is connected to the same bot.
Can't parse entitiesAn unclosed HTML tag or a < character in the text.
The temperature appears as [24.1]You mapped the array itself โ€” wrap it in first().
Saturday's rate equals Friday'sFrankfurter updates on business days only โ€” that's fine.
The report arrived on FridayYou chose Every day instead of Days of the week.

Tips from the classroom

  • The Chat ID is the big hurdle โ€” go through it together step by step.
  • Show the History of an empty polling scenario โ€” it's more convincing than any explanation.
  • Encourage using Notes from day one.

Adapting to different levels

For students who struggle: Focus on a bot with a static message and then add one field.

For fast students: Give the multi-subscriber report challenge with an Iterator.

Answer key โ€” multiple-choice questions

Students see the answers in shuffled order, so the key gives the wording of the right answer.

#Right answer
14 bundles
2items[1] or first(items)
3Make stores a reference to the module, so the mapping doesn't break when you rename things
4Turns JSON text into fields
52,880
6Doesn't save the bubbles' content in History
7The Chat ID
8parseNumber(text; ".")

Homework

  1. Complete the practice tasks โ€” the bot should send a report tomorrow morning.
  2. Preparing for session 3: open a free account on Tally (tally.so) โ€” we will build a lead form.