Gmail
Last updated
Last updated
Add a new Gmail OAuth2 credential
Enter a name for the credential.
Copy the OAuth Redirect URL.
Note that the following fields need to be filled in:
Client ID
Client Secret
Set up the OAuth consent screen if you haven't configured one before.
Go to Credentials, then click + CREATE CREDENTIALS > OAuth client ID.
In the Application type dropdown, select Web application.
Under Authorized redirect URIs, click + ADD URI and paste the OAuth redirect URL copied earlier.
Click Create.
Copy the Client ID and Client Secret:
In Enabled APIs & Services, click + ENABLE APIS AND SERVICES.
Search for and enable the Gmail API.
Return to Credentials, click the newly created credential under OAuth 2.0 Client IDs, and on the detail page, you’ll find the Client ID and Client Secret.
Fill in all the values copied earlier. Then click "Authenticate":
A Google login window will pop up:
Grant the permissions:
Pop up window will be closed automatically and credential will be saved and ready to be used.
Multiple actions can be selected to let the Agent intelligently choose the appropriate one. Parameters can be left empty to allow the Agent to determine the values on its own. However, if the user provides values, those will override the Agent's choices.
Log in to your account.
Navigate to , and select the project you want to use from the dropdown at the top left (or create a new project and select it).
It can also be used as a Tool Node in a determined workflow scenario. For example, retrieving a list of draft messages before proceeding to the next step.
In this mode, Tool Input Arguments must be explicitly defined and filled with values.
Unlike the option, there is no Agent to automatically determine the inputs. The user must manually populate the fields, either by entering fixed values or using variables enclosed in double curly brackets {{ }}
.