What If Your Work Could Do Itself? Build 30 Real-World Applications with Google Apps Script and Gemini AI

Hands-On AI: Google Workspace Automation — 30 Projects Resource Edition

By Laurence Svekis — Google Developer Expert, Author & AI Educator

https://docs.google.com/presentation/d/e/2PACX-1vQ9-hPEIehNPTQGEbwK2bjtGF3qEaXYyT4m0bRePREqcWqHsDKwNkoUDoGQ0WJ86hBP4wiHh47JHmB1/pub?start=true&loop=false&delayms=3000

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.

https://github.com/lsvekis/Google-Apps-Script-Workshop

Google Drive Starter Files

Access the starter spreadsheets, documents, templates, and learning materials.

https://drive.google.com/drive/folders/1nfZzrubhrsjLsgqD99OkqSd4SsT52DIO

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:

ServiceWhat you can build
Google SheetsDashboards, reports, data processing tools and custom functions
Google DocsDocument generators, templates and content automation
Google DriveFile management, organization and document processing
GmailDraft generators, email analysis and communication workflows
Google CalendarScheduling tools and appointment management
External APIsAI integrations, external data imports and connected applications
HTML ServiceInteractive 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.

  1. Open a blank Google Sheet.
  2. Select Extensions → Apps Script.
  3. Replace the existing code with the following example.
  4. Save the project.
  5. Select and run helloWorkspace.
  6. Review and approve the required permissions if prompted.
  7. 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.

TaskRecommended approach
Calculate spreadsheet totalsJavaScript
Identify duplicate recordsJavaScript
Generate documents from templatesJavaScript
Calculate appointment datesJavaScript
Interpret customer feedbackGemini
Summarize meeting notesGemini
Extract information from unstructured textGemini
Generate personalized email contentGemini
Create intelligent business workflowsJavaScript + 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.

#ProjectWhat you will build
01Automated Sales DashboardCalculate and summarize sales performance automatically.
02Smart Data Cleaning ToolClean and standardize spreadsheet records.
03Custom Spreadsheet FunctionsExtend Google Sheets with reusable JavaScript functions.
04External API Data ImporterConnect external data sources to spreadsheets.
05Automated Inventory MonitorIdentify inventory levels requiring attention.
06Personalized Document GeneratorGenerate customized documents from spreadsheet records.
07Automated PDF Invoice BuilderCreate invoice documents and PDF outputs.
08Meeting Minutes GeneratorOrganize meeting information into structured documents.
09Google Drive File ExplorerRetrieve and display information about Drive files.
10Intelligent File OrganizerOrganize 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.

#ProjectWhat you will build
11Personalized Gmail Draft BuilderPrepare personalized email drafts.
12Email Analytics DashboardAnalyze and summarize email activity.
13Automated Task Management SystemOrganize and monitor tasks.
14Interactive Workspace SidebarCreate a custom interface inside Google Workspace.
15Gemini-Powered Data ClassifierCategorize unstructured information using AI.
16AI Spreadsheet Insights GeneratorGenerate contextual insights from spreadsheet data.
17AI Document SummarizerTransform longer documents into concise summaries.
18AI Gmail Smart Reply AssistantGenerate suggested email responses for review.
19AI File Information ExtractorExtract relevant information from files.
20AI Business Workflow AssistantCombine 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.

#ProjectWhat you will build
21Personal Expense and Budget TrackerMonitor expenses and summarize spending.
22Smart Meal Planner and Grocery ListOrganize meals and generate grocery lists.
23Personal Subscription TrackerTrack recurring subscriptions and expenses.
24AI Email Writing AssistantGenerate email suggestions using a requested tone.
25Personal Appointment and Reminder ManagerIdentify upcoming appointments.
26Travel Itinerary and Budget PlannerOrganize travel activities and costs.
27AI Personal Study AssistantGenerate study questions from learning notes.
28Household Maintenance PlannerTrack recurring maintenance and upcoming tasks.
29AI Receipt and Expense ExtractorExtract structured expense information from receipt text.
30AI Weekly Personal Productivity AssistantGenerate 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:

DateRegionProductUnitsUnit 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:

RegionRevenue
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:

NameProgramDate

You also have a Google Docs template containing placeholders for the person’s name, program, and date.

An Apps Script application can:

  1. Read each spreadsheet record.
  2. Copy the document template.
  3. Replace its placeholders with the corresponding values.
  4. Save the personalized document.
  5. 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:

https://vibelearning.ca

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:

  1. Download the shared Google Drive folder.
  2. Extract the ZIP file.
  3. Preserve the individual lesson folders.
  4. Upload the extracted folder into your own Google Drive.
  5. Convert Microsoft Office files into native Google Docs and Sheets where required.
  6. Open the appropriate project spreadsheet.
  7. Select Extensions → Apps Script.
  8. Copy the corresponding source code from GitHub.
  9. Complete any project-specific configuration.
  10. 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:

https://github.com/lsvekis/Google-Apps-Script-Workshop/blob/main/Update%20Docx%20and%20XLSx%20to%20Doc%20and%20SHeet

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:

  1. Obtaining a Gemini API key through Google AI Studio.
  2. Opening the Apps Script project.
  3. Navigating to Project Settings.
  4. Adding the API key to Script Properties using the property name required by the supplied helper.
  5. Adding the Gemini integration helper.
  6. Selecting a supported Gemini model.
  7. Testing the connection.
  8. Validating the generated responses.

Google AI Studio:

https://aistudio.google.com

Google Apps Script and Gemini documentation:

https://developers.google.com/apps-script/guides/gemini

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

https://discoveryvip.com/guides.php

Vibe Learning — AI-Assisted Learning and Development

https://vibelearning.ca/tools

BaseScripts — Programming Tutorials and Articles

https://basescripts.com

AI in Practice — LinkedIn Newsletter

https://www.linkedin.com/newsletters/ai-in-practice-7511537011069972480

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