Automate & extend Google Workspace with simple code.

Apps Script is a cloud-based JavaScript platform powered by Google Drive that lets you integrate with and automate tasks across Google products.

Develop high quality solutions with ease

Automations

Write code that programmatically performs tasks across Google products. Automations are set in motion by custom menus, buttons, user actions, or a time-based schedule.

Custom functions

Write Google Sheets functions in Apps Script and call them from your spreadsheet just like built-in functions.

Add-ons

Build an app that automates tasks or connects to third-party services from within Google Workspace. Share your solution with others on the Google Workspace Marketplace.

Chat apps

Provide a conversational interface that lets Google Chat users interact with services as if the service were a person.

Power your scripts with AI

Discover and try Apps Script samples that help you get started with building AI features using AI models, agents, platforms, and more.

Vertex AI quickstart

Apps Script's Vertex AI advanced service lets you access and use generative AI models on the Google Cloud Vertex AI platform.

ADK agent quickstart

Build an agentic Google Chat app using Agent Development Kit (ADK) and Vertex AI Agent Engine.

A2A agent quickstart

Build an agentic Google Chat app using Agent2Agent (A2A) and Vertex AI Agent Engine.

Gmail message analyzer

Build an add-on that analyzes and labels Gmail messages with Gemini and Vertex AI.

Travel Concierge agent

Build an AI agent add-on that integrates with ADK and Vertex AI Agent Engine.

Fact-checker custom function

Build a custom function powered by a Vertex AI agent and Gemini model.

ADK agent quickstart

Build an agentic Google Chat app using Agent Development Kit (ADK) and Vertex AI Agent Engine.

A2A agent quickstart

Build an agentic Google Chat app using Agent2Agent (A2A) and Vertex AI Agent Engine.

A2UI agent quickstart

Build an agentic Google Chat app using Agent2UI (A2UI) and Vertex AI Agent Engine.

Vertex AI service

Apps Script's Vertex AI advanced service lets you access and use generative AI models on the Google Cloud Vertex AI platform.
Want to see Apps Script in action?
The Google Workspace Developers channel offers videos about tips, tricks, and the latest features.

Release notes

Learn what's new in Apps Script.

Support

Ask a question, file a bug, or request a feature.

REST API

Manage your script projects programmatically.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-03 UTC.