Session 5 of 15
Integrating Google Workspace โ Sheets, Gmail, Drive and Calendar
Making Google the base of a business system: a sheet as a CRM with an upsert, HTML emails, automatic folders and documents in Drive, and meetings in Calendar.
โฑ๏ธ 3 hours๐ ๏ธ A Google-based CRM: form โ Sheets (upsert) โ Gmail HTML โ Drive โ Calendar
๐ฏ Session goals
- Connect a Google account to Make and understand OAuth permissions (and what to do when a Client ID is required).
- Work with Google Sheets: Add, Search, Update, Watch rows and Bulk.
- Implement the upsert pattern (search โ update or add) to prevent duplicates.
- Send HTML-formatted emails with Gmail.
- Create folders and copy template documents in Google Drive.
- Create events in Google Calendar with attendees.
- Connect it all into a Google-based CRM that receives leads from the form.
๐งช Today's scenario โ a live run
๐๏ธ The agenda
- 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
Connecting Google
- An app + a connection for each Google service
- Tick all the permissions
- Private Gmail may require a Client ID
- A service account for the organization
Google Sheets as a database
- Watch / Add / Search / Update / Delete
- Search returns a bundle per result
- The header row = a contract
- Bulk = fewer Credits
The upsert pattern โ without duplicates
- Upsert = update or insert
- Search Rows by email
- 0 results = the scenario stops!
- Array aggregator + length > 0
Gmail โ formatted emails
- Send an email / Draft / Watch / Label
- HTML with inline CSS
- Mapping fields inside HTML
- A daily sending limit
Google Drive and Calendar
- Drive: Folder, Copy, Upload, Share
- Docs: Create from a template
- Calendar: Create an Event with attendees
- Time zone in events
Building together: a Google-based CRM
- Form โ upsert in Sheets
- New client โ a folder in Drive
- Hot lead โ Calendar + Gmail HTML
- Test: new and returning
โ๏ธ Understanding check
๐ To sum up
- 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.
๐๏ธ Time to practice!
The session project: A Google-based CRM: form โ Sheets (upsert) โ Gmail HTML โ Drive โ Calendar