# Google Docs

Use **Google Docs** when you want a workflow step to create a new Google Doc from workflow output.

## Configuration

| Option                                                                                                                                                                                             | Required | Description                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| Name                                                                                                                                                                                               | No       | Label for the step in the workflow canvas.                                                      |
| Integration Authorization                                                                                                                                                                          | Yes      | The connected Google account selected in **Authentication**.                                    |
| Action                                                                                                                                                                                             | Yes      | The Google Docs action. The current editor shows **Create Document**.                           |
| Title                                                                                                                                                                                              | Yes      | Value entered in **Title**.                                                                     |
| Document Text                                                                                                                                                                                      | Yes      | Value entered in **Document Text**.                                                             |
| Permissions                                                                                                                                                                                        | No       | Access level selected in **Permissions**.                                                       |
| 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 in **Integrations** for your workspace. If no active Google Docs connection is available, the step shows a warning with a link to **Integrations**. |          |                                                                                                 |

Use the **Insert Variable** button next to **Title** and **Document Text** if those values should come from start inputs or earlier steps.

The **Document Text** field supports markdown formatting.

## Output

This step stores an object that includes the created Google Doc details, including:

* `document_id`
* `document_url`
* `response`

Use the full output reference in later steps:

```
{{STEP_IDENTIFIER.output}}
```

To reference the created document URL directly, use a path such as:

```
{{step_2.output.document_url}}
```

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

## Example

Open **Integrations** and connect Google if needed.

Add **Google Docs** to your workflow and pick the account in **Authentication**.

Keep **Action** set to **Create Document**.

Fill in **Title** and **Document Text**, inserting workflow variables where needed.

Choose **Permissions** based on how you want to share the document. If you set it to **Public**, anyone with the link can view the document.

Click **Run** to test the step, then open **Output** if you want to pass the created document URL or other response fields to a later step.

## Notes

* The current editor exposes one Google Docs action: **Create Document**.
* **Document Text** supports markdown in the step editor.
* The created document URL is useful when a later step needs to share or store the document link.

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