Ejento AI
Guides
QuickstartRecipesREST APIsRelease NotesFAQs
Guides
QuickstartRecipesREST APIsRelease NotesFAQs
Ejento AI
  1. Guides
  • Basic Operations
    • Features
      • Organization → Projects → Assistants → Teams Hierarchy
    • Guides
      • Login/Signup
  • Assistants
    • Overview
    • Features
      • Assistant Access Control
      • Assistant Evaluation
      • Evaluation Metrics
      • URL-based Chat Thread Creation and Prepopulation
      • Reasoning Patterns
      • Staging & Publishing
    • Guides
      • Add Assistant
      • Evaluate Assistant
      • Edit Assistant
      • Assistant Edit Access
      • Embed Assistant
      • Delete Assistant
      • Add Favourite Assistants
      • View Assistant Id
      • Voice Calling with Assistants
  • Corpus
    • Overview
    • Features
      • Corpus Permissions
      • PII Redaction
      • ETag Setup for Corpus Incremental Refresh
    • Guides
      • Assistant Corpus Setup
      • Assistant Corpus Settings
      • Corpus Access Control
      • Corpus Connections
      • View Corpus Id
      • View Document Id
      • Tagging
        • Corpus tagging
        • Document tagging
  • Teams
    • Overview
    • Guides
      • Add a Team
      • Edit a Team
      • Delete a Team
      • View Team Id
  • Projects
    • Overview
    • Guides
      • Add a Project
      • Edit a Project
      • Managing Assistants in a Project
      • Delete a Project
      • View Project Id
  • User Settings
    • Overview
    • Features
      • Ejento AI User Access Levels
    • Guides
      • Add new user
      • Invite Users via Link or Email
      • View my User Id
  • API Keys
    • Overview
    • Guides
      • How to generate API Key and Auth Token
  • Workflows
    • Overview
    • Features
      • Workflow Access Control
    • Guides
      • Add Workflow
      • Workflow Chat
      • Workflow Edit Access
  • Tools
    • Overview
    • Guides
      • Tools Overview
      • Create External Tool
      • Connect Tool to Assistant
  • Analytics
    • Overview
    • Guides
      • Analyzing Data in the Analytics Dashboard
  • Chatlogs
    • Overview
    • Guides
      • Managing Chatlogs
      • View Chatlog & Chat thread Id
  • Integrations
    • Overview
    • Guides
      • Email Indexing
      • Microsoft Teams
      • Sharepoint Indexing
      • Google Drive Connector
      • MS Teams Integration Setup
      • Creating a Connection in Credential Manager
      • Slack App
      • Discord Bot
  • Ejento AI Shield
    • Overview
    • Features
      • Understanding Guardrails
    • Guides
      • How to enable Guardrails
  • Assistant Security
    • Overview
    • Features
      • Assistant Red Teaming
    • Guides
      • Red Team an Assistant
  • Permission Sets
    • Overview
    • Guides
      • Add Permission Set
  • Usage
    • Overview
    • Guides
      • Set Spend Limits
  1. Guides

Google Drive Connector

Connect a Google Drive folder to a corpus so the files in it are indexed and the assistant can answer from them. With automatic sync on, the corpus stays up to date as files in the folder are added, changed, or deleted.
What you'll set upA Google Drive folder synced as a knowledge source for your assistant
Before you startAn administrator must set up Google sign-in for your organization once (see Part B below)
Time requiredAbout 10 minutes

How the Google Drive connector works#

A corpus is the set of documents an assistant searches to answer questions. See the Corpus Overview.
You connect a folder from the corpus's Add Knowledge Source window, under Sync Content. You paste the folder's URL, choose whether to sync automatically, and sign in with a Google account that can open the folder. Ejento AI then indexes the folder's files into the corpus.
Enable Automatic Sync on: the folder is re-indexed every 30 minutes, picking up new, changed, and deleted files.
Enable Automatic Sync off: the folder is indexed once; click Sync now in the folder's menu whenever you want to update it.

