Google Drive

Create credential in Flowise

  1. Add a new Google Drive OAuth2 credential

  2. Enter a name for the credential.

  3. Copy the OAuth Redirect URL.

  4. Note that the following fields need to be filled in:

    • Client ID

    • Client Secret

Create/Use Google Project

  1. Log in to your Google Cloud account.

  2. Navigate to Google Cloud Console > APIs & Services, and select the project you want to use from the dropdown at the top left (or create a new project and select it).

  3. Set up the OAuth consent screen if you haven't configured one before.

  1. Go to Credentials, then click + CREATE CREDENTIALS > OAuth client ID.

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

  2. Under Authorized redirect URIs, click + ADD URI and paste the OAuth redirect URL copied earlier.

  3. Click Create.

  1. Copy the Client ID and Client Secret:

  1. In Enabled APIs & Services, click + ENABLE APIS AND SERVICES.

  2. Search for and enable the Google Drive API.

  1. 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.

Finish setup in Flowise

  1. Fill in all the values copied earlier. Then click "Authenticate":

  1. A Google login window will pop up:

  1. Grant the permissions:

  1. Pop up window will be closed automatically and credential will be saved and ready to be used.

Use as Agent Tool

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.

Use as Tool Node

It can also be used as a Tool Node in a determined workflow scenario. For example, get a specific spreadsheet before proceeding to the next step. In this mode, Tool Input Arguments must be explicitly defined and filled with values. Unlike the Use as Agent Tool 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 {{ }}.

Example PDF file created in Google Drive from above tool node:

Last updated