mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
| .. | ||
| README.md | ||
| using-oauth-calendar.gif | ||
| using-service-account.gif | ||
You can find information about the operations supported by the Google node on the integrations page. You can also browse the source code of the node on GitHub.
Prerequisites
Create a Google Cloud account and access the console.
Google Calendar
Using OAuth
- Access your Google cloud console.
- Click on the hamburger menu on the top left.
- Click on API & Services.
- Click on Credentials.
- Click on Create Credentials.
- Select OAuth client ID.
- Select 'Web application' as the Application type.
- Click on the Add URL button under the 'Authorized redirect URIs' section.
- Copy your OAuth Callback URL from the 'Create New Credentials screen' in n8n and paste it there.
- Click on the Create button in the Google cloud console.
- Use provided Client Secret and Client ID with your Google node credentials in n8n.
- While still in n8n, click on the Connect button in the OAuth section, and once the connection is complete, click on the Create button.
- Now, go back to the Google cloud console and click on Library in the menu on the left.
- Search for 'Calendar', and click on 'Google Calendar API'.
- Click on the Enable button.
Google Drive / Sheets API
Using OAuth
- Access your Google cloud console.
- Click on the hamburger menu button on the top left.
- Click on API & Services.
- Click on Credentials.
- Click on Create Credentials.
- Select OAuth client ID.
- Select Web application in the 'Application type' section.
- Click on Add URI in the 'Authorized redirect URIs' section.
- Copy your OAuth Callback URL from the 'Create New Credentials' screen in n8n and paste it in your Google cloud console.
- Click on Create in your Google cloud console.
- Copy the provided Client ID and Client Secret and paste them in the 'Create New Credentials' screen in n8n.
- Click on the Connect OAuth Credentials button in the 'OAuth' section in n8n.
- If a popup alert shows 'This app isn't verified', click on Advanced and then click on Go to [project].
- Click on Allow for every permission request and finally on Allow at the confirmation screen.
- Once the credential has connected, click on Create in the 'Create New Credentials' screen in n8n.
- Return to your Google cloud console and click on Library in the menu on the left.
- Search for 'Sheets', and click on Google Sheets API.
- Click on the Enable button.
Using Service Account
- Access your Google dashboard.
- Click on your user icon on the top left.
- Click on API & Services.
- Click on Credentials.
- Click on Create Credentials.
- Click on Service Account.
- Choose your preferences.
- Fill out information for your service account.
- You will receive a .json file with your credentials.
It will appear something like this in a text editor:
- Use the values of client_email and private_key for your Google Credentials in the n8n node.
- Before entering the private_key in n8n, make sure that you replace all the
\nwith new lines.


