Skip to Content
ExamplesGoogle Drive & SharePoint

πŸ“„ Put your Google Drive or SharePoint to work

Stack β€” Data: Google Drive/Docs or Microsoft 365/SharePoint Β· Tools: their API (OAuth) Β· Trigger: schedule / chat / channel Β· Output: answers, summaries, generated docs

Who it’s for β€” teams whose knowledge lives in Google Drive or SharePoint and who want agents to actually use it β€” read it, answer from it, keep it updated. What it does β€” connects your document store as tools and lets an agent search folders, read and summarize documents, answer questions from them, and write results back β€” so β€œwhat’s in the Q3 folder?” or β€œdraft the weekly summary from these docs” happens without anyone opening Drive.

Build it

  1. Connect the store. Both expose REST APIs β€” connect the Google Drive/Docs API or Microsoft Graph (SharePoint/OneDrive) in APIs β†’ Connect API, or add their SDK (googleapis, @microsoft/microsoft-graph-client) as an SDK tool. Each gives typed tools for list, read, and update.
  2. Authorize once. These use OAuth β€” store the app credentials in the Credentials vault (the gateway/tool reads them at run time); scope them to the folders or sites the agent should see, nothing more.
  3. Create the agent with the job: search the shared drive, read the relevant docs, and answer / summarize / draft β€” and attach the Drive or Graph tools.
  4. Automate the loop β€” run it on a schedule (a Monday digest of new docs), publish it on Slack so people ask in-channel, or have your app invoke it.
  5. Write back β€” the agent can create or update a Google Doc / SharePoint file with its output, so the summary lands where the team already looks.

Make it yours

  • Restrict scope to a single shared drive or site collection; least-privilege via RBAC.
  • Add memory so a research agent compounds what it learns across the document set.
  • Combine with your own API so a doc-summary can trigger a real action.

Uses β€” Enterprise Β· Google Workspace Β· SharePoint Β· Knowledge