StyloDocs
Workflow blocks

Replace Google Doc Contents

Overwrite the entire body of a Google Doc

View as Markdown

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

FieldTypeRequiredDefaultDescription
documentIdtext (supports references)YesID of the Google Doc to operate on. Use a literal ID or <StepName.field> to reference an ID from a previous step.
contenttext (multi-line, supports references)YesThis 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>.

NameTypeDescription
successbooleanWhether write succeeded
errorstringError 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 error output is populated; downstream blocks that reference other outputs may not receive values.

On this page