google-docs

Workflow Automation S+ rating License: MIT (LICENSE.txt)

The Google Docs API integration solution officially provided by Maton enables document creation, editing and formatting through managed OAuth without the need to build a self-built authentication infrastructure.

Download ZIP → Version:v1.0.5
OpenClaw Claude Code Cursor Codex

Usage instructions

Core usage

This Skill provides users with a complete solution for accessing Google Docs API through Maton gateway. Users need to first register at maton.ai to obtain the API Key through environment variables.MATON_API_KEYConfigure authentication, and then complete Google OAuth authorization in the ctrl.maton.ai console to establish a connection. API calls use standard REST style, and the Base URL ishttps://gateway.maton.ai/google-docs/{native-api-path}}, the gateway automatically proxies requests to Google's official API and injects OAuth tokens.

Core operations include: obtaining document content (GET /v1/documents/{id}), creating new documents (POST /v1/documents), and batch updating (POST /v1/documents/{id}:batchUpdate). Batch update supports rich operations such as inserting text, deleting content, global replacement, inserting tables, updating text styles, inserting page breaks, etc. All requests are executed atomically.

Significant advantages

Managed OAuth simplifies integration: Users do not need to deal with the complicated Google OAuth 2.0 process. Maton unifies managed token refresh and security management, significantly lowering the development threshold.Multiple connection management:Support passMaton-ConnectionSpecify different Google accounts in the header to facilitate multi-tenant scenarios.Native API compatible: Directly transparently transmit Google Docs API, retaining complete functions. Users can refer to Google official documents.Multilingual example: Provide complete code examples in mainstream languages ​​​​such as Python and JavaScript, ready to use.Rate limiting transparent: The speed limit policy of 10 req/sec is clearly marked to facilitate capacity planning.

Potential Disadvantages and Limitations

Vendor lock-in risk: Relying on Maton gateway service, if service interruption or policy change will affect business continuity.Additional network hops: Compared with adding a layer of proxy to directly connect to the Google API, theoretically there is a possibility of increased latency.functional boundary restrictions: Only covers the Google Docs API. If other Google services such as Sheets and Slides are required, additional configuration is required.Index operations are complex: Google Docs API is based on 1-based index positioning. The index will become invalid after the document structure is changed. You need to obtain the document first and then calculate the position.Error message transparent transmission: 4xx/5xx errors directly transparently transmit the Google API original response, and the debugging experience depends on the quality of Google documents.

Suitable target group

rapid prototyping developer: Small teams that need to quickly integrate Google Docs functionality but are unwilling to invest in OAuth development costs.Multiple account management scenarios: Enterprise SaaS products need to represent the scenarios in which different end users operate Google Docs.Automated office users: Operations, marketing, and HR teams who want to batch generate reports, contracts, and other documents through scripts.Low-code integration requirements: Non-professional developers can automate documents through simple HTTP calls.Already have Maton ecosystem users: Existing customers who have used Maton’s other API gateway services.

Risks of use

Risk of API Key leakageMATON_API_KEYAs a unique credential, if hard-coded or log leaks result in unauthorized access.OAuth permission scope: Users need to understand the scope of Google data access authorized to Maton to avoid over-authorization.rate limiting impact: The 10 req/sec limit may constitute a bottleneck for high-frequency batch operations, and backoff retries need to be implemented.Google API changes: Google Docs API version updates may cause behavior changes, please pay attention to the official change log.network dependency: Relying on both Maton gateway and Google service availability, troubleshooting complexity increases.

Safety review

Core usage

This Skill is a managed integration solution for Google Docs API, which calls Google Docs native API through Maton official gateway proxy. Users do not need to handle the OAuth 2.0 authorization process themselves, they only need to configureMATON_API_KEYEnvironment variables can be used to call document creation, content insertion, batch update and other operations through HTTPS.

Key features include:

  • Document management: Create a new document and obtain the document structure
  • Content manipulation: Insert text/table/page break, delete content range, replace text in batches
  • Format control: Update text style (bold, font size, etc.)
  • Connection management:passctrl.maton.aiManage OAuth connections for multiple Google accounts

The calling mode is RESTful API, and all requests passhttps://gateway.maton.ai/google-docs/{native-api-path}Forward, automatically inject OAuth Token. Supports sample code in multiple languages ​​such as Python and JavaScript.

Significant advantages

1. Zero OAuth configuration cost: Maton manages the OAuth life cycle, and users only need one browser authorization
2. Multiple account support: Multiple Google connections can be created viaMaton-ConnectionHeader specification
3. Native API compatibility: Directly transparently transmits the Google Docs API request body, without the cost of learning the abstraction layer
4. Atomic batch operationsbatchUpdateInterface ensures transaction consistency for multiple requests
5. secure transmission: Full link HTTPS/TLS 1.3, API keys are only passed through environment variables

Potential Disadvantages and Limitations

  • rate limit: Maton gateway limit is 10 req/sec. High-frequency scenarios need to implement backoff by themselves.
  • Index complexity: Google Docs uses 1-based character indexing, you need togetDocument calculation position
  • Gateway dependency: Core functions rely on Maton service availability and are not directly connected to Google API
  • Risk of connection failure: OAuth Token may expire, need to monitor the connection status or handle 400 error re-authorization
  • No real-time collaboration events: Only supports active API calls, no Webhook or real-time synchronization capabilities

Suitable for the crowd

  • Developers who need to automatically generate report/contract templates
  • Enterprise IT administrator managing multiple Google Workspace accounts
  • Rapid prototyping developers who want to avoid the complexity of OAuth implementation
  • Technical users who need to integrate document operations into AI Agent workflows

General risks

|Risk type|illustrate|Mitigation measures|
|---------|------|---------|
|Key leak|`MATON_API_KEY` leaks can lead to account abuse|Use environment variables/key management services and rotate them regularly|
|Authorization scope is too large|OAuth may get more Google permissions than needed|Review the OAuth Scope requested by Maton|
|data residue|Google-side documents remain after deleting the connection|Clearly inform users of document ownership|
|Vendor lock-in|Deeply dependent on Maton gateway architecture|Preserve migration path for direct calls to Google APIs|
docsofficeproductivityapiautomation

Copyright and takedown notice: AI Islands curates this page from public information. Skills, code, documents and packages remain the property of their original authors or rights holders. This listing is provided for indexing, research and installation convenience. If you believe any listing or download link infringes your rights, contact ai-islands@streamflowintel.com with proof of ownership, relevant URLs and your request. We will review and remove or adjust the content promptly. Review package permissions, dependencies and safety risks before installing.