使用大语言模型 (LLM) 在 Google Workspace 上进行开发
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页概述了使用大语言模型 (LLM) 为 Google Workspace 开发解决方案的最佳实践和推荐工具。
在 Google Workspace 上进行开发时,LLM 可通过以下方式为您提供帮助:
- 生成或排查用于调用 Google Workspace API 的代码。
- 根据最新的 Google Workspace 开发者文档构建解决方案。
- 通过命令行或集成式开发环境 (IDE) 访问 Google Workspace 资源。
使用适用于 Google Workspace 的 Model Context Protocol (MCP)
Model Context Protocol (MCP) 是一种标准化的开放协议,可为 LLM 和 AI 智能体提供上下文,以便它们在多轮对话中返回更高质量的信息。
Google Workspace 具有一个 MCP 服务器,可为 LLM 提供架构,以便访问和搜索开发者文档。在构建或使用 AI 代理时,您可以使用此服务器来执行以下任何操作:
如需部署服务器,请访问 Google Workspace GitHub 代码库:
在 GitHub 上查看 Google Workspace MCP Developer Assist
建议您将以下 AI 代码辅助工具纳入 Google Workspace 开发工作流:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[],[],null,["# Use Large Language Models (LLMs) to develop on Google Workspace\n\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| Got 5 minutes? Help us improve the Google Workspace documentation by taking a quick [online survey](https://forms.gle/qYR2wnTRueYeQeSi6). |\n\nThis page provides an overview of best practices and recommended tools for\nworking with Large Language Models (LLMs) to develop solutions for\nGoogle Workspace.\n\nWhen developing on Google Workspace, LLMs can help you in the\nfollowing ways:\n\n- Generate or troubleshoot code for calling Google Workspace APIs.\n- Build a solution based on the latest Google Workspace developer documentation.\n- Access Google Workspace resources from the command line or your integrated development environment (IDE).\n\nUse a Model Context Protocol (MCP) for Google Workspace\n-------------------------------------------------------\n\nA [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction)\nis a standardized open protocol that provides context to LLMs and AI agents so that\nthey can return better quality information in multi-turn conversations.\n\nGoogle Workspace has an MCP server that provides a schema for an LLM\nto access and search developer documentation. You can use this server when\nyou're building or using AI agents to do any of the following:\n\n- Retrieve up-to-date information about Google Workspace APIs and services.\n- Build and preview [user interfaces (UIs) that extend Google Workspace applications](/workspace/extend). You can use these UIs to build Google Workspace add-ons, Google Chat apps, Google Drive apps, and more.\n\nTo deploy the server, visit the Google Workspace GitHub repository:\n\n[View Google Workspace MCP Developer Assist on GitHub](https://github.com/googleworkspace/dev-assist)\n\nUse AI code assistants\n----------------------\n\nWe recommend the following AI code assist tools to incorporate into your\nworkflow for Google Workspace development:\n\n- [Google AI Studio](https://ai.google.dev/aistudio): Generate code for\n your Google Workspace solutions, including code for\n [Google Apps Script](/apps-script) projects.\n\n- [Gemini Code Assist](/gemini-code-assist/docs/overview): Lets you use\n LLMs right from your IDE and includes the\n [`@googledocs`](/workspace/docs/api/how-tos/read-docs-gemini-tool) command to\n access Google Docs documents.\n\nRelated topics\n--------------\n\n- [Build with AI for Google Workspace](/workspace/guides/ai-overview)\n- [Extend the Google Workspace UI](/workspace/extend)\n- [Gemini for Google Cloud overview](https://cloud.google.com/gemini/docs/overview)\n- [Read documents while coding with Gemini Code Assist](/workspace/docs/api/how-tos/read-docs-gemini-tool)"]]