Overview

Our data connectors make it seamless to bring in data from third-party sources (e.g., Google Drive, SharePoint). They include features such as:
  • Full ingestion and indexing. Data is ingested and indexed through our advanced pipeline, ensuring optimal performance and speed compared to live search.
  • Entitlements Enforcement. Permissions from your upstream data sources are automatically synced and enforced within the Contextual platform. Users without access to a document will not see it in the Datastore or be able to query against it.
  • Automatic and Manual Syncing. Data updates are synced every 3 hours, while permissions are refreshed every hour to maintain freshness. You can also trigger a manual sync at any time to capture changes.
  • Folder-level selection. Only sync folders that you need.
We currently support connectors for Google Drive and Sharepoint, with OneDrive, Box, Dropbox, Confluence, and Salesforce coming soon. The following formats are supported:
  • Google Drive: Google Docs, Google Slides, PDFs, Word Documents, Plain Text Files, PowerPoint Presentations
  • Sharepoint: PDFs, Word Documents, Plain Text Files, PowerPoint Presentations
For any questions or feedback, please contact us at connectors@contextual.ai

Setup Guide

  1. First, navigate to the Datastores tab. Screenshot 2025-09-08 at 4.44.26 PM.png
  2. Click the Create button in the top right. Screenshot 2025-09-08 at 4.43.30 PM.png
  3. Fill up a name for your Datastore and select “Third-Party Connection”. Screenshot 2025-09-08 at 4.51.17 PM.png
  4. Select the data source you want to connect to. If you are using the “On Demand” mode, we recommend that you set up Billing Auto Top-up to ensure seamless ingestion (otherwise, your ingestion may fail halfway if you have insufficient balance). In this tutorial, we will use Google Drive as an example. Screenshot 2025-09-08 at 6.07.52 PM.png
  5. A pop-up will appear with the end user terms. Review it and click Next when done. Screenshot 2025-09-08 at 6.10.30 PM.png
  6. Select your Account Type. We recommend the following:
    1. If you are setting up a personal connection and you DO NOT HAVE admin access on your data source, select Read-only for non admins
    2. If you are setting up a connection for your organization and you HAVE admin access on your data source, select Read-only for admins . For a full list of permissions you need for admin authorization, see here.
    Screenshot 2025-09-08 at 6.10.53 PM.png
  7. Click Open Window to authorize your account. Screenshot 2025-09-08 at 6.21.09 PM.png
  8. Select which account you want to use to authorize the connection. Screenshot 2025-09-08 at 6.21.21 PM.png
  9. Authorize the connection by clicking Continue Screenshot 2025-09-08 at 6.21.30 PM.png
  10. You will see a spinner icon as your permissions get validated. Screenshot 2025-09-08 at 6.21.41 PM.png
  11. You have an option to sync specific folders or sync all your files. We recommend choosing the former, which will bring you to a folder-level picker. Screenshot 2025-09-08 at 6.22.00 PM.png
  12. To select a folder, hover over it and check the box. You can click into a folder to see the files inside. You can only select folders, not files. You can also select multiple folders. Screenshot 2025-09-08 at 6.42.09 PM.png
  13. When you are done with your folder selections, click Confirm in the bottom right corner.
  14. You will see a spinner icon that your account is being set up. Click Next when the set up has completed. Screenshot 2025-09-08 at 6.43.11 PM.png
  15. You will be shown a confirmation page where you can edit your connection if needed (e.g. re-select a new folder). Click Finish when done. Screenshot 2025-09-08 at 6.44.17 PM.png
  16. You are ready for your connector to start syncing! Click Create for the Datastore to be created and for the connection to start. Screenshot 2025-09-08 at 6.45.08 PM.png
  17. You will be redirected to your Datastore where you will see the Initializing status. Depending on the size of data you’re syncing, give around 10 minutes for the sync to begin. Screenshot 2025-09-08 at 6.48.50 PM.png
  18. When the sync has started, you will see a progress bar with information on how many documents are left. The status will change to Processing. Depending on the size of data being synced, it may take up to a few hours. You can use this Datastore as the sync progresses, but you’ll only have access to the documents that’ve been synced. Screenshot 2025-09-08 at 6.52.39 PM.png
  19. When all documents have synced successfully, you will see a green checkmark for the status. Your Datastore is now fully ready for use! Screenshot 2025-09-08 at 6.58.53 PM.png

Using your Connector with Entitlements Enforcement

To use your connected Datastore, simply link it up to an Agent and start querying with it. We will respect the entitlements in the original data source. If the User does not have access to the document in the original data source, there will be two restrictions:
  1. The document will not be used to generate a response to the User’s query.
  2. In the Datastore page, the document will be shown to the User as Private Document. They will only be able to view documents that they have access to. Screenshot 2025-09-08 at 6.56.01 PM.png

Auto and Manual Syncing

You can enable or disable auto-syncing at the top of your Datastore. When enabled, data changes are synced every 3 hours and permission updates every hour. Please note that changes may not appear immediately. This is because we rely on the upstream data source’s API (e.g., SharePoint), and updates are only pulled in once the API reports that changes have occurred. Screenshot 2025-09-08 at 7.01.51 PM.png You can also trigger a manual sync to pull in changes. Screenshot 2025-09-08 at 7.01.55 PM.png There are a few possible options for sync status:
  • Initializing: The sync is setting up for the first time.
  • Processing: The sync is underway.
  • Synced / Green checkmark: The sync has completed successfully.
  • Partially Synced: Some documents failed in the sync. To correct this issue, wait for 10-15 minutes and retrigger a manual sync. The failed documents will be retried.
  • Failed: All documents failed in the sync. Retry with a manual sync after waiting for 10-15 minutes. If it still does not work, please contact us at connectors@contextual.ai