Set up Google Settings
Google Settings holds the credentials that ERPNext uses to talk to Google. Set it up once before you use any Google integration.
| Integration | Credential | Google API to enable |
|---|---|---|
| Google Calendar | OAuth client ID | Calendar API |
| Google Contacts | OAuth client ID | People API |
| Google indexing (in Website Settings) | OAuth client ID | Indexing API |
| Google Drive backups | OAuth client ID | Drive API |
| Google Maps for Delivery Trip | API key | Directions API |
INFO
Google Settings, Google Calendar, and Google Contacts are part of the Frappe Framework. Google Drive backups need the offsite_backups app.
Prerequisites
- The System Manager role.
- A Google Cloud project. Create one in the Google Cloud console.
Create OAuth credentials
Do this for Google Calendar, Google Contacts, Google Drive, and Google indexing.
- In the Google Cloud console, open APIs & Services > Library. Enable the API for each integration that you plan to use (see the table above).
- Open APIs & Services > Credentials, and create an OAuth client ID.
- In Application type, select Web application.
- In Authorized JavaScript origins, add
https://<your-site>. - In Authorized redirect URIs, add both URIs:
- For Google Calendar:
https://<your-site>?cmd=frappe.integrations.doctype.google_calendar.google_calendar.google_callback - For the other services:
https://<your-site>/api/method/frappe.integrations.google_oauth.callback
- For Google Calendar:
- Copy the client ID and the client secret.

Create an API key
Do this only for Google Maps. Other features do not need an API key.
- In the Google Cloud console, enable the Directions API.
- In APIs & Services > Credentials, create an API key.
- Copy the key.
Enter the credentials in ERPNext
- Open Google Settings.
- Select Enable.
- Enter the Client ID and Client Secret.
- If you use Google Maps, enter the API Key.
- Save.