Google Docs Nexviahub icon

Google Docs Nexviahub

Consume Google Docs API.

Actions3

Document → Update

AI-generated

Summary

Updates a Google Docs document by sending one or more batch actions, such as inserting or replacing text, managing headers and footers, changing tables or bullets, and creating or deleting named ranges. Provide a document ID or URL and choose each action’s object-specific fields; optionally set a revision write control.

Inputs

  • Doc ID or URL (required) — Google Docs document ID or URL.
  • Actions (required) — One or more actions to apply. Text actions insert text at a segment end or index, or replace matching text with optional case sensitivity. Other actions insert page breaks or tables; create or delete headers, footers, named ranges, and paragraph bullets; insert or delete table rows and columns; or delete positioned objects. Fields depend on the selected object and action, and segment IDs are used for header or footer operations.
  • Update Fields — Optional write control with a revision mode and revision ID to control how changes apply to document revisions.
  • Simplify — Defaults to true. When enabled, returns the first reply from the batch update response, or an empty object when that reply is empty.
  • Authentication (required) — Authenticate with OAuth2 or a Google service account. OAuth2 uses the client ID, client secret, and refresh token; service account authentication uses the configured Google API credentials.

Output shape

One n8n item per input item, containing the update response and documentId.

With Simplify enabled, the node returns only the first batch reply (or an empty object if it is empty), with documentId added. With Simplify disabled, it returns the raw batch update response with documentId added.

Links

Discussion