The bottom line (TL;DR)
- 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.
The key points โ in depth
1. Connecting Google
OAuth, all the permissions, sometimes a Client ID, a service account.
2. Sheets
Headers are the contract; Search returns a bundle per result; Bulk saves.
3. Upsert
Search โ Array aggregator โ Router โ Update/Add.
4. Gmail
HTML with inline CSS, sending limits.
5. Drive and Docs
Folder, Copy, Upload, Create from a template.
6. Calendar
Create an Event with a time zone and attendees.
Concept cards (click or press Enter to flip)
Upsert
Update if it exists, add if not.
Search Rows
Searches rows and outputs a bundle per result.
Row number
The row number โ needed for updating and deleting.
Array aggregator
Combines bundles into one array โ always outputs a bundle.
Bulk Add Rows
Adding many rows in one action.
Create from Template
Filling a Docs document with values.
Attendees
Guests invited to a calendar event.
OAuth Client ID
App details in Google Cloud for a custom connection.
Spaced repetition โ the session concepts
Mark "I knew it" or "Not yet" โ the cards you did not know come back more often. Cards from all the sessions are in the arcade.
Quick cheat sheet
| What | Details |
|---|---|
| Sheets โ Search Rows (Limit 1) | Search by email |
| Flow Control โ Array aggregator | Always one bundle |
{{length(3.array) > 0}} | Was it found |
{{first(3.array).__ROW_NUMBER__}} | The row number for updating |
| Gmail โ Send an email (HTML) | A formatted email |
| Inline CSS | Formatting that survives Gmail |
| Drive โ Create a Folder ยท webViewLink | A folder + a link |
| Calendar โ Create an Event ยท time zone | A meeting |
Common mistakes to avoid
- A search without an aggregator โ new clients are never added.
- Renaming a column in the sheet without updating the modules.
- An email with a <style> block that Gmail strips.
- A meeting without a time zone.
- A Google connection from a personal account in an organization.
Self-review questions
- Why does a Search Rows that found nothing stop the scenario?
- How do you prevent duplicates of the same email with different capitalization?
- What's the advantage of Bulk Add Rows?
- How do you fill a template document?
- What's the difference between Copy a File and Create from a Template?
Homework and preparing for the next session
- 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).