recipe-create-doc-from-template▌
googleworkspace/cli · updated Apr 8, 2026
Template-based Google Doc creation with automated content population and team sharing.
- ›Requires gws-drive and gws-docs skills; uses Google Workspace APIs for file operations and document editing
- ›Workflow: copy a template doc, populate it with structured content via the docs API, then grant collaborator access through drive permissions
- ›Supports markdown-style content insertion and granular permission assignment (writer, editor roles, user/group targeting)
1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Create a Google Doc from a Template</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-drive</code>, <code>gws-docs</code></p>\n</blockquote>\n<p>Copy a Google Docs template, fill in content, and share with collaborators.</p>\n<h2>Steps</h2>\n<ol>\n<li>Copy the template: <code>gws drive files copy --params '{"fileId": "TEMPLATE_DOC_ID"}' --json '{"name": "Project Brief - Q2 Launch"}'</code></li>\n<li>Get the new doc ID from the response</li>\n<li>Add content: gws docs +write --document-id NEW_DOC_ID --text '## Project: Q2 Launch</li>\n</ol>\n<h3>Objective</h3>\n<p>Launch the new feature by end of Q2.'<code>4. Share with team:</code>gws drive permissions create --params '{\"fileId\": \"NEW_DOC_ID\"}' --json '{\"role\": \"writer\", \"type\": \"user\", \"emailAddress\": \"<a href=\"https://github.com/googleworkspace/cli/blob/HEAD/skills/recipe-create-doc-from-template/mailto:team@company.com\" target=\"_blank\" rel=\"ugc nofollow noopener\">team@company.com</a>\"}'</p>"}}]