Use cases#

Team handbook in Drive: Connect the shared Drive folder that holds your team handbook, with automatic sync on, so the assistant always answers from the latest version.
Course material: Connect a course's Drive folder to a study assistant so learners can ask questions about the readings.
For SharePoint folders, see SharePoint Indexing.

Part A — Connect a Google Drive folder#

1. Open the corpus and click Add#

Open the corpus you want to add documents to (for an assistant's corpus: Assistants > three dots > View corpora > the corpus), then click Add at the top right.
Step 1 screenshot

2. Choose Google Drive#

In the Add Knowledge Source window, under Sync Content, click Google Drive. The Sync Content from Google Drive window opens and shows No Google Drive folders connected yet until you connect one.
Step 2 screenshot

3. Enter the folder URL and click Connect#

In Google Drive, open the folder you want to sync and copy its URL from the address bar. Paste it into Google Drive Folder URL. The URL must point to a folder, not a single file, for example https://drive.google.com/drive/folders/<FOLDER_ID>.
Turn on Enable Automatic Sync if you want the folder re-indexed every 30 minutes, then click + Connect.
Step 3 screenshot

4. Sign in with Google#

A Google sign-in window opens. Choose the Google account that owns or can open the folder.
Step 4 screenshot

5. Allow access#

Google shows the access Ejento AI is asking for: read access to your Google Drive files. Review it and click Continue. If Google warns that the app is unverified, click Continue again; this is expected while your organization's Google app is still in testing.
Step 5 screenshot
Step 5 continued

6. Check the synced documents#

You return to the corpus. The folder's files appear in the documents list with the status Completed once they're indexed.
Step 6 screenshot
To update or remove a connected folder later, open Google Drive in Add Knowledge Source again. The connected folders are listed with who connected them and how many documents each has. Click the three dots (More actions) next to a folder, then click Sync now to re-index it now, Copy folder ID, or Delete connection. When you delete a connection, choose Remove connection only to keep the uploaded documents in the corpus (they stop syncing), or Remove connection and associated documents to delete them too.
Sync and delete a folder

Part B — Google Cloud OAuth configuration#

An administrator sets this up once per environment, before anyone can sign in with Google in step 4. It creates the Google app that Ejento AI uses to read Drive folders.

B1. Create an OAuth 2.0 client#

Go to Google Cloud Console > Google Auth Platform > Clients and click + Create client. Select Web application as the application type.
Step B1 screenshot

B2. Set the authorized origin and redirect URI#

In the client configuration, add these values:
FieldValue
Authorised JavaScript origins{server-url}
Authorised redirect URIs{server-url}/auth-service/api/v2/mcp-sso/google/callback
To find your server URL, go to API Keys in Organization settings in Ejento AI.
Step B2 screenshot
After saving, copy the Client ID and Client Secret; you need them in step B5.
Client ID and secret

B3. Add the Drive scope#

Go to Data access and add this scope, so the app can read Drive files:
ScopePurpose
https://www.googleapis.com/auth/drive.readonlyRead-only access to files and folder information in Google Drive
Step B3 screenshot

B4. Add test users, or make the app internal#

If the app's publishing status (under Audience) is Testing, only test users you add can sign in. Go to Audience > Test users > + Add users and add everyone who needs access. Testing mode allows at most 100 unique users.
If your organization uses Google Workspace and the project belongs to your Workspace domain, you can click Make internal on the Audience page instead. Everyone in your domain can then sign in, without a test user list or the 100-user limit.
When the app is ready for everyone, click Publish app on the Audience page to remove the testing restrictions.
Step B4 screenshot

B5. Send the credentials to Ejento AI#

Give your Client ID and Client Secret to your account representative. They're needed to finish setting up the integration.
For questions about scopes or app verification, see the Google Identity documentation.
Previous
Sharepoint Indexing
Next
MS Teams Integration Setup