← Back to the full guide
⚙️ Operations & Admin · Printable checklist · USE CASy

Describe a Google Sheets or Gmail chore in plain words and let Gemini write the automation for you

⏱️ 20 minutes · 🎯 Medium · 💵 Included in Google AI Pro or eligible Workspace plans
✍️ Source: Google Workspace Updates · Original: https://workspaceupdates.googleblog.com/2026/11/customize-and-extend-workspace-with-apps-script.html

🧰 Before you start

🪜 Steps (tick as you go)

  1. ☐
    1. Make a copy to test on

    Open your sheet and choose File > Make a copy. Test on the copy so a mistake can't touch your real data.

  2. ☐
    2. Open Apps Script

    In the copy, click Extensions > Apps Script (or go to script.new). The Gemini panel opens on new scripts; otherwise click the Ask Gemini spark icon at the top right.

  3. ☐
    3. Describe the job

    Write what should happen in plain words: what starts it, which sheet or emails it reads, what it should do and what it must never do. Use the first prompt below as a template.

  4. ☐
    4. Review block by block

    Gemini shows its code in blocks. Click Accept or Reject on each, or Accept All. You don't need to understand every line; ask Gemini 'explain this block in plain English' if unsure.

  5. ☐
    5. Run it once and allow access

    Click Run. Google asks for permission to use your Sheets or Gmail; read what it asks for and allow it only if it matches the job.

  6. ☐
    6. Fix anything that breaks

    If the Execution log shows an error, click Fix errors. Gemini explains the problem in plain language and suggests a fix to accept.

  7. ☐
    7. Put it on a timer

    Ask Gemini to 'add a time-based trigger to run this every weekday at 8am'. Then switch the script over to your real sheet.

💬 Prompts to copy

💬 Describe the automation
Write an Apps Script for this Google Sheet. Trigger: [every weekday at 8am / when a form answer arrives / when I click a menu item]. It should read [sheet name, columns] and [what to do, e.g. email each person whose 'Due date' is within 3 days, using the template in cell B1]. Rules: never delete rows, never email anyone not in column C, write what it did into a 'Log' tab with the date. Use clear comments so a beginner can follow it.
💬 Urgent emails to calendar
Write an Apps Script that runs every hour, finds unread Gmail messages from the last hour that contain 'urgent' or 'today' in the subject, and creates a 30-minute Google Calendar event called 'Reply: [subject]' in my next free slot today. Don't change or delete any email. Log each event created in a sheet called 'Urgent log'.
💬 Sheet to formatted report
Write an Apps Script that takes the table in the 'Monthly' tab and creates a Google Doc report in [folder]: a title with the month, a short summary of totals, the table formatted with headers, and the three biggest changes from last month. Add a custom menu 'Reports > Build monthly report' to run it.

🔗 Links

From https://usecasy.com/use-case/gemini-apps-script-plain-words/ · Guide checked 26 November 2026 · Prices are rough and shown in USD unless stated (MYR where relevant).