Integrations / Google Drive
Google Drive
Most teams already keep their policies, playbooks and templates in Google Drive. Copying those files into another tool by hand means the assistant is out of date the day after someone edits the original. The Google Drive integration removes that step: a team admin connects one Drive folder, and Ragirag keeps the team's knowledge base in step with it.
New files in the folder are indexed, edited files are re-indexed, and files that are deleted or moved out of the folder stop being used in answers. Members keep asking questions in plain language and get answers built from the current version of the documents, with the source files listed underneath.
What is synced
- Every PDF, Word document (DOCX) and plain-text file in the connected folder and in all of its subfolders.
- Google Docs, which are exported as Word documents at sync time, so their headings and lists are kept.
- Folders in My Drive and in shared drives the connected account can read.
- A link back to the original file in Drive, shown next to the document in Ragirag.
What is skipped
- Other Google formats such as Sheets, Slides, Forms and Drawings, and file types Ragirag does not read yet (images, spreadsheets, archives). They are listed as skipped with the reason, so nothing is silently missing.
- Files larger than your plan's file size limit and Google Docs too large for Google to export. Each one appears in the sync history with its reason.
How fresh answers stay
Ragirag checks the folder for changes every 15 minutes, with no action needed from anyone. A team admin can also press Sync now to pick up a change right away, at most once a minute.
When a file is edited, Ragirag replaces the old passages with the new ones before the document is used again, so an answer never mixes two versions of the same file. The document keeps its place in Ragirag: its confidential flag and the people granted access stay as they were.
Permissions Ragirag asks for
- See and download your Google Drive files (drive.readonly). Ragirag needs to list the folder and download its files to index them. The access is read-only: Ragirag never creates, edits, moves or deletes anything in Drive.
- Your email address (openid, email). Shown to team admins so they can see which Google account the folder is connected with.
Who can see what
Drive sharing settings are not copied into Ragirag. Once a folder is connected, every member of the team can ask about every file in it, including files they could not open in Drive. The team is the access boundary.
To restrict a sensitive file, a team admin marks it confidential in Ragirag and grants access to named people. That setting survives later edits of the file in Drive.
Revoking, reconnecting and disconnecting
- The Google refresh token is encrypted with AES-256-GCM before it is stored and is never shown again, not even to admins.
- If access is withdrawn in the Google account settings, the connection shows Access lost. Documents already synced keep answering questions but stop updating until an admin reconnects.
- If the admin who connected the folder leaves the team or is no longer an admin, syncing stops at once and another team admin reconnects it. Nothing is deleted.
- Disconnecting removes every document synced from the folder from Ragirag, including its indexed passages. Nothing changes in Google Drive.
The full data flow, from sync to answer, is on the security page.
Plans
Available on all plans, Free included. Synced files count toward the plan's document limit: a folder that would take your organisation over it is not synced at all, rather than cut off part way, until the folder is smaller or the plan is upgraded. The documents page shows both numbers. See every limit on the pricing page.
Set it up
- Connect Google Drive. A team admin opens the team's Documents page and chooses Connect Google Drive. Ragirag explains that Drive sharing is not mirrored, then opens Google's consent screen.
- Grant read-only access. The admin signs in with the Google account that can see the folder and allows read-only access to Drive.
- Choose the folder. Back in Ragirag, the admin picks one folder with the Google folder picker. The first sync starts right away and its progress shows on the page.
- Ask questions. Members ask questions in the team's chat. Answers cite the synced files, and stay current as the folder changes.
Questions
Can a team connect more than one Drive folder?
Each team connects one folder, including everything in its subfolders. To cover several areas, create one team per area, or keep the documents under one parent folder.
Who can connect or disconnect the folder?
Only team admins. Members and viewers see the connection status and the number of synced documents, but not the Google account, the sync history or the names of skipped files.
Can someone delete a synced document from Ragirag?
Not one by one. Synced documents follow the folder: remove the file in Drive, or move it out of the folder, and it leaves Ragirag at the next sync. Admins can still mark synced documents confidential.
Does Ragirag write anything to my Drive?
No. The access granted is read-only, and Ragirag only lists and downloads the files in the connected folder.
What happens to answers while a file is being re-indexed?
Ragirag removes the file's old passages before indexing the new version, so for that short time the file is left out of answers and the team's other documents are used. An answer never combines passages from the old and the new version.
