Hands-On AI: Google Workspace Automation — 30 Projects Resource Edition
By Laurence Svekis — Google Developer Expert, Author & AI Educator
What if your spreadsheets generated their own reports?
What if your documents were automatically created from data, your customer feedback categorized by AI, your emails prepared for review, and your weekly tasks organized into an actionable productivity plan?
What if you could build all these applications using tools you already have access to?
You can — with Google Apps Script and Gemini AI.
I’ve created a hands-on workshop and accompanying collection of 30 practical projects designed to help developers, educators, business professionals, students, and everyday Google Workspace users move beyond AI experimentation and start building useful applications.
Rather than simply talking about what AI can do, we’re going to build, experiment, test, and discover what’s possible.
From AI Hype to Real-World Impact
Artificial intelligence is changing how we develop software, learn new skills, and approach everyday work.
However, the greatest opportunity isn’t necessarily building the next groundbreaking AI platform. It might be automating the repetitive task you performed this morning.
Consider how much time you spend:
- Copying information between spreadsheets and documents.
- Preparing weekly reports.
- Organizing files and folders.
- Writing similar emails.
- Reviewing customer feedback.
- Extracting information from documents.
- Managing appointments and deadlines.
- Summarizing meeting notes.
- Tracking expenses and budgets.
- Organizing personal and professional tasks.
Many of these activities can be partially or fully automated.
If you eliminate just 15 minutes of repetitive work five times a week, that represents 65 hours of task time every year, before accounting for maintenance and review.
That’s more than eight working days.
Automation isn’t just about saving time. It’s also about improving consistency, reducing errors, and creating repeatable processes.
Introducing the Hands-On AI Workshop
Hands-On AI: Google Workspace Automation — 30 Projects Resource Edition is a project-based learning experience that combines JavaScript, Google Workspace, Gemini AI, and AI-assisted development.
The workshop is designed around practical applications rather than isolated programming exercises.
Each project introduces a real-world problem, demonstrates a possible solution, and encourages you to experiment with the implementation.
The learning resources include:
- 30 practical application projects.
- Reusable reference source code.
- Google Sheets starter datasets.
- Google Docs templates.
- Project guides and instructions.
- AI-assisted development prompts.
- Expected results and testing scenarios.
- Opportunities to customize and extend applications.
- Gemini API integration examples.
You don’t need to complete all 30 projects in order. Choose something that interests you, solve a problem, and build from there.
Access the Workshop Resources
You can access the resources and follow along independently.
Complete GitHub Source Code
Explore the project folders, reference implementations, and supporting scripts.
Google Drive Starter Files
Access the starter spreadsheets, documents, templates, and learning materials.
Create your own copies before making changes to the workshop materials.
What Is Google Apps Script?
Google Apps Script is a cloud-based JavaScript development platform that allows you to extend Google Workspace and automate tasks across its applications.
Instead of installing a development environment, configuring a server, or managing hosting infrastructure, you can start writing code directly from your browser.
Apps Script connects with services including:
| Service | What you can build |
|---|---|
| Google Sheets | Dashboards, reports, data processing tools and custom functions |
| Google Docs | Document generators, templates and content automation |
| Google Drive | File management, organization and document processing |
| Gmail | Draft generators, email analysis and communication workflows |
| Google Calendar | Scheduling tools and appointment management |
| External APIs | AI integrations, external data imports and connected applications |
| HTML Service | Interactive sidebars, dialogs and web applications |
You can connect multiple services within a single application.
For example, an Apps Script application could read customer information from Google Sheets, generate personalized documents, save them to Google Drive, and prepare email drafts for human review.
All from one script.
Your First Google Apps Script Application
Getting started is easier than you might expect.
- Open a blank Google Sheet.
- Select Extensions → Apps Script.
- Replace the existing code with the following example.
- Save the project.
- Select and run
helloWorkspace. - Review and approve the required permissions if prompted.
- Return to your spreadsheet.
function helloWorkspace() {
const sheet = SpreadsheetApp.getActiveSheet();
sheet.getRange('A1')
.setValue('Hello Workspace!');
}
You should see Hello Workspace! appear in cell A1.
Although this is a simple example, it introduces the foundation of Workspace automation:
- Accessing a Google Workspace service.
- Selecting an object.
- Performing an operation.
- Producing a visible result.
The same principles apply when building much more sophisticated applications.
Gemini AI: Two Different Ways to Build Smarter Applications
One of the most important concepts in this workshop is understanding the difference between building with AI and building AI into applications.
These are two different approaches, and both are incredibly useful.
Approach 1: Gemini as Your Coding Partner
Use Gemini during development to help you create, understand, debug, and improve your Apps Script applications.
You can ask Gemini to:
- Generate JavaScript functions.
- Create custom spreadsheet menus.
- Develop interactive sidebars.
- Explain unfamiliar code.
- Identify and resolve errors.
- Optimize inefficient scripts.
- Generate test cases.
- Suggest additional functionality.
- Document existing applications.
Once the code is generated, reviewed, and tested, it can run independently of Gemini.
Your Apps Script application doesn’t need a Gemini API key or runtime AI calls simply because Gemini helped you write it.
This is particularly useful for traditional, rules-based automation.
Approach 2: Gemini as an Intelligence Engine
The second approach integrates the Gemini API directly into your application.
Instead of using AI only during development, your application can call Gemini while it runs.
This allows you to build applications that:
- Summarize documents.
- Interpret customer feedback.
- Classify unstructured information.
- Extract structured data from text.
- Generate personalized responses.
- Create study questions.
- Identify important information.
- Produce contextual recommendations.
This approach requires API configuration, appropriate credentials, and consideration of usage limits and potential costs.
When Should You Use AI?
Not every problem needs artificial intelligence.
| Task | Recommended approach |
|---|---|
| Calculate spreadsheet totals | JavaScript |
| Identify duplicate records | JavaScript |
| Generate documents from templates | JavaScript |
| Calculate appointment dates | JavaScript |
| Interpret customer feedback | Gemini |
| Summarize meeting notes | Gemini |
| Extract information from unstructured text | Gemini |
| Generate personalized email content | Gemini |
| Create intelligent business workflows | JavaScript + Gemini |
Use JavaScript when the rules are known. Use AI when interpretation is required.
Combining the two approaches allows you to build applications that are both intelligent and reliable.
30 Hands-On Google Workspace Automation Projects
The workshop includes three collections of practical applications, progressing from core automation to AI-powered workflows and everyday productivity tools.
Part 1: Core Google Workspace Automation
Build a strong foundation by learning how to connect Workspace services, process data, and automate repetitive tasks.
| # | Project | What you will build |
|---|---|---|
| 01 | Automated Sales Dashboard | Calculate and summarize sales performance automatically. |
| 02 | Smart Data Cleaning Tool | Clean and standardize spreadsheet records. |
| 03 | Custom Spreadsheet Functions | Extend Google Sheets with reusable JavaScript functions. |
| 04 | External API Data Importer | Connect external data sources to spreadsheets. |
| 05 | Automated Inventory Monitor | Identify inventory levels requiring attention. |
| 06 | Personalized Document Generator | Generate customized documents from spreadsheet records. |
| 07 | Automated PDF Invoice Builder | Create invoice documents and PDF outputs. |
| 08 | Meeting Minutes Generator | Organize meeting information into structured documents. |
| 09 | Google Drive File Explorer | Retrieve and display information about Drive files. |
| 10 | Intelligent File Organizer | Organize files using defined rules. |
These projects demonstrate how much you can accomplish without requiring runtime artificial intelligence.
Part 2: AI and Intelligent Workspace Integrations
Extend your applications by connecting additional Workspace services and integrating Gemini AI where interpretation and content generation provide value.
| # | Project | What you will build |
|---|---|---|
| 11 | Personalized Gmail Draft Builder | Prepare personalized email drafts. |
| 12 | Email Analytics Dashboard | Analyze and summarize email activity. |
| 13 | Automated Task Management System | Organize and monitor tasks. |
| 14 | Interactive Workspace Sidebar | Create a custom interface inside Google Workspace. |
| 15 | Gemini-Powered Data Classifier | Categorize unstructured information using AI. |
| 16 | AI Spreadsheet Insights Generator | Generate contextual insights from spreadsheet data. |
| 17 | AI Document Summarizer | Transform longer documents into concise summaries. |
| 18 | AI Gmail Smart Reply Assistant | Generate suggested email responses for review. |
| 19 | AI File Information Extractor | Extract relevant information from files. |
| 20 | AI Business Workflow Assistant | Combine automation and AI to support business processes. |
These applications introduce the possibilities of combining predictable JavaScript operations with AI-powered interpretation.
Part 3: Smart Personal Assistants and Everyday Productivity
Automation isn’t limited to business applications. Some of the most useful tools are the ones that make everyday life easier.
| # | Project | What you will build |
|---|---|---|
| 21 | Personal Expense and Budget Tracker | Monitor expenses and summarize spending. |
| 22 | Smart Meal Planner and Grocery List | Organize meals and generate grocery lists. |
| 23 | Personal Subscription Tracker | Track recurring subscriptions and expenses. |
| 24 | AI Email Writing Assistant | Generate email suggestions using a requested tone. |
| 25 | Personal Appointment and Reminder Manager | Identify upcoming appointments. |
| 26 | Travel Itinerary and Budget Planner | Organize travel activities and costs. |
| 27 | AI Personal Study Assistant | Generate study questions from learning notes. |
| 28 | Household Maintenance Planner | Track recurring maintenance and upcoming tasks. |
| 29 | AI Receipt and Expense Extractor | Extract structured expense information from receipt text. |
| 30 | AI Weekly Personal Productivity Assistant | Generate a weekly plan based on outstanding tasks. |
These projects are designed to demonstrate that application development can solve problems that are immediately relevant to your own life.
Project Spotlight: Automated Sales Dashboard
Imagine a spreadsheet containing sales records with the following columns:
| Date | Region | Product | Units | Unit price |
|---|
Every week, someone needs to calculate revenue by region and prepare a summary.
Instead of repeating the process manually, an Apps Script application can read the records, calculate revenue, group the results, and update a dashboard.
The workshop’s starter dataset produces:
| Region | Revenue |
|---|---|
| East | $160 |
| West | $100 |
| Total | $260 |
Now change the number of units sold for the East region’s Course product from three to four.
Before running the application again, predict what will happen.
The expected total becomes $300.
This is an important part of the learning experience. Rather than simply running code, you’re developing an understanding of how inputs affect outputs.
Once you have a reliable dashboard, you can explore adding custom menus, charts, validation, and scheduled updates.
Project Spotlight: Personalized Document Generator
Creating personalized documents manually can become extremely time-consuming.
Imagine maintaining a spreadsheet containing:
| Name | Program | Date |
|---|
You also have a Google Docs template containing placeholders for the person’s name, program, and date.
An Apps Script application can:
- Read each spreadsheet record.
- Copy the document template.
- Replace its placeholders with the corresponding values.
- Save the personalized document.
- Write the document link back to the spreadsheet.
The original template remains unchanged.
This approach can be adapted for welcome letters, certificates, onboarding documents, educational materials, and personalized correspondence.
No runtime AI is required because the process follows predictable rules.
Project Spotlight: Gemini-Powered Data Classifier
Now consider a spreadsheet containing customer feedback.
Unlike calculating sales totals, understanding feedback requires interpretation.
Different customers might describe the same problem using completely different language.
Gemini can help classify these messages into meaningful categories.
For example, an application could identify feedback related to:
- Technical problems.
- Product suggestions.
- Customer service.
- Billing concerns.
- Positive experiences.
Apps Script manages the spreadsheet operations, while Gemini interprets the text.
The application should validate the returned categories and record identifiers before writing results back to the spreadsheet.
This is where traditional automation and artificial intelligence complement each other.
Project Spotlight: AI Personal Study Assistant
AI can also help transform passive learning into active learning.
Imagine maintaining a Google Sheet containing your study notes.
Instead of repeatedly reading those notes, you can build an application that sends them to Gemini and generates question-and-answer pairs.
The workshop application requests two questions per topic and validates the returned structure.
With two topics, the expected result is four question-and-answer pairs.
Add a third topic, and the expected result becomes six.
This creates opportunities to build your own personalized learning applications, including quiz generators, revision tools, flashcards, and knowledge assessments.
The generated answers should still be reviewed against the original learning material.
Project Spotlight: AI Weekly Personal Productivity Assistant
One of the most practical applications in the workshop is a personal productivity assistant.
Imagine a spreadsheet containing your outstanding tasks, deadlines, and completion status.
Apps Script can first filter the records to include only open tasks.
Gemini can then help transform that information into an organized weekly plan.
This separation is important.
JavaScript handles the predictable filtering operation. Gemini handles the interpretation and organization.
The application doesn’t need to send every record to AI, and completed tasks can be excluded before the API call.
This hybrid approach helps reduce unnecessary processing and gives you greater control over the workflow.
Vibe Coding: Prompt for an Application, Not Just Code
AI-assisted development makes it possible to move from an idea to a working prototype much faster.
However, the quality of your instructions significantly affects the quality of the generated application.
A vague prompt such as “Create a spreadsheet automation” leaves too many decisions undefined.
Instead, describe the application you want to build, its inputs, expected outputs, constraints, and testing requirements.
Here is a reusable prompt inspired by the workshop.
Reusable Google Apps Script Development Prompt
Act as an experienced Google Apps Script developer and programming tutor.
Help me build a Google Workspace application that solves the following problem:
[Describe the problem]
Application requirements:
- Input data: [Describe the spreadsheet, document or data source]
- Input columns: [Provide exact column names]
- Processing requirements: [Describe the required operations]
- Expected output: [Describe the result]
- Workspace services: [Sheets, Docs, Drive, Gmail or others]
- AI requirements: [Describe whether Gemini is needed]
Provide complete, copy-paste-ready source code, clear setup instructions, required permissions, explanations of the main functions, and sample test cases with expected results.
Preserve existing source data. Include input validation, error handling, and safe execution practices.
Do not automatically send emails, delete files, or modify unrelated data.
Explain how I can test, customize, and extend the application.
Help me understand the code rather than simply generating a solution.
The objective is not just to generate more code.
It’s to generate useful, understandable, and testable applications.
Vibe Learning: Learn by Building, Exploring and Experimenting
This workshop incorporates my Vibe Learning approach, which encourages learners to actively engage with AI-generated and traditional code.
The learning process follows five stages.
1. Explore
Understand the problem, examine the starter files, and identify the application’s purpose.
2. Predict
Before executing the code, predict what the application should produce.
3. Run
Execute the application and observe its actual behavior.
4. Understand
Investigate how the code works, why it produces the result, and what happens when something goes wrong.
5. Improve
Change an input, modify a function, introduce a new requirement, or extend the application.
This creates a continuous learning cycle.
Explore → Predict → Run → Understand → Improve
AI becomes a learning partner rather than a replacement for learning.
You develop the ability to question, verify, troubleshoot, and improve the solutions you create.
Learn more about Vibe Learning:
Getting Started with the Workshop Files
There are three ways to begin working through the projects.
Option 1: Explore the GitHub Repository
Choose a project and examine its reference implementation.
This is ideal for developers who want to understand the code or adapt an existing solution.
Option 2: Use the Google Drive Starter Files
Access the prepared spreadsheets, documents, and supporting materials.
If you download the entire workshop folder:
- Download the shared Google Drive folder.
- Extract the ZIP file.
- Preserve the individual lesson folders.
- Upload the extracted folder into your own Google Drive.
- Convert Microsoft Office files into native Google Docs and Sheets where required.
- Open the appropriate project spreadsheet.
- Select Extensions → Apps Script.
- Copy the corresponding source code from GitHub.
- Complete any project-specific configuration.
- Save, run, and verify the application.
Downloading and uploading files does not preserve their bound Apps Script projects. The GitHub repository provides the application source code needed to restore them.
For projects that use a configured lesson folder ID, update the relevant configuration to point to your own copied folder.
Option 3: Generate Your Own Workshop Files
The workshop also includes a batch starter file generator.
This approach automates the creation of lesson folders, starter spreadsheets, sample documents, guides, and supporting materials.
It’s another example of using automation to simplify a repetitive process.
The generated starter files still require the appropriate lesson application code.
Converting Microsoft Office Files Automatically
When downloading Google Workspace files, Google Drive may export them as Microsoft Office documents.
Apps Script requires native Google Workspace files for these spreadsheet-bound and document-processing projects.
To simplify this process, I’ve included a bulk conversion script.
The script is designed to:
- Process the workshop folder and its subfolders.
- Convert XLSX files into Google Sheets.
- Convert DOCX files into Google Docs.
- Preserve the original files.
- Keep converted files inside their corresponding lesson folders.
- Skip matching files that have already been converted.
- Process conversions in manageable batches.
Access the conversion script:
Even the workshop setup becomes an opportunity to learn practical automation.
Integrating the Gemini API
For projects that use Gemini at runtime, you’ll need to configure API access.
The general process involves:
- Obtaining a Gemini API key through Google AI Studio.
- Opening the Apps Script project.
- Navigating to Project Settings.
- Adding the API key to Script Properties using the property name required by the supplied helper.
- Adding the Gemini integration helper.
- Selecting a supported Gemini model.
- Testing the connection.
- Validating the generated responses.
Google AI Studio:
Google Apps Script and Gemini documentation:
Avoid placing API keys directly in publicly shared source code, spreadsheets, or repositories.
Remember that API access, model availability, quotas, and pricing can change.
Building Reliable AI-Powered Applications
Generating an application is only the beginning.
Before automating a workflow, you need to establish that it works reliably.
Important development practices include:
- Test with small sample datasets.
- Preserve original information.
- Validate input data.
- Validate AI-generated output.
- Check for missing or unexpected values.
- Handle API errors and execution failures.
- Treat external content as untrusted input.
- Protect credentials and confidential information.
- Review generated emails before sending.
- Consider quotas and execution limits.
- Add scheduled triggers only after manual testing.
- Maintain human oversight for important decisions.
AI-generated content should not automatically be treated as correct.
The goal is to build applications that are useful, understandable, maintainable, and appropriately controlled.
Automate only after it works.
Your Challenge: Build the 31st Application
The 30 projects are only the beginning.
Your next challenge is to create an application that isn’t included in the workshop.
Think about a repetitive task you perform regularly.
Ask yourself:
- What information does the task require?
- Where does that information come from?
- What steps do I repeat?
- Which steps follow predictable rules?
- Which steps require interpretation?
- Could Google Apps Script automate part of the process?
- Could Gemini improve the result?
- How would I verify that the application works?
Start small.
Build one function. Test it. Understand it. Improve it.
Then connect additional services and introduce AI where it provides genuine value.
Your 31st application might become the most useful application in the entire collection because it solves a problem that matters to you.
Continue Your Learning Journey
Explore more of my educational resources, interactive tools, and practical development guides.
DiscoveryVIP — Interactive Learning Tools and Developer Resources
Vibe Learning — AI-Assisted Learning and Development
BaseScripts — Programming Tutorials and Articles
AI in Practice — LinkedIn Newsletter
Final Thoughts
The future of application development isn’t just about writing code faster.
It’s about identifying meaningful problems, understanding the tools available to us, and creating solutions that deliver practical value.
Google Apps Script provides the automation platform.
Gemini provides AI-powered interpretation and generation.
JavaScript provides predictable logic.
Vibe Coding accelerates development.
Vibe Learning helps us understand and improve what we build.
Together, these approaches create opportunities for developers and non-developers alike to build useful applications.
You don’t need to start with a complex system.
Start with one spreadsheet.
One repetitive task.
One idea.
One useful application.
Your next automation starts today.
Explore. Build. Integrate. Test. Customize.
Get Started with All 30 Projects
Source code: https://github.com/lsvekis/Google-Apps-Script-Workshop
Starter files: https://drive.google.com/drive/folders/1nfZzrubhrsjLsgqD99OkqSd4SsT52DIO
What would you automate if you could?
#GoogleAppsScript #GeminiAI #GoogleWorkspace #ArtificialIntelligence #Automation #JavaScript #VibeCoding #VibeLearning #AIinPractice #LearnByBuilding