XYZ User Guide
  • Getting Started with NetMind XYZ – User Guide Video
  • Account Registration/Login
    • Wallet Registration
    • Email Registration
    • Other Third-Party Logins
  • Create Agent
    • How to choose the AI ​​models of the Agent
  • Public Agent and IAO
    • XYZ Gameplay Process
    • DAO
  • Convert to Public Agent
    • Public Non-Token Agent converted to Public Agent and IAO
    • Private Agent (Converted to Public agent and IAO)
    • Private Agent (Converted to Public non-token agent)
  • Register Agents from other platforms into the XYZ Agent Society
    • Example
  • Task
    • Creating via Agent
    • User Manual Task Creation
  • My Panel
  • Knowledge
  • How to Create Credentials
    • X (formerly Twitter) Credentials
    • Telegram Credentials
    • Marketstack Credentials
    • Discord Credentials
    • Google Credentials(Google calendar and Gmail)
    • WhatsApp Trigger Credentials
    • WhatsApp Credentials
  • How to Bind Wallet
  • API Documentation Template (For Creators)
Powered by GitBook
On this page
  • Prerequisites
  • Set up OAuth
  • Scopes
  1. How to Create Credentials

Google Credentials(Google calendar and Gmail)

PreviousDiscord CredentialsNextWhatsApp Trigger Credentials

Last updated 1 month ago

Prerequisites

  • Create a account.

Set up OAuth

There are five steps to connecting your credential to Google services:

  1. .

  2. .

  3. .

  4. .

  5. .

Create a Google Cloud Console project

First, create a Google Cloud Console project. If you already have a project, jump to the next section:

  1. Log in to your using your Google credentials.

  2. In the top menu, select the project dropdown in the top navigation and select New project or go directly to the page.

  3. Enter a Project name and select the Location for your project.

  4. Select Create.

  5. Check the top navigation and make sure the project dropdown has your project selected. If not, select the project you just created.

Enable APIs

With your project created, enable the APIs you'll need access to:

  1. Go to APIs & Services > Library.

  2. Search for and select the API(s) you want to enable. For example, for the Gmail node, search for and enable the Gmail API.

  3. Some integrations require other APIs or require you to request access:

    Google Drive API required

    The following integrations require the Google Drive API, as well as their own API:

    • Google Docs

    • Google Sheets

    • Google Slides

    Google Vertex AI API

  4. Select ENABLE.

Configure your OAuth consent screen

  1. Open the left navigation menu and go to APIs & Services > OAuth consent screen.

  2. Select Create.

  3. Enter the essential information:

    • App name

    • User support email

    • Email addresses field in Developer contact information

  4. In the Authorized domains section, add the domain of your instance.

  5. You don't need to set any scopes. Select SAVE AND CONTINUE again to go to the Summary page.

  6. On the Summary page, review the information for accuracy.

Create your Google OAuth client credentials

Next, create the OAuth client credentials in Google:

  1. In the APIs & Services section, select Credentials.

  2. Select + CREATE CREDENTIALS > OAuth client ID.

  3. In the Application type dropdown, select Web application.

  4. Google automatically generates a Name. Update the Name to something you'll recognize in your console.

  5. From your credential, copy the OAuth Redirect URL. Paste it into the Authorized redirect URIs in Google Console.

  6. Select CREATE.

Finish your credential

With the Google project and credentials fully configured, finish the credential:

  1. From Google's OAuth client created modal, copy the Client ID. Enter this in your credential.

  2. From the same Google modal, copy the Client Secret. Enter this in your credential.

  3. You must provide the scopes for this credential. Enter multiple scopes in a space-separated list, for example: https://www.googleapis.com/auth/gmail.labels https://www.googleapis.com/auth/gmail.addons.current.action.compose

  4. In XYZ, select Sign in with Google to complete your Google authentication.

  5. Save your new credentials.

Scopes

Access your . Make sure you're in the correct project.

Google Perspective: .

Google Ads: Get a .

In addition to the Vertex AI API you will also need to enable the .

If you haven't used OAuth in your Google Cloud project before, you'll need to :

Access your . Make sure you're in the correct project.

For User Type, select Internal for user access within your organization's Google workspace or External for any user with a Google account. Refer to Google's for more information on user types.

Select SAVE AND CONTINUE to go to the page.

Google services have one or more possible access scopes. A scope limits what a user can do. Refer to for a list of scopes for all services.

Google Cloud Console - Library
Request API Access
Developer Token
Cloud Resource Manager API
configure the OAuth consent screen
Google Cloud Console - Library
User type documentation
OAuth 2.0 Scopes for Google APIs
Google Cloud
Google Cloud Console
New Project
Create a Google Cloud Console project
Enable APIs
Configure your OAuth consent screen
Create your Google OAuth client credentials
Finish your credential
Scopes