Workflow blocks
Replace Google Doc Contents
Overwrite the entire body of a Google Doc
google/docs-replace — Overwrite the entire body of a Google Doc.
Where it appears
The Replace Google Doc Contents block lives in the Integrations group of the Workflow Builder. Connect the Google integration before adding it.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
documentId | text (supports references) | Yes | — | ID of the Google Doc to operate on. Use a literal ID or <StepName.field> to reference an ID from a previous step. |
content | text (multi-line, supports references) | Yes | — | This deletes the existing document body and writes this content in its place. Use Append to Google Doc if you just want to add content. |
Inputs and outputs
Inputs are the configurable fields above. The block produces these outputs:
Outputs
Reference an output downstream with <Replace Google Doc Contents.field>.
| Name | Type | Description |
|---|---|---|
success | boolean | Whether write succeeded |
error | string | Error message if failed |
Example
A minimal configuration for this block:
{
"type": "google/docs-replace",
"config": {
"documentId": "<PreviousStep.field>",
"content": "<PreviousStep.field>"
}
}Limits and failure modes
- Requires a connected Google integration. Calls fail if that integration is disconnected or its authorization has expired.
- Required fields (
documentId,content) 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.