Insert Text
Inserts text into 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 insert text into.
- Text - The text content to insert.
- Font Size - The font size for the inserted text.
- Font Name - The font family for the inserted text. Default is "Times New Roman".
Options
- Align - The alignment of the inserted text. Options are:
- Left (START)
- Center (CENTER)
- Right (END)
- Justify (JUSTIFIED)
- Bold - Whether to make the inserted text bold. Default is false.
- Italic - Whether to make the inserted text italic. Default is false.
- Underline - Whether to underline the inserted text. Default is false.
How It Works
The Insert Text node integrates with Google Docs to add text to a document. When executed, the node:
- Validates the provided inputs (Document Id, Text, Font Size, Font Name)
- Connects to the specified Google Docs document
- Inserts the specified text at the end of the document
- Applies the specified formatting options (font, size, alignment, styling)
Requirements
- A valid Google Docs document ID
- Valid Google Docs credentials
- Text content to insert
- Valid font size value
- 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 Text content
- Empty or invalid Font Size
- Google Docs service errors
- Insufficient permissions to modify the document
Usage Notes
- The Document Id can be found in the URL of the Google Docs document
- The text will be added at the end of the current document content
- The Font Name should be a valid Google Docs font family
- The Align option controls how the inserted text is positioned within the document
- Styling options (Bold, Italic, Underline) can be combined