Workflow blocks
Google Drive: Read File
Read Google Docs/Sheets or download files and return text
google/drive-read-file — Read Google Docs/Sheets or download files and return text.
Where it appears
The Google Drive: Read File block lives in the Integrations group of the Workflow Builder. Connect the Google integration before adding it.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
fileId | text (supports references) | Yes | — | Google Drive file ID to read. Google Docs/Sheets are exported as text; other file types are downloaded. Use a literal ID or <StepName.field>. |
Inputs and outputs
Inputs are the configurable fields above. The block produces these outputs:
Outputs
Reference an output downstream with <Google Drive: Read File.field>.
| Name | Type | Description |
|---|---|---|
success | boolean | Whether read succeeded |
text | string | File text content |
error | string | Error message if failed |
Example
A minimal configuration for this block:
{
"type": "google/drive-read-file",
"config": {
"fileId": "<PreviousStep.field>"
}
}Limits and failure modes
- Requires a connected Google integration. Calls fail if that integration is disconnected or its authorization has expired.
- Required field (
fileId) must be set, or the block fails validation before it runs. - On failure the
erroroutput is populated; downstream blocks that reference other outputs may not receive values.