Google Apps Script samples Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Discover Google Apps Script samples and solutions for automating tasks, extending Google Workspace UIs, and integrating services.
Samples are categorized by use case, Google products, and type (Quickstart, Solution, Codelab).
Quickstarts provide quick proof-of-concept code, Solutions are fully functional projects addressing business problems, and Codelabs are step-by-step tutorials.
Additional samples are available on GitHub, and related video content can be found on the Google Workspace Developers YouTube channel.
Explore Google Apps Script samples and solutions that show you how toautomate tasks, extend Google Workspace user interfaces, and integrate intoGoogle and external services.
View samples by use case, featured Google products, andtype:
About sample types
The following provides an explanation of each sample type:
- Quickstart
Quickstart samples offer quick, proof-of-concept code samples to get youworking with Apps Script in under five minutes. Quickstarts are available formost Apps Script project types.
Find quickstarts organized by project type at the left underSamples byproject type ortry this simple automation that creates aGoogle Doc and emails you a link to it.
- Solution
Solution samples are fully functional Apps Script projects. Solutions addressrealistic business problems and showcase how you can automate workflows acrossGoogle Workspace. Often, you can implement solutions without needing to edit orupdate the code.
Find solutions organized by project type at the left underSamples byproject typeortry thispopular mail merge solution.
- Codelab
Codelabs are hands-on, step-by-step technical tutorials. They combineexplanation, working best-practice sample code, and code exercises. Codelabs areavailable for most Google developer products and are published on theCodelab catalogue.
Find Apps Script-specific codelabs at the left underCodelabs.
Explore Apps Script code samples on GitHub
You can also find Apps Script samples onGitHub.You can fork these repositories and use the code as a reference for your ownprojects.
Explore Apps Script videos
Explore content from the Google Workspace Developers YouTube channel:
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 2025-12-11 UTC.