Create Google Chat Spaces from Google Sheets with Apps Script (Google Chat API Setup) Get Code: https://bettersheets.co/snippets/create-chat-space This episode shows how to programmatically create Google Chat spaces from a Google Sheet using Apps Script so you can set up spaces needed for assigning tasks to people in the same Chat space. It walks through adding the Google Chat API as an Apps Script service, adding required OAuth scopes in the manifest, creating and linking a Google Cloud project, setting up the OAuth consent screen, enabling the Google Chat API, configuring the Chat API app, and (optionally) turning on External chat settings in the Admin console for inviting people outside your domain. The script creates a space with display name, type, external user setting, and description, logs created space details back to the Sheet (including the space URI), and adds a custom menu so you can create a space from a selected cell value. 00:00 Assign Tasks in Chat 00:43 Why Spaces Matter 01:28 Apps Script Overview 02:05 Write Space Creation Code 04:07 Add Chat Service Scopes 04:59 Create Cloud Project 06:04 OAuth Consent Setup 07:01 Enable Chat API Admin 08:37 Fix Credentials Config 09:46 Run Test and Verify 10:08 Custom Menu in Sheets 11:24 Capture Space URL 11:53 Wrap Up and Subscribe