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

What we learn today โ€” a short video

โšก By the end of the session you will know

  • Google Sheets can be a CRM with an upsert by email.
  • A search that found nothing = 0 bundles โ€” an Array aggregator solves it.
  • Gmail HTML: inline CSS.
  • Drive and Calendar complete it: a folder and a meeting for every lead.
  • We built a Google-based CRM end to end.

A silent video of about half a minute: the session topic, the learning goals (also listed in the next section) and the scenario we build today.

The story of Etz va'Or (Wood & Light) โ€” Chapter 5: A CRM without paying for a CRM

The leads are coming in, but they're scattered across emails. Maya wants one organized list in Google Sheets, with no duplicates, a personal email to the customer, a Drive folder for every project and a measuring appointment in the calendar โ€” all from the form, automatically.

๐Ÿงต One story across the whole course: every session solves a real problem for the business. At the end โ€” a complete system.

Session goals

  1. Connect a Google account to Make and understand OAuth permissions (and what to do when a Client ID is required).
  2. Work with Google Sheets: Add, Search, Update, Watch rows and Bulk.
  3. Implement the upsert pattern (search โ†’ update or add) to prevent duplicates.
  4. Send HTML-formatted emails with Gmail.
  5. Create folders and copy template documents in Google Drive.
  6. Create events in Google Calendar with attendees.
  7. Connect it all into a Google-based CRM that receives leads from the form.

Session agenda (3 hours)

  1. 00:00โ€“00:15 Review: the leads API
  2. 00:15โ€“00:35 Connecting Google: OAuth and permissions
  3. 00:35โ€“01:15 Google Sheets in depth + upsert
  4. 01:15โ€“01:30 โ˜• Break
  5. 01:30โ€“01:55 Gmail: HTML emails
  6. 01:55โ€“02:15 Drive and Calendar
  7. 02:15โ€“02:50 Building together: a Google-based CRM
  8. 02:50โ€“03:00 Summary and practice

What to prepare for this session

Google Sheets

https://sheets.google.com (opens in a new window)
A CRM sheet with a header row.

Gmail

https://mail.google.com (opens in a new window)
For sending formatted emails.

Google Drive

https://drive.google.com (opens in a new window)
A main folder for clients + a template document.

Google Calendar

https://calendar.google.com (opens in a new window)
For scheduling intro meetings.

Connecting Google

Make has a separate app for each service (Google Sheets, Gmail, Google Drive, Google Calendar), and each one creates a connection with OAuth: a Google window opens, you choose an account and approve permissions.

What happensWhat to do
Google shows "Make wants access"Tick all the permission boxes โ€” otherwise the module will fail later
Gmail on a private @gmail.com accountSometimes Make requires creating your own Client ID in the Google Cloud Console. The exact instructions are at help.make.com (search for Connecting to Google services using a custom OAuth client)
An organizational Google WorkspaceThe system administrator may need to approve Make as an allowed app
The connection expires after a weekThe Google Cloud project is in Testing mode โ€” move it to Production or renew the connection
๐Ÿ’ก A dedicated accountIn a real organization connect a service account (for example automation@company.com) and not a personal email. When an employee leaves โ€” the automations keep working.

Google Sheets as a database

ModuleWhat it doesBundles
Watch New RowsA polling trigger for new rowsA bundle per new row
Add a RowAdds a row at the end1
Search RowsSearches by a filter (column = value)A bundle per result
Update a RowUpdates by row number1
Delete a RowDeletes by row number1
Bulk Add Rows / Get Range ValuesBatch actions โ€” they save Credits1
Make an API callAny Sheets API action1
โš ๏ธ The header row is the contractMake maps by the column names in the first row (Table contains headers: Yes). Renamed a column? The mapping may break. Added a column in the middle? Open the module and click Refresh.
๐Ÿ’ฐ Bulk saves CreditsAdding 100 rows one by one = 100 Credits. Bulk Add Rows with an Array aggregator = one Credit for the module. We learn aggregators in session 6.

The upsert pattern โ€” without duplicates

Upsert = update or insert. If the lead already exists (by email) โ€” update. Otherwise โ€” add. This is the most important pattern in a CRM.

๐Ÿ›‘ The trap: a search that found nothingIf Search Rows didn't find a row, it outputs 0 bundles โ€” and the scenario simply stops there! The Router after it won't run at all. The fix: in the Search Rows settings (or the module settings โ†’ Advanced) โ€” either Make offers an option to continue even with no results, or you use an Array aggregator after the search (which always outputs one bundle), and check length(array) > 0.
Webhook โ†’ Search Rows (email = {{1.email}}, Limit 1)
        โ†’ Array aggregator  (Source: Search Rows)   โ† always one bundle
        โ†’ Router
            โ”œโ”€ Filter: length(array) > 0  โ†’ Update a Row (Row number = first(array).__ROW_NUMBER__)
            โ””โ”€ Fallback                   โ†’ Add a Row

Gmail โ€” formatted emails

Gmail โ†’ Send an email: To, Subject, Content (HTML), Attachments. There are also Create a draft, Watch emails, Add a label and Reply.

<div style="font-family:Arial,sans-serif;max-width:560px">
  <h2 style="color:#6d00cc">Hi {{1.name}} ๐Ÿ‘‹</h2>
  <p>Thanks for reaching out! We've scheduled a short intro call for you:</p>
  <p style="background:#f2e9ff;padding:12px;border-radius:8px">
     ๐Ÿ“… <b>{{formatDate(addDays(now; 1); "dddd DD/MM [at] 10:00"; "Asia/Jerusalem")}}</b></p>
  <p><a href="{{7.htmlLink}}" style="background:#6d00cc;color:#fff;padding:8px 16px;border-radius:8px;text-decoration:none">Add to calendar</a></p>
  <p style="color:#888;font-size:12px">Sent automatically ยท to unsubscribe reply "remove"</p>
</div>
โš ๏ธ Formatting emailsCSS only inline (not <style>) โ€” Gmail strips some styles. For right-to-left languages put dir="rtl" on the outer div. And don't send hundreds of emails from regular Gmail: there is a daily sending limit, and for mass marketing you move to a dedicated service.

Google Drive and Calendar

Drive

  • Create a Folder โ€” a folder for each client inside a main folder.
  • Copy a File โ€” duplicate a template document (a quote) into the folder.
  • Upload a File โ€” upload a file (binary) that came from Gmail or HTTP.
  • Share a File/Folder โ€” share with the client.
๐Ÿ’ก Filling a templateTo duplicate and fill a document use Google Docs โ†’ Create a Document from a Template: in the document you write {{{{name}}}}, and Make replaces it with values. Excellent for quotes and contracts.

Calendar

  • Create an Event โ€” title, start/end, attendees, Google Meet.
  • Search Events / Watch Events โ€” for checking availability and for reminders.
  • Always state a time zone or a full date with a time zone.

Building together: a Google-based CRM

Step by step:

  1. A CRM sheet with columns: email, name, phone, company, score, status, folder, created, updated.
  2. Webhook (or Tally) โ†’ clean-up + score (from session 3).
  3. An upsert with Search โ†’ Array aggregator โ†’ Router.
  4. For a new client: Drive โ†’ Create a Folder โ†’ Add a Row with a link to the folder.
  5. For leads with score โ‰ฅ 80: Calendar โ†’ Create an Event tomorrow at 10:00 + Gmail โ†’ an HTML email with the link.
  6. History: test a new lead and a returning lead.

Lab: simulations and examples

Three ways to see today's material in action: the scenario canvas runs the session's scenario like Make does (with a Credits count), the race compares manual work with automation, and the function playground shows real mapping examples.

๐Ÿ’ก Why in this order?

An Array aggregator after the Search keeps the scenario going even when nothing is found, and we save to the CRM before the email so no lead is lost.

A real-world case study

"Rhythmos Music School". 4 teachers, 180 students, everything in one sheet that everyone edits. Duplicate registrations, forgotten welcome emails, and trial lessons that never made it into the calendar. A Make scenario: a registration form โ†’ upsert by phone โ†’ a student folder in Drive with a consent form from a template โ†’ a trial lesson in the teacher's calendar by instrument โ†’ an HTML email to the parents. Result: zero duplicates, and about 5 hours a week of the secretary's time freed up.

Frequently asked questions

Sheets or a real database?

Sheets is excellent up to a few thousand rows and a few users. Beyond that โ€” Airtable/Supabase (session 8).

Why doesn't Watch New Rows catch a row I updated?

It catches only new rows. For changes โ€” Watch Changes (requires an add-on) or an updated column and a scheduled check.

Can I send from another address?

In Gmail: if you set up Send mail as in the same account โ€” yes, in the From field. Otherwise โ€” a separate connection.

Does Make see my whole Drive?

It can, according to the permissions. That's why a dedicated account.

Quick understanding check

What now?

You finished the lecture! Go to the practice page โ€” multiple-choice questions and tasks that build A Google-based CRM: form โ†’ Sheets (upsert) โ†’ Gmail HTML โ†’ Drive โ†’ Calendar. Stuck? The help guide breaks every task into steps. Only after you have tried, peek at the full solution.