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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Google Docs

> Create Google Docs files, read tabs and plain text, and reject or merge stale writes by revision ID.

Use `googleDocs` to create documents; read tabs and plain text; and insert, replace, delete, or format document content through the Google Docs API.

## Create a project brief

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { googleDocs } from "automate.ax/google-docs"

export default automation("Create a project brief", () => {
  onDashboardRun({ title: "Create project brief" })
  const document = googleDocs.createDocument({ title: "Project brief" })
  googleDocs.appendText({
    document: document.documentId,
    text: "Goals\n\n",
  })
})
```

Actions accept a document ID or standard Google Docs URL. Optional write controls prevent conflicting edits: `requiredRevisionId` rejects stale writes, while `targetRevisionId` lets Google merge changes against a recent revision. Choose at most one write control for each update.

Read actions request Google's native `documents.readonly` scope. Create and edit actions request `documents`, so they can access existing documents by ID or URL without a prior per-file grant.

## Exports

```ts theme={null}
import {
  googleDocs,
  googleAccount,
  getGoogleDocsApi,
} from "automate.ax/google-docs"
```

* `googleDocs` contains the packaged Google Docs actions.
* `googleAccount("name")` selects a named Google connection.
* `getGoogleDocsApi` creates the authenticated Google Docs API helper for a custom account-backed action.

## Actions

* [Append text](/reference/integrations/google-docs/actions/append-text)
* [Create document](/reference/integrations/google-docs/actions/create-document)
* [Delete content](/reference/integrations/google-docs/actions/delete-content)
* [Format paragraph](/reference/integrations/google-docs/actions/format-paragraph)
* [Format text](/reference/integrations/google-docs/actions/format-text)
* [Get document](/reference/integrations/google-docs/actions/get-document)
* [Insert image](/reference/integrations/google-docs/actions/insert-image)
* [Insert page break](/reference/integrations/google-docs/actions/insert-page-break)
* [Insert table](/reference/integrations/google-docs/actions/insert-table)
* [Insert text](/reference/integrations/google-docs/actions/insert-text)
* [Replace text](/reference/integrations/google-docs/actions/replace-text)
