Go to sheets.new to create a blank Google Sheet.
In your sheet, click Extensions β Apps Script. Delete any code already there.
Copy the prompt below and give it to any AI (ChatGPT, Claude, Gemini). It'll generate the Apps Script code for you.
Paste the generated code into the Apps Script editor and save (Ctrl+S / Cmd+S).
Go back to your Google Sheet. Click β±οΈ 1hSaved β π Install My Scanner
Then go to the Settings tab and paste your API key in the "Gemini API Key" row.
Add rules for specific senders. The AI reads them so you don't have to β and only flags the stuff that actually matters.
Think: newsletters that are 95% fluff, promo emails you keep just in case, notification digests you never read.
π‘ Write your instructions in any language β Spanish, French, Portuguese, etc. The AI will understand and apply them to emails in any language.
Examples of great rules:
Amazon seller newsletters β from: norm@lwn.news, kevin.king@mail.billiondollarsellers.com β "Only flag stuff an Amazon seller needs to know β tactics, policy changes, things that affect my business. Skip the fluff."
Retail promos β from: @target.com, @bestbuy.com β "Only notify me for genuinely big deals (50%+ off or rare sales). Archive everything else."
SaaS notifications β from: @github.com, @linear.app β "Only flag things that need my action β assigned issues, failed builds, mentions. Skip digests and marketing."
Catch-all filter for any email not covered by your rules above. AI will archive obvious junk and only flag things that need your attention.
Pick one or more. Click to expand and set up.
π§ Email: We'll send alerts to your Gmail inbox.
We'll create a custom script with everything pre-filled.
π Gemini API Key (optional β paste now to skip the Settings tab entirely)
It's free. Get yours at aistudio.google.com/apikey in 30 seconds.
In the top menu of your sheet, click Extensions β Apps Script
A new browser tab opens with a code editor β think of it as the "behind the scenes" of your spreadsheet. Delete the few lines already there.
Paste it into the Apps Script editor, then click the πΎ Save icon (or Ctrl+S / Cmd+S).
Go back to your Google Sheet tab
Click β±οΈ 1hSaved (new menu) β π Install My Scanner
Almost everything is pre-filled for you!