Open your sheet and choose File > Make a copy. Test on the copy so a mistake can't touch your real data.
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.
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.
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.
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.
If the Execution log shows an error, click Fix errors. Gemini explains the problem in plain language and suggests a fix to accept.
Ask Gemini to 'add a time-based trigger to run this every weekday at 8am'. Then switch the script over to your real sheet.
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.
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).