In one sentence
Students build a Google-based CRM with an upsert, an HTML email, Drive folders and Calendar meetings.
Preparation before the session
Time plan
- 00:00โ00:15 Review: the leads API
- 00:15โ00:35 Connecting Google: OAuth and permissions
- 00:35โ01:15 Google Sheets in depth + upsert
- 01:15โ01:30 โ Break
- 01:30โ01:55 Gmail: HTML emails
- 01:55โ02:15 Drive and Calendar
- 02:15โ02:50 Building together: a Google-based CRM
- 02:50โ03:00 Summary and practice
Lecture parts and activity type
| Part | Activity type |
|---|---|
| Connecting Google | Demo |
| Google Sheets as a database | Explanation |
| The upsert pattern โ without duplicates | Building together |
| Gmail โ formatted emails | Demo |
| Google Drive and Calendar | Demo |
| Building together: a Google-based CRM | Building together |
The 3 messages that must get across
- A search that found nothing = 0 bundles.
- An upsert in every CRM.
- A service account for connections.
Questions for class discussion
- Where in your organization is there a "sheet everyone edits"?
- When is Sheets no longer enough?
- What's the risk in connecting Drive with full permission?
Live demo script
Connect Google and build a CRM sheet
- Sheet โ Create a sheet and write the headers in row 1.
- Connection โ Google Sheets โ Add a Row โ Add connection โ Sign in โ tick everything.
- Add โ Spreadsheet: Course CRM, Sheet: Sheet1, Table contains headers: Yes โ fill in the fields โ Run once.
- Search โ Search Rows โ Filter: email = ronit@acme.co.il โ Run once โ in the bubble: Row number.
An upsert that doesn't break
- Input โ Set multiple variables with a lead (or a webhook from session 4).
- Search โ Google Sheets โ Search Rows, filter email, Limit 1.
- Aggregator โ Flow Control โ Array aggregator, Source module: Search Rows, fields: Row number, email.
- Router โ Route 1 filter length > 0 โ Update a Row; route 2 fallback โ Add a Row.
- Test โ Run once twice with the same email, and once with a new email.
An HTML welcome email
- Module โ On the new route: Gmail โ Send an email โ connection.
- Fields โ To: {{email}}, Subject: Welcome {{name}} ๐.
- HTML โ Paste the template from the lecture and map the fields.
- Test โ Run once with your own email.
Problems students will run into
| Problem | Quick fix |
|---|---|
| Access blocked / This app is blocked | A Workspace account with a policy โ an admin needs to approve, or use a private account. |
| The columns don't appear | Table contains headers: No โ change to Yes and Refresh. |
| The scenario stops after Search | You forgot the aggregator. |
| Update updates the wrong row | Row number is mapped from the wrong place โ check in the bubble. |
| Still duplicates | Spaces/capital letters in the email โ lower(trim()) both in the search and when saving. |
| The layout is broken | A <style> block was stripped โ use inline CSS. |
| Insufficient permission | The send permission wasn't approved in the connection โ Reauthorize. |
| The meeting is at 12:00 | The time zone wasn't stated. |
| Folder not found | The parent folder was chosen from another account. |
Tips from the classroom
- The Gmail connection is the main sticking point โ prepare the instructions in advance.
- Demonstrate on purpose an empty search that stops the scenario.
- Have every student test "the same email twice".
Adapting to different levels
For students who struggle: Sheets only, without Drive/Calendar.
For fast students: Template + PDF + the availability challenge.
Answer key โ multiple-choice questions
Students see the answers in shuffled order, so the key gives the wording of the right answer.
| # | Right answer |
|---|---|
| 1 | The names in the first row (headers) |
| 2 | An Array aggregator after the search and a length check |
| 3 | Bulk Add Rows |
| 4 | Create an OAuth client in Google Cloud per Make's instructions |
| 5 | Docs โ Create a Document from a Template |
| 6 | Gmail removes some style tags |
| 7 | A dedicated service account |
| 8 | The time zone / a full date |
Homework
- A full CRM with 3 test leads.
- Preparing for session 6: create an
Invoicessheet with 10 rows: client, email, amount, due (DD/MM/YYYY), paid (yes/no).