Skip to main content

Add Image

Adds an image to a Google Docs document.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Document Id - The ID of the Google Docs document to add an image to.
  • Image URL - The URL of the image to insert into the document.

Options

  • Height - The height of the image in points (PT). If specified, the image will be scaled to this height.
  • Width - The width of the image in points (PT). If specified, the image will be scaled to this width.

How It Works

The Add Image node integrates with Google Docs to insert an image into a document. When executed, the node:

  1. Validates the provided inputs (Document Id, Image URL)
  2. Connects to the specified Google Docs document
  3. Inserts the image from the provided URL at the end of the document
  4. Optionally scales the image to the specified height or width

Requirements

  • A valid Google Docs document ID
  • Valid Google Docs credentials
  • A publicly accessible image URL
  • Valid Google Docs permissions to modify the document

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Document Id
  • Empty or invalid Image URL
  • Google Docs service errors
  • Insufficient permissions to modify the document
  • Invalid height or width values (if specified)

Usage Notes

  • The Document Id can be found in the URL of the Google Docs document
  • The Image URL must be publicly accessible (not behind authentication)
  • If both Height and Width are specified, only Height will be used for scaling
  • If neither Height nor Width is specified, the image will be inserted at its original size
  • The image will be added at the end of the current document content
  • Supported image formats include JPG, PNG, GIF, and other web-friendly formats