Google Docs Custom icon

Google Docs Custom

Interact with Google Docs API with auto-refreshing token

Actions4

Document → Create

AI-generated

Summary

Create a new Google Docs document with a specified title using the Google Docs API.

Inputs

  • authentication — Choose between using OAuth refresh token with auto-refresh or a manual bearer token for authentication.
  • title (required) — Title of the new Google Docs document to create.
  • options.refreshToken — Optionally provide a custom OAuth refresh token to override credentials for authentication (only when using refresh token authentication).

Output shape

a single JSON object representing the created Google Docs document metadata, including its id and other details as returned by the Google Drive API.

Requires a valid Google OAuth credential configured in the node; the created document's metadata is returned immediately after creation; no document content is set at creation stage.

Examples

Example 1: Create a document titled 'Meeting Notes'

Set 'title' to 'Meeting Notes', use default authentication with auto-refresh or manual bearer token, no extra options.

Discussion