recipe-create-doc-from-template
Copies a Google Doc template, fills in required content, and shares it with specified individuals to quickly generate standardized documents.
npx skills add googleworkspace/cli --skill recipe-create-doc-from-templateBefore / After Comparison
1 组Every time a new document is created, templates need to be manually copied, content filled in, and shared one by one, a process that is cumbersome and prone to errors. Inconsistent document formats affect team collaboration efficiency.
Automatically copy Google Docs templates, fill in preset content, and share with collaborators with one click. Ensures consistent document formats, significantly saves time, and improves content creation and collaboration efficiency.
Create a Google Doc from a Template
PREREQUISITE: Load the following skills to execute this recipe:
gws-drive,gws-docs
Copy a Google Docs template, fill in content, and share with collaborators.
Steps
- Copy the template:
gws drive files copy --params '{"fileId": "TEMPLATE_DOC_ID"}' --json '{"name": "Project Brief - Q2 Launch"}' - Get the new doc ID from the response
- Add content: `gws docs +write --document-id NEW_DOC_ID --text '## Project: Q2 Launch
Objective
Launch the new feature by end of Q2.'4. Share with team:gws drive permissions create --params '{"fileId": "NEW_DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "team@company.com"}'`
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill