> ## Documentation Index
> Fetch the complete documentation index at: https://docs.get-hive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Files and documents integrations

> Connect Google Drive, OneDrive, SharePoint, Dropbox, Google Docs, Sheets, Word and Excel so Hive can answer from your files and create documents with approval.

Your files hold policies, client records, templates and the history behind every decision.
Connect your file stores and Hive indexes them into its knowledge base — respecting who can see
what — so Ask can answer from them and cite the exact document.

<Note>
  Every change to a file is prepared by Hive and **waits for human approval**.
</Note>

## How file sync works

Google Drive, OneDrive, SharePoint Online and Dropbox sync into Hive's knowledge base:

* The **first run is a full scan**; after that Hive syncs only what changed, on its hourly loop.
* **Permissions come with the files.** Each document keeps its access list, so Ask only answers
  a person from files that person can open.
* **Deleted files are removed.** When a file is deleted at the source, Hive marks it deleted and
  stops using it.

In Ask, choose the **Business Brain** tool and the **Client files** or **Policies & templates**
scope to search your documents. See [Tools and modes](/ask/tools-and-modes).

## Google Drive

**Connect:** OAuth. Files sync into the knowledge base with their permissions.

**Actions with approval:** copy, create a folder, move, rename, trash and restore.

## Google Docs

**Connect:** OAuth. **Hive reads:** document search and content.

**Actions with approval:** create a document, append text, insert text, find and replace.

## Google Sheets

**Connect:** OAuth. **Hive reads:** bounded cell ranges.

**Actions with approval:** create a spreadsheet, add or delete a sheet, append rows, replace or
clear a range.

## Microsoft Word

**Connect:** OAuth. **Hive reads:** document discovery and content.

**Actions with approval:** create a document, append a paragraph.

## Microsoft Excel

**Connect:** OAuth. **Hive reads:** worksheets, ranges and tables.

**Actions with approval:** create a workbook, add or delete a worksheet, append rows, replace or
clear a range.

## OneDrive

**Connect:** OAuth. Files sync into the knowledge base with their permissions.

**Actions with approval:** copy, create a folder, move, rename, recycle and restore.

## SharePoint Online

**Connect:** OAuth. Files in the SharePoint document libraries the connection can reach sync
into the knowledge base with their permissions.

**Actions with approval:** create, update and delete SharePoint list items.

## Dropbox

**Connect:** OAuth. Files sync into the knowledge base with their permissions.

**Actions with approval:** create a folder, move, trash.

## Files you create in Hive

Documents that Hive creates itself — PDFs from a workflow's **Create PDF** step, images from
**Generate image**, and Word, PowerPoint or Excel files from Ask — are saved to your Hive
**Library**. See [Library](/library/library). From Ask's document editor, **Save to drive** can
also put a document into a folder in Google Docs or OneDrive; like every other file change, it
waits for approval.

## Ideas

* "What does our engagement letter template say about fee increases?" — answered from your
  Drive, with the document cited.
* A workflow that appends each new client from a form to a tracking spreadsheet.
* Ask Hive to draft a board summary as a Word document from last quarter's files.

## Related

<CardGroup cols={2}>
  <Card title="Business Brain" icon="brain" href="/brain/business-brain">
    How Hive builds its shared memory.
  </Card>

  <Card title="Data protection" icon="lock" href="/security/data-protection">
    How your data is protected.
  </Card>
</CardGroup>
