Before a single Google automation works in n8n, your agent needs permission to talk to Google. This is the one-time setup that unlocks all of it. Do it once and you reuse the same credential across everything you build after.
Here is the whole thing, start to finish:
1. Create a clean Google Cloud project just for your automations.
2. Enable the Google APIs your agents actually use: Gmail, Calendar, Docs, Sheets, Drive.
3. Configure the OAuth consent screen.
4. Create an OAuth client (web application) and add the redirect URI from your own n8n instance.
5. Copy your Client ID and Secret, and download the JSON.
6. Add the scopes for the services you want, then add yourself as a test user so the login actually works.
7. Connect it all as a reusable Google credential in n8n, and test it.
The video walks through every step on screen, so follow along with your own console open in another tab.
One habit to build early: never keep your Client ID and Secret in plain text. Download the JSON, store it somewhere encrypted, and remember you can spin up a fresh OAuth client any time. Losing a key is not a crisis. VaultWarden is a great opensource password manager and vault.
Why this one is first: it is the prerequisite for the builds coming next, including the email assistant workflow. Get it set up once and every Google automation after this just works.
Follow along:
- Watch the video above.
Work through it, then drop a comment telling us what you connected first. Stuck on a step? Post your operating system and where you got stuck and we will walk you through it.
Welcome to The Agent Lab. Let's build.