Sử dụng Mô hình ngôn ngữ lớn (LLM) để phát triển trên Google Workspace
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này cung cấp thông tin tổng quan về các phương pháp hay nhất và công cụ được đề xuất để làm việc với Mô hình ngôn ngữ lớn (LLM) nhằm phát triển các giải pháp cho Google Workspace.
Khi phát triển trên Google Workspace, các LLM có thể giúp bạn theo những cách sau:
- Tạo hoặc khắc phục sự cố về mã để gọi các API Google Workspace.
- Xây dựng một giải pháp dựa trên tài liệu mới nhất của Google Workspace dành cho nhà phát triển.
- Truy cập vào các tài nguyên của Google Workspace từ dòng lệnh hoặc môi trường phát triển tích hợp (IDE).
Sử dụng Giao thức bối cảnh mô hình (MCP) cho Google Workspace
Giao thức ngữ cảnh mô hình (MCP) là một giao thức mở được chuẩn hoá, cung cấp ngữ cảnh cho các LLM và tác nhân AI để chúng có thể trả về thông tin chất lượng cao hơn trong các cuộc trò chuyện nhiều lượt.
Google Workspace có một máy chủ MCP cung cấp giản đồ cho một LLM để truy cập và tìm kiếm tài liệu dành cho nhà phát triển. Bạn có thể sử dụng máy chủ này khi đang tạo hoặc sử dụng các tác nhân AI để làm bất kỳ việc nào sau đây:
Để triển khai máy chủ, hãy truy cập vào kho lưu trữ Google Workspace trên GitHub:
Xem Google Workspace MCP Developer Assist trên GitHub
Bạn nên sử dụng các công cụ hỗ trợ mã bằng AI sau đây trong quy trình phát triển Google Workspace:
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[],[],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)"]]