Skip to main content
The @guildai-services/guildai~google-docs package gives your agents access to Google Docs documents through Guild’s Google Docs integration.

Authentication

  • Type: OAuth 2.0
  • Token management: Refreshed automatically

Setup

1

Open Credentials

Go to Credentials in Guild.
2

Connect Google Docs

Click Google Docs and authorize with your Google account.

Usage

import { googleDocsTools } from "@guildai-services/guildai~google-docs"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that reads and writes Google Docs",
  tools: { ...googleDocsTools },
})

Selecting specific tools

Tools are named with the google_docs_ prefix. Use pick() to include only what your agent needs.
import { googleDocsTools } from "@guildai-services/guildai~google-docs"
import { llmAgent, pick } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that summarizes documents",
  tools: {
    ...pick(googleDocsTools, [
      "google_docs_documents_get",
      "google_docs_documents_batch_update",
    ]),
  },
})