Skip to Content
AutomationsActionsGoogle Drive & Docs

Google Drive & Docs Actions

Google Docs Document

What it does: Creates or edits a Google Docs document.

Inputs

  • Document name (required) — Name/title for the new document or the existing one you’re editing. Can include variables (e.g. date, contact name).
  • Content (required for create) — The body text or HTML to write. Can use variables. For “edit”, may be append/replace depending on product.
  • Template (optional) — Use an existing Doc as a template; content may replace placeholders or append.
  • Folder (optional) — Google Drive folder ID where to create the document. Omit to use root or default.
  • Share settings (optional) — Who can view/edit (e.g. anyone with link, specific emails). Product-dependent.

Outputs

Document ID and URL so you can link to the doc or use it in later steps (e.g. share by email).

Output schema

  • documentId — Google Docs document ID.
  • url — URL to open the document in the browser.

Google Docs Load Template / Load File / Load Contents

What it does: Loads an existing Google Doc (or template) for use in the workflow—metadata or full content.

Inputs

  • File ID / Template ID (required) — The Google Drive file ID of the Doc (or template) to load. From picker or variable.
  • Range (optional) — For partial load: page range or section (if supported).
  • Format (optional) — Return format: plain text, HTML, or structured content. Affects the content field in the output.

Outputs

File metadata and optionally the document content for use in “Create Doc”, “Replace content”, or AI steps.

Output schema

  • fileId — The document’s Drive file ID.
  • name — Document title.
  • content (if requested) — Document body as plain text or HTML. Use in variables for later steps.

Google Docs Template

What it does: Creates a new document from a Google Docs template with variable substitution (placeholder → value).

Inputs

  • Template ID (required) — Google Drive file ID of the template Doc. Placeholders in the doc are replaced with your variable map.
  • Variables (required) — Map of placeholder name → value (e.g. CompanyName: “Acme”, Date: “2024-01-15”). Keys must match the placeholders in the template; values can be variables from previous steps.

Outputs

The new document’s ID and URL. The new doc is a copy of the template with placeholders filled in.

Output schema

  • documentId — ID of the newly created document.
  • url — URL to open the document.

Google Slide Template

What it does: Creates a new presentation from a Google Slides template (e.g. replace text and/or images in placeholders).

Inputs

  • Template ID (required) — Google Drive file ID of the template Slides file.
  • Replacements (required) — Map of placeholder identifier → replacement. Can be text (for text placeholders) or image URLs/variables (for image placeholders). Structure depends on product (e.g. slide index + shape ID, or named placeholders).

Outputs

The new presentation’s ID and URL.

Output schema

  • presentationId — ID of the newly created presentation.
  • url — URL to open the presentation.

Google Drive – Get File / Get Files From Folder

What it does: Get File retrieves a single file by ID. Get Files From Folder retrieves all files (and optionally subfolders) from a folder.

Inputs

  • Get File: File ID (required) — The Google Drive file ID. From a previous step or picker.
  • Get Files From Folder: Folder ID (required) — The Drive folder ID to list. File Type (optional) — Filter by MIME type (e.g. only PDFs, only Docs). Reduces and focuses the list.

Outputs

File metadata (name, size, links, timestamps) and optionally content or download reference. For folder: list of file objects with the same metadata.

Output schema

  • Get File: fileId, name, mimeType, webUrl, size, createdTime, modifiedTime. content or data (if supported) — reference or inline content for the file body.
  • Get Files From Folder: files (array) — each with fileId, name, mimeType, webUrl, size, createdTime, modifiedTime.

Google Drive – Save File, Upload File

What it does: Saves or uploads content to Google Drive (new file or overwrite).

Inputs

  • File content (required) — The data to save. Usually a variable from a previous step (e.g. generated PDF, HTML, or text). Can be base64 for binary.
  • File name (required) — Name for the file (e.g. “Report.pdf”, “Summary.docx”). Can include variables.
  • Folder ID (optional) — Drive folder where to create the file. Omit to use root or default.
  • MIME type (optional) — MIME type of the file (e.g. application/pdf, text/plain). Inferred from extension if omitted.

Outputs

The new or updated file’s ID and link for sharing or use in later steps.

Output schema

  • fileId — Google Drive file ID of the saved file.
  • webViewLink — URL to open or share the file in the browser.
Last updated on