Create From Template
AI-generatedSummary
Copy a Google Docs template to create a new document and replace specified placeholders with provided values.
Inputs
- Template Document (required) — Select a Google Docs template from your Drive to base the new document on.
- New Document Name (required) — Set the name for the newly created document.
- Destination Folder ID — Optionally specify the folder ID in Google Drive where the new document should be saved; leave empty to save in the root folder.
- Placeholder Format — Select the placeholder syntax format used in the template, such as {{variable}} or ${variable}.
- Placeholders — Specify a list of placeholders and their replacement values to substitute in the new document.
- Options — Advanced options including whether placeholder matching should be case-sensitive (default is true).
Output shape
a single JSON object containing details of the created document and replacement summary
The output includes success status, new document ID, name, URL, original template ID, destination folder used, number of placeholders provided, and count of replacements made. If no placeholders are provided, no replacements occur. Errors will throw unless 'Continue On Fail' is enabled, which results in error details in output.