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

# Google Docs

> Configure a workflow step that creates, copies, searches, and updates Google Docs using a connected account

Use **Google Docs** when you want a workflow step to create a document, copy an existing file, search documents, or insert text in a connected account.

## Configuration

| Option | Required | Description |
| - | - | - |
| Name | No | Label for the step in the workflow canvas. |
| Authentication | Yes | The connected Google Docs account to use for this step. |
| Action | Yes | The Google Docs action to perform (for example Create Document, Search Documents, Insert Text). |
| Arguments | Yes | Per-action form fields generated from the action's schema. Each text field has an **Insert Variable** button for injecting `{{placeholder}}` values. A **Raw JSON** tab is available for advanced usage. |
| When the step fails | No | Controls whether the workflow should **Terminate Workflow** or **Continue** if this step fails. |

Before you configure this step, connect Google Docs in **Integrations** for your workspace using the OAuth flow. If no active connection is available, the step shows a warning with a link to **Integrations** instead of the account selector.

## Arguments form

When you select an action, the **Arguments** section automatically renders a form driven by the action's input schema. Each field includes:

* A label and description from the action's schema.
* An **Insert Variable** button next to eligible fields that injects references like `{{step_1.output.id}}` at the cursor position.
* Validation feedback inline if a required field is left empty.

Switch to the **Raw JSON** tab for power users or when you prefer to write the full arguments object by hand. Changes in either tab stay in sync.

## Common actions

| Action | Description |
| - | - |
| Create Document | Create a new document with a title and text. |
| Create Document from Markdown | Create a document from markdown content. |
| Copy Document | Duplicate an existing document. |
| Search Documents | Find documents in the connected account. |
| Get Document | Retrieve a document by ID. |
| Insert Text | Insert text into an existing document. |

Destructive actions such as deleting content ranges, headers, or tables are not exposed in the workflow action picker.

## Output

This step stores the Google Docs API response as the step output. The shape of the response depends on the action.

Use the full output reference in later steps:

```text theme={null}
{{STEP_IDENTIFIER.output}}
```

For example, after a **Create Document** step you might reference the returned document ID:

```text theme={null}
{{step_2.output.documentId}}
```

Use the variable picker after a test run to confirm the exact keys available in your workflow.

## Example

1. Open **Integrations** and connect Google Docs if you have not already done that.
2. Add a **Google Docs** step to your workflow.
3. Select a connected account in **Authentication**.
4. Choose **Create Document** in **Action**.
5. In the **Arguments** form, fill in the title and text. Use **Insert Variable** to reference an earlier step's output for any field value.
6. Click **Run** in the step header to test the action, then review the returned payload in **Output**.

## Notes

* This step depends on a connected Google Docs integration in your workspace.
* The workflow action picker shows a curated subset of document actions. Agents with the Google Docs tool can access additional safe actions.
* OAuth may show third-party authorization branding during the connect flow.
* If a previous connection stops working, reconnect Google Docs in **Integrations**, then select the new account in **Authentication**.

## Using Google Docs as an Agent Tool

You can also add Google Docs as a tool in the **Agent Editor**. Open the agent, click **Add tool**, and select **Google Docs**. In the tool settings panel, choose the connected account the agent should use. The agent will call Google Docs actions automatically during conversations when relevant.

See also: [Integrations](https://docs.fetchhive.com/workspace/integrations.md), [Creating and Editing](https://docs.fetchhive.com/workflows/creating-and-editing.md), and [Testing and Iteration](https://docs.fetchhive.com/workflows/testing-and-iteration.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.