Google Docs Template icon

Google Docs Template

Create documents from templates with placeholder replacement

Get Placeholders

AI-generated

Summary

Extract all unique placeholders from a specified Google Docs template document based on a selected placeholder format and case-sensitivity option.

Inputs

  • Template Document (required) — Select a Google Docs template document from your Drive to extract placeholders from.
  • Placeholder Format (required) — Specify the placeholder format used in your document, such as '{{variable}}', '${variable}', '[variable]', '{variable}', or '<>'.
  • Options — Optionally enable or disable case-sensitive matching of placeholders.

Output shape

a single JSON object containing success status, the operation name, the document ID and title, a URL to the document, the chosen placeholder format, a list of unique placeholders found, and their count.

The returned placeholders list is deduplicated. If an error occurs, it will throw unless the node's 'continueOnFail' option is enabled. This operation only reads from the specified template document and does not modify any files.

Examples

Example 1: Extract placeholders from a Google Docs template using the default {{variable}} format with case-sensitive matching.

Set 'Template Document' to a selected Google Docs template in your Drive. Set 'Placeholder Format' to 'doubleBrackets'. Leave 'Match Case' enabled in Options (default). Execute the operation to receive all unique placeholders as strings.

Discussion