How to Build Google Apps Script Automations with AI (No Coding Required)

In short: AI assistants like ChatGPT, Claude and Gemini can write Google Apps Script from a plain-English description. That means non-coders can automate Gmail, Sheets, Drive and Calendar for free. The keys are describing the task clearly, testing on copies and keeping sensitive client information out of your prompts.

Not long ago, "just automate it with a script" left most solopreneurs out. Your options were paying for an automation platform, hiring a developer or doing it by hand.

That has changed. In 17 years of admin and operations work, including 7 years supporting founders as a virtual assistant and fractional operations partner, I've watched AI open automation to people who have never written a line of code. Here's how to use ChatGPT, Claude or Gemini to build simple Apps Script automations step by step, with a prompt you can copy and ground rules to keep your business safe.

Why Apps Script and AI make a great pair

Google Apps Script is free and built into Google Workspace. It lets Gmail, Sheets, Docs, Drive, Forms and Calendar work together. The catch is that it's code, a version of JavaScript.

AI removes most of that barrier. You describe the goal in everyday language, the AI writes the script, and when something breaks, you paste the error back and it explains and fixes it. You still decide what to automate, which data to use and whether the result is right. The AI handles the part that used to need a developer.

If you've read my post on 7 workflows to automate the busywork with Make or Zapier, think of this as the free, do-it-yourself option for Google Workspace users.

How to build your first automation, step by step

  1. Pick one small, repeatable task. For example, save Gmail attachments to a Drive folder, email yourself a weekly summary from a Sheet, or create a client folder when a Google Form is submitted.

  2. Write the steps in plain English. Where does the information start, what do you do with it, and where does it end up? This becomes your prompt, and it doubles as an SOP.

  3. Ask the AI to write the script. Share your steps and the exact names of your Sheets, columns or folders. Ask for comments explaining each part.

  4. Open the Apps Script editor. In Google Sheets, go to Extensions, then Apps Script. Paste the code, save and give the project a clear name.

  5. Run it and approve access. The first run asks for authorization. Read what it's asking for before you click Allow.

  6. Fix errors with the AI. Copy the full error message and paste it back into the chat. Most problems are solved in one or two rounds.

  7. Set a trigger. Click the clock icon in the editor to add a trigger, such as every Monday morning or whenever a form is submitted. The AI can walk you through this too.

A prompt you can copy

The more specific your prompt, the better the script. Try this:

"I'm not a coder. Write a Google Apps Script for me. When someone submits my Google Form called 'New Client Intake': 1) create a folder in my Drive folder called 'Clients,' named with the client's full name from the form; 2) copy my Google Doc template called 'Welcome Packet' into that new folder; 3) email me to say the folder is ready. Add comments explaining each step, tell me exactly where to paste the code, and explain how to set up the trigger."

It works because it names the exact files and folders, lists the steps in order and asks the AI to explain its work. If the AI asks you a follow-up question, answer it. That usually means you'll get a script that fits your setup better.

Ground rules to keep your business safe

  • Test on copies first. Run new scripts on a duplicate Sheet or a test folder before touching live client files.

  • Keep client data out of prompts. Describe your columns and folders, not what's in them. Never paste names, health details or financial information into an AI chat, especially if you're a therapist or clinical practitioner.

  • Read the permission screen. If a script that only needs your Sheet asks for full Gmail access, ask the AI why before you approve it.

  • Know the limits. Google sets daily quotas on things like emails sent and run time. Small workflows rarely hit them.

  • Document what you build. Note what each script does, where it lives and what triggers it.

Frequently asked questions

Which AI is best for Apps Script: ChatGPT, Claude or Gemini? All three can write working scripts for everyday tasks. Gemini is built by Google and included in many Workspace plans. ChatGPT and Claude are strong at explaining code step by step. Pick the one you already know.

Do I need to understand the code? Not line by line. You need to understand what it should do and check it on test data. Ask for comments so you can follow along.

Is it safe to use AI-written scripts? Yes, with care. Test on copies, review permissions and keep sensitive data out of prompts. For scripts that touch client records or payments, consider having someone experienced review them.

What if my script stops working? Apps Script can email you when a triggered script fails. Paste the error and the code into your AI chat and ask what changed. A renamed file or column is often the cause.

Does Apps Script cost anything? No. It's included with Google accounts and Workspace, within usage limits.

Start small and let the tools do the heavy lifting

You don't need to become a developer. With a clear description of your process and an AI assistant, you can build workflows that save hours every month using tools you already pay for. For more ideas, see the AI tools for solopreneurs I actually use.

If you'd like help mapping your processes and deciding between Apps Script, a no-code tool or a simple checklist, that's what I do. See my services or how I work with founders.

Ready to automate the busywork? Book a free 15-minute discovery call.

Tai Campbell

Tai is a New York City-based virtual assistant and fractional operations manager with 17+ years of experience in operations and administrative support. At Savvy Assistant, Tai supports founders, coaches, wellness pros, and membership businesses with executive admin and the systems that keep a business running.

Next
Next

The Founder's Weekly Reset: A Simple Weekly Planning Routine for Business Owners