Use Large Language Models (LLMs) to develop on Google Workspace

This page provides an overview of best practices and recommended tools for working with Large Language Models (LLMs) and AI coding assistants to develop solutions for Google Workspace.

When developing on Google Workspace, LLMs and AI agents can help you:

  • Generate or troubleshoot code that calls Google Workspace APIs.
  • Ground prompts in up-to-date Google Workspace developer documentation.
  • Inspect and act on Google Workspace resources from your terminal or integrated development environment (IDE).

Access machine-readable documentation

You can feed clean, token-efficient Google Workspace documentation into LLM prompts, project instruction files (such as AGENTS.md or CLAUDE.md), and AI coding agents:

  • Markdown pages (.md.txt): append .md.txt to any Google Workspace documentation page URL—for example, https://developers.google.com/workspace/chat/overview.md.txt—to retrieve the page in Markdown format. In a browser, you can also click Copy page at the top of a page or open its menu and select View as Markdown. AI coding tools that send the Accept: text/markdown HTTP request header receive Markdown automatically on standard documentation URLs.
  • Product documentation indexes (llms.txt): when building for Google Chat, point your AI assistant or research tool to the curated documentation index at https://developers.google.com/workspace/chat/llms.txt or the single-file reference bundle at https://developers.google.com/workspace/chat/llms-full.txt. For a complete setup walkthrough, see Integrate Chat using AI assistance.

Connect Model Context Protocol (MCP) servers

Use official Google MCP servers to give your AI coding assistant live access to documentation and Google Workspace data:

  • Developer Knowledge MCP server: connects your coding assistant to searchable Google developer documentation (developers.google.com) through https://developerknowledge.googleapis.com/mcp. See Connect to the Developer Knowledge MCP server.
  • Google Workspace MCP servers: let AI applications read and take action on Google Workspace resources across products such as Gmail, Google Drive, Google Docs, Google Calendar, and Chat. See Configure Google Workspace MCP servers.

For terminal-based AI coding assistants and interactive terminals, you can also use the Google Workspace command-line interface (CLI), gwscli, to interact with Google Workspace services with packaged agent skills.

Use AI coding assistants

You can combine machine-readable documentation, MCP servers, and the Google Workspace command-line interface with AI coding tools across Google Workspace and Google Apps Script projects, including: