Education only, not legal advice. Email and privacy laws differ by country; check the official pages linked in lesson 3 before you send.
By the end of this lesson you will have a small Apps Script, written by your agent, that sends only the rows you approved, follows up in the same conversation, stops when someone replies, and writes every action into the Log. You will test all of it on your own second address before a real person sees anything.
You need: the Sheet from lesson 3 with at least two test rows, a second email address you own, and your coding agent · Time: 12 minutes
The workflow needs three things a chat window cannot give you: it must run while you are away, it must stop at a limit, and it must do the same thing every time. Apps Script gives you all three:
- It is free, and it runs under your own Google account, so the email comes from your mailbox, not from a stranger's server.
- It has triggers. A trigger is a rule that runs one of your functions at a time you choose, such as every weekday at 10:00.
- It has a daily script limit: 100 recipients a day on a free Gmail account, 1,500 on a Workspace account. That limit is a built-in safety ceiling for a beginner, not a target.
There are two ways to get the script into your account:
- The editor. In the Sheet, open the Apps Script editor from the Extensions menu. If your menu has moved, use the current Apps Script entry for the Sheet. Paste the agent's code, save, and run.
- clasp. Google's command-line tool that lets your agent edit the script as local files. It needs Node.js, and its README states the version it needs. Open the Apps Script project settings once and turn on the Apps Script API, then:
Why?The agent writes the script, but the agent does not run it. A script with a daily limit, a lock and a log is boring in the best way: it does the same six things in the same order every weekday. If something goes wrong, you read the Log and know which step failed. A chat that "sends the emails" gives you no limit, no lock and no record.
Log in free to read the rest of this lesson
Every lesson is free. A free account unlocks all of them and saves your progress.
Still to come in this lesson:
- The first prompt: send only the rows you approved
- Test the whole thing on your own second address
- The second prompt: follow up in the same conversation
- The third prompt: stop on a reply, a bounce or a no
- Recap