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

# Select Document

> Requires user to select a Google Doc via Official Drive file picker

Requires user to select a Google Doc via Official Drive file picker. This grants Markifact access to only the chosen file (not the entire Drive). Use this node first, then pass the output to other Docs nodes.

|                     |                        |
| ------------------- | ---------------------- |
| **App**             | Google Docs            |
| **Operation ID**    | `docs_select_document` |
| **Type**            | Action                 |
| **Connection**      | `drive` (required)     |
| **Credits per run** | Free                   |

## Inputs

| Field      | Type                 | Required | Default | Description                                                                                                                |
| ---------- | -------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
| `document` | string or SelectItem | Yes      | -       | The Google Docs document selected from Google Drive. Can be either a string ID or an object with \{ label, value } format. |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `str`

Returns the document ID.
