Google Apps Script for Sheets — automate a recurring task
Google Apps Script that does one specific thing on your Sheet, with the setup steps + a test row to verify before you turn the trigger on.
Fill in the Template
0 / 4 filledYour Built Prompt
Updates live as you typeWrite me a Google Apps Script that runs on a Google Sheet.
What the sheet looks like: {{sheet_layout}}
What I want the script to do: {{script_goal}}
When to run it: {{trigger}} (e.g. 'every Mon 9am', 'on edit of column F', 'button I click')
Optional: do I want it to email/Slack/log somewhere on completion? {{notification}}
Return:
1. THE SCRIPT, ready to paste into Apps Script. Use clear function names + brief comments only on non-obvious lines.
2. SETUP STEPS in order: (a) where to paste it, (b) how to set the trigger, (c) what permissions it'll ask for and why.
3. FIRST-RUN TEST: tell me one row of input I should add to the sheet to verify it works before I let it loose.
4. WHERE IT COULD GO WRONG: 1–2 things that'll cause it to fail silently (rate limits, blank rows, etc.) + how to spot it.
AU English. No deep CS jargon — assume I've never written Apps Script.Fill in the required fields above to copy or run this prompt.
Tags
Community Feedback
0 commentsRelated Prompts
More in CodingConvert an Excel formula to Google Sheets (or vice versa)
Convert spreadsheet formulas between Excel and Google Sheets, with a callout of any function that doesn't exist in the target and the workaround used.
Debug an error message — paste it, get the fix
Paste any error message, get a plain-English explanation, the most likely cause, and a step-by-step fix. Works for code, Zapier, Excel, Webflow, anywhere.
Generate a regex from a plain-English description
Plain-English in, ready-to-paste regex out. Includes a walkthrough, test results against your sample inputs, and known limitations.
Build a spreadsheet formula from plain English
Plain-English description in, paste-ready spreadsheet formula out — Excel or Google Sheets dialect. Includes the "when it breaks" caveats most AI prompts skip.