How to Write Apps Script With Claude, With No Coding Experience (Free Walkthrough)
Write Apps Script with Claude and no coding experience: describe the task, paste the code into Sheets, run it. Free on Claude's Free plan. Steps inside.
Quick answer: Describe the job to Claude in plain English, paste the code it writes into Extensions > Apps Script in your Google Sheet, then authorize and run it. Free? Yes: Claude's Free plan lists file creation and code execution and Apps Script costs nothing with a Google account. Time: about 15 minutes for a first script.
This guide builds one real example: a menu button that emails everyone in a sheet whose task is not marked "Sent". The same method works for other jobs. Prices and limits are as of 15 October 2026.
What do you need before you start?
You need a Google account, a Google Sheet, and a Claude account. That is all.
- Google Sheet: any sheet you can edit. Google says only users with edit permission on the file can run its bound script.
- Claude: the Free plan is enough for a script this size. Paid plans add more usage per session; Pro gives at least 5x more usage per 5-hour session than Free, and Claude Code is only on paid plans. You do not need Claude Code for this guide.
- A practice copy: use File > Make a copy on your real sheet and test there first.
What is Apps Script, and what does "bound" mean?
Apps Script is Google's built-in tool for adding small programs to Sheets, Docs, Gmail and other Google products. A script made from inside a sheet is called a bound script. Google defines it as a script created from a Sheets, Docs, Slides or Forms file rather than as a standalone script.
Bound scripts are the right choice for beginners because they can add menus to your sheet and read its cells directly. Google notes that only bound scripts can create menus. The language is JavaScript, and Google says its V8 runtime supports modern syntax such as let and const, which is what Claude normally writes.
How do you write Apps Script with Claude? (Method 1: free, in Claude's chat)
Give Claude a prompt that names your columns, your goal and where the code will run. Anthropic's advice is to be specific about the desired output format and constraints. Its "golden rule" is to show your prompt to a colleague with minimal context on the task; if they would be confused, Claude will be too.
- Open your practice sheet. In row 1, type these headers in columns A to E: Name, Email, Task, Due date, Status. Add two rows of fake data using your own email address.
- Open Claude and paste this prompt:
I have no coding experience. Write a complete Google Apps Script for a script
bound to a Google Sheet.
Sheet layout: row 1 is headers. Column A = Name, B = Email, C = Task,
D = Due date, E = Status.
What it should do: add a custom menu called "Reminders" with one item,
"Send reminders now". When clicked, email every row where Status is empty,
using MailApp. Subject: "Reminder: <Task>". Body: a short friendly message
with the name, task and due date. After sending, write "Sent" in column E.
Skip rows with no email. Stop and show a message if I am near my daily
email limit.
Give me the full code in one block, then numbered steps for pasting and
running it, then a list of the permissions it will ask for.
- Read Claude's reply. Check that the code mentions the columns you named and uses a menu called Reminders.
- In your sheet, click Extensions > Apps Script. This opens a script bound to the sheet.
- Delete the sample code in the editor and paste Claude's code. (Verify this step: the editor's file name and layout may differ slightly from other guides.)
- Click the save icon, then reload your sheet tab.
- A Reminders menu appears in the sheet's menu bar. Click Reminders > Send reminders now.
- Approve the permission screen (see the next section), then check your inbox and column E.
What code should Claude produce?
Your result will differ in wording, but it should look like this. This sample uses only documented Apps Script methods and a menu pattern from Google's menu guide.
function onOpen() {
SpreadsheetApp.getUi()
.createMenu('Reminders')
.addItem('Send reminders now', 'sendReminders')
.addToUi();
}
function sendReminders() {
const sheet = SpreadsheetApp.getActiveSheet();
const rows = sheet.getDataRange().getValues();
let sent = 0;
for (let i = 1; i < rows.length; i++) {
const [name, email, task, due, status] = rows[i];
if (!email || status) continue;
if (MailApp.getRemainingDailyQuota() < 1) {
SpreadsheetApp.getUi().alert('Daily email limit reached. Stopped after ' + sent + ' emails.');
return;
}
MailApp.sendEmail(
email,
'Reminder: ' + task,
'Hi ' + name + ',\n\nA reminder that "' + task + '" is due on ' + due + '.\n\nThank you.'
);
sheet.getRange(i + 1, 5).setValue('Sent');
sent++;
}
SpreadsheetApp.getUi().alert(sent + ' reminder(s) sent.');
}
Row 1 is skipped because the loop starts at index 1. The row number in the sheet is i + 1 because lists in code start at 0.
What happens the first time you run it?
Google asks you to authorize the script. Google's documentation says an authorization dialog appears when a script that needs permission is run. This script sends email, and the MailApp method lists the scope script.send_mail.
You may also see a warning that the app is unverified. Google explains that an unverified app is an app or Apps Script that requests a sensitive or restricted OAuth scope without having been through Google's review. For a script you pasted into your own sheet, this is expected. Read the permission list. If it asks for something your prompt never mentioned, such as access to your Drive, stop and ask Claude why.
To remove a script's access later, open the Security section of your Google Account, click See all connections under "Your connections to third-party apps & services", select the script, then click Delete all connections you have with APP_NAME and Confirm, as Google describes.
What if Claude's code does not work? (Method 2: the fix loop)
Paste the error back to Claude. Do not try to fix the code yourself.
- In the Apps Script editor, click Execution log at the top. Google says logs stream in real time when you run a function.
- Copy the red error text. Copy your full code too.
- Tell Claude: "This script gave this error. Explain the cause in one sentence, then give me the full corrected script."
- Paste the new version over the old one, save, and run again.
Ask Claude to add console.log lines if the cause is unclear. Google's logging page says you can use either Logger or console in the execution log, but those logs do not persist very long.
Method 3: how do you run the script automatically?
Add a time-driven trigger. Google says triggers can run as often as every minute to as rarely as once per month, and that installable triggers run under the account of the person who created them.
- In the editor, click the Triggers icon (an alarm clock) on the left. (Verify this step: the menu may differ.)
- Click Add Trigger at the bottom right, choose
sendReminders, and choose a time-driven event type and schedule. - Click Save.
If you would rather not edit menus, ask Claude: "Add a function that creates a daily time-driven trigger for sendReminders at 9am." Test manually several times before you let it run unattended.
Which method should you choose?
| Method | Cost | Difficulty | Limits | Best for |
|---|---|---|---|---|
| Claude chat, paste into Sheets | Free | Easiest | You paste and run it yourself | First scripts, one-off jobs |
| Fix loop with the Execution log | Free | Easy | Needs the error text | Any script that fails |
| Time-driven trigger | Free | Medium | 90 min/day of trigger runtime on consumer accounts | Daily or weekly jobs |
What's free and what costs money?
Apps Script is free, and the limits differ by account type. These figures are from Google's quotas page, as of 15 October 2026.
| Limit | Consumer (gmail.com) | Google Workspace |
|---|---|---|
| Script runtime | 6 min per execution | 6 min per execution |
| Custom function runtime | 30 sec per execution | 30 sec per execution |
| Triggers total runtime | 90 min per day | 6 hr per day |
| Email recipients per day | 100 | 1,500 |
| URL Fetch calls per day | 20,000 | 100,000 |
| Triggers | 20 per user per script | 20 per user per script |
Claude, per Anthropic's pricing page as of 15 October 2026: Free is $0, Pro is $20 a month ($17 a month with annual billing, $200 billed up front), and Max starts at $100 a month. Usage limits reset on a rolling five-hour window, and paid plans add weekly limits.
What can go wrong, and how do you fix it?
- No Reminders menu appears. The
onOpenfunction only runs when the file opens. Reload the sheet tab. - A permissions error appears after Claude adds a new feature. Google says that when new permissions are added you must manually run a function in the editor once to trigger the authorization dialog.
- A custom function like
=SENDMAIL()fails. Google says custom functions cannot affect cells other than the ones they return to, and must return within 30 seconds. Tasks that send email or edit other cells belong in a menu item, not a cell formula. Say "use a custom menu, not a custom function" in your prompt. - The script stops partway. You may have passed a quota. Google says exceeding a quota makes the script throw an exception and stop. The sample script checks the remaining email quota first.
- Claude used code that Apps Script rejects. Google says the V8 runtime does not support ES6 modules (
import/export). Tell Claude: "This must run in Google Apps Script. Do not use imports." - Wrong rows get emailed. Test on the practice copy with only your own email address first.
Is this allowed, and what's still unclear?
Is this allowed? Writing scripts for your own Google account is what Apps Script is for. Two cautions apply. First, a script only runs with the permissions you grant, so never authorize code you do not understand. Second, if the script emails other people, you are responsible for what it sends: follow your local rules on commercial email (such as CAN-SPAM in the US) and your employer's or school's policies. Do not use scripts to send unsolicited bulk email or to get around any service's limits.
Never paste passwords or API keys into a chat with Claude. If a script needs a key, use a placeholder and ask Claude where to store it safely.
What's still unclear? Claude cannot open your sheet from the chat window, so its code is only as accurate as the layout you describe. A wrong column letter produces a script that runs and does the wrong thing, which is harder to spot than an error. Always test on a copy.
Plan details also change. Anthropic publishes usage multiples rather than fixed message counts, so how much script-writing a Free plan covers in one session is not stated on the pricing page. Google says quotas can change without notice, so check its quotas page if you send close to 100 messages a day.
Where to go next
If your task is about formulas rather than scripts, see How to Write Google Sheets Formulas With ChatGPT or Claude. To extend the example above, read How to Send Emails From Google Sheets Automatically Without Paid Add-ons. To log incoming mail into a sheet, see How to Connect Gmail to Google Sheets and Log Every Email Automatically. For turning your sheet into a data source, read How to Turn a Google Sheet Into an API.
Last checked: 15 October 2026.
Frequently asked questions
Can Claude write Google Apps Script for me?
Yes. You describe the task in plain English, Claude replies with code, and you paste it into the Apps Script editor from Extensions > Apps Script in your sheet. Claude does not edit your sheet directly from a chat, so you still paste, authorize and run the code yourself. Always test on a copy first.
Do I need a paid Claude plan to write Apps Script?
No. Anthropic's pricing page lists file creation and code execution on the Free plan, as of 15 October 2026. Paid plans mainly add more usage per session, plus Claude Code, which is not needed for a first Apps Script. Apps Script itself is free with a Google account.
Why does Google say my script is from an unverified app?
Google shows an unverified app screen when a script requests a sensitive or restricted permission and has not been through Google's verification. A script you pasted into your own sheet is not verified. Read the permission list, and continue only if the script does what you asked for.
How many emails can an Apps Script send per day?
Google's quotas page lists 100 email recipients per day for consumer accounts such as gmail.com and 1,500 for Google Workspace accounts, as of 15 October 2026. If your script goes over a quota, it throws an error and stops running.
What should I do when Claude's code gives an error?
Copy the full error message and the code, paste both back to Claude, and ask it to explain the cause and give the corrected full script. Open the Execution log at the top of the editor to see what the script did before it failed.
Sources
- Extending Google Sheets, Google for Developers (2026-09-03)
- Bound scripts, Google for Developers (2026-10-07)
- Quotas for Google Services, Google for Developers (2026-09-03)
- Custom functions in Google Sheets, Google for Developers (2026-09-03)
- Custom menus in Google Workspace, Google for Developers (2026-10-15)
- Logging, Google for Developers (2026-10-15)
- Authorization for Google Services, Google for Developers (2026-10-15)
- Unverified apps, Google Cloud Help (2026-10-15)
- Installable Triggers, Google for Developers (2026-10-15)
- V8 runtime overview, Google for Developers (2026-09-03)
- Class MailApp, Google for Developers (2026-10-15)
- Claude pricing, Anthropic (2026-10-15)
- Prompting best practices, Anthropic (2026-10-15)