gws-docs
Read and write Google Docs.
Why use this skill?
Learn how to use the gws-docs skill to automate Google Docs creation, reading, and batch updates directly within your OpenClaw agent workflow.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/googleworkspace-bot/gws-docsWhat This Skill Does
The gws-docs skill provides a powerful interface for interacting with Google Docs directly from your OpenClaw environment. It acts as an automated bridge to the Google Docs API, enabling agents to create, retrieve, and modify document content programmatically. Whether you are generating reports, maintaining logs, or updating collaborative documentation, this skill simplifies the process of document management without requiring manual browser interaction.
Installation
To integrate this skill into your environment, use the following command:
clawhub install openclaw/skills/skills/googleworkspace-bot/gws-docs
Ensure you have reviewed ../gws-shared/SKILL.md for necessary authentication configurations. If the shared configuration is missing, execute gws generate-skills to initialize the directory structure. Always verify your permissions within the Google Cloud console to ensure the service account or user token has the appropriate scopes for Google Drive and Docs.
Use Cases
This skill is ideal for tasks requiring structured document generation and data persistence. Common use cases include:
- Automated Reporting: Generate daily summary documents by pulling data from other skills and writing it into a formatted Google Doc.
- Content Management: Create templates for meeting notes or project briefs and auto-populating them with specific metadata.
- Batch Updates: Use the
batchUpdatemethod to perform complex formatting, such as finding and replacing text or inserting new sections across multiple documents. - Documentation Synchronization: Periodically sync technical documentation or changelogs to a shared workspace, ensuring team members have the latest information without manual copy-pasting.
Example Prompts
- "Create a new Google Doc titled 'Project Alpha Weekly Brief' and share the ID with me."
- "Get the content of the document with ID '1abc-123' and summarize the key action items for me."
- "Append a new section to my 'Q4 Strategy' document detailing the latest performance metrics retrieved from the database."
Tips & Limitations
- Safety First: Always use
gws schema docs.<resource>.<method>to check parameter structures before executing requests. - Atomicity: The
batchUpdatemethod is atomic. If a single request within the batch fails, the entire operation is rolled back. Use this to ensure your documents do not end up in a corrupted state. - API Limits: Be mindful of Google API rate limits. For large-scale updates, consider batching requests to optimize performance.
- Read-Only Mode: If you are only retrieving information, prefer the
getmethod to minimize the risk of accidental document alteration.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-googleworkspace-bot-gws-docs": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, file-read, file-write
Related Skills
gws-workflow-standup-report
Google Workflow: Today's meetings + open tasks as a standup summary.
gws-modelarmor-create-template
Google Model Armor: Create a new Model Armor template.
recipe-create-feedback-form
Create a Google Form for feedback and share it via Gmail.
gws-admin-reports
Google Workspace Admin SDK: Audit logs and usage reports.
gws-chat
Google Chat: Manage Chat spaces and messages.