
A Google Drive credential can show as connected in n8n without returning Drive information if the service’s API is not enabled. Connecting Google services involves both a Google Cloud project and an authorization process for the account you want to use. Nate Herk’s walkthrough covers the setup for Drive, Gmail and Docs, with the same approach applying to Sheets and other Google nodes. Discover how the project and credentials fit together before testing a connection.
Prepare The Project And Account
TL;DR Key Takeaways :
- Create a Google Cloud project and an OAuth client for n8n.
- Add the Google account as a test user or publish the app.
- Enable each service’s API as well as connecting its credential.
- Test a Drive or Gmail action before relying on the integration.
The setup starts in the Google Drive credential screen in n8n, where Open docs points to the Google Cloud account prerequisite. You will create a project through Google Cloud Console and use it to configure authorization for your Google account. Keep the n8n credential screen available while working in Cloud: it contains the redirect URI needed for the client.
The project’s OAuth consent screen lets you name the app and designate the account that can use it as a test user. Publishing the app is an alternative to adding test users. The client you create supplies a Client ID and Client Secret for n8n, and those details can be reused for another Google credential.
Keep the client details secure for later use. If the Google Cloud pop-up containing them has been closed, you can select the OAuth client ID by name on the Credentials page to retrieve them. You will also need to enable the API for each service you connect.
Create Credentials And Enable Each API
Follow the steps in order, moving between n8n and Google Cloud as needed. The initial Drive connection establishes the client details you can use when setting up the other services.
- In n8n, open Google Drive and choose Create new credential. Click Open docs to find the account prerequisite and the Client ID and Client Secret fields.
- Create or sign in to a Google Cloud account, create a project and give it a name. Once it is created, click Select Project and make sure the correct project is selected.
- In the Google Cloud navigation menu, open APIs & Services and select OAuth consent screen. Choose External as the user type and click Create.
- Name the app and enter a support email and the other required email address. Click Save and Continue; you can fill in additional information, but it is not required for this setup.
- On the scopes screen, click Continue without adding scopes for now.
- Under test users, add the email address of the Google account that should have access to services such as Drive, Docs and email. Click Save and Continue, or publish the app instead of adding test users.
- In APIs & Services, select Credentials, click Create Credentials and choose OAuth client ID. Select Web application and give it a name.
- Copy the OAuth redirect URI from the n8n credential screen into the authorized redirect URI field in Google Cloud. Click Create.
- Copy the Client ID and Client Secret from the Google Cloud pop-up into the corresponding n8n fields. Save the details securely for later credentials.
- Click Sign in with Google in n8n, select the account added as a test user and grant the requested Drive access. Continue until the credential turns green and shows that the account is connected.
- In Google Cloud, go to Enabled APIs & Services and search for Google Drive API. Select it, click Enable and wait until its status shows Enabled.
- Return to n8n and refresh if necessary. Drive information should appear in n8n once the API is enabled.
- For Gmail, create a new credential in n8n and click Sign in with Google. Choose the account registered as a test user, grant the requested permissions and continue until the credential turns green.
- In Google Cloud, find Gmail API under Enabled APIs & Services and click Enable. Once its status is Enabled, you can fill out the Gmail node to send an email.
- For Docs, create a new credential in n8n using the existing Client ID and Client Secret, then sign in when prompted. Find Google Docs API in Google Cloud and click Enable so n8n can access the documents.
- For Sheets, Slides and other Google nodes, connect a credential and enable the corresponding API in the Google Cloud console.
- Create and test workflows using the connected services. Managing Drive files or sending Gmail messages can help verify that the integration works.
Check The Connection Before Relying On It
We think the green credential is a useful sign, but it is not enough on its own to establish that a service is ready. Drive will not return information until its API is enabled, so check the relevant API as well as the account authorization. A small workflow that performs the action you need is a sensible final check before relying on the connection. Keep the client details secure so they are available when you add another Google credential.
For other n8n ideas, you could explore Perplexity AI inside n8n or build an AI Personal Assistant 2.0 with n8n. For each Google service you add, connect its credential and enable its corresponding API before testing the workflow.
Media Credit: Nate Herk
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.