← Back to library

Run your custom Gemini Gem on Gmail and Drive triggers

Amanda Caswell of Tom's Guide added custom Gems to Google Workspace Studio flows. A trigger such as an incoming email runs an Ask a Gem step, and its output feeds further actions: Gmail draft replies she reviews, summaries in Docs templates or parsed data in Sheets. She also lists prerequisites.

  • OutcomeTrigger a custom Gem automatically from Gmail, Drive, Forms, Sheets or Calendar events and pass its answer on to draft replies, documents or tracking sheets.
  • SetupUnder an hour
  • LevelStarter
  • CreditAmanda Caswell
View original
Works with
Gemini

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • You already rely on a custom Gem for a repeated task
  • Your account can open Workspace Studio
  • The task starts from a Workspace event

Not for: Free personal Google accounts, which cannot use Workspace Studio; Gems that call external tools beyond your Drive files

What do you need, and what do you get?

You need

  • A custom Gem grounded only in Drive files such as Docs, Sheets or PDFs
  • Workspace admin approval for Gemini actions, if you are not the admin
  • A trigger event and the follow-on apps

You get

  • A running flow that invokes your Gem in the background
  • Reply drafts waiting in Gmail for your approval
  • Summaries in Docs templates and rows in tracking Sheets

How does it work, step by step?

  1. Check accessOpen studio.workspace.google.com; an error means a personal account or Gemini actions not enabled by your admin.
  2. Ground the Gem in DriveMake sure the Gem's knowledge comes only from Drive files, or it will not appear in Studio.
  3. Create a flow with a triggerStart from a template or describe the rule, such as a new email or form submission.
  4. Add Ask a GemUnder AI actions, choose Ask a Gem, connect your Gem, then chain actions that use its answer.
  5. Test, then turn onUse Test run to check the output, fix issues, and switch the flow on.

The prompt

Our own prompt, inspired by Amanda Caswell and written to work in Gemini. Values in lime are placeholders.

Prompt0 variables
Gem instructions: You triage incoming [customer / vendor] emails for [team]. Use only the attached Drive files [policy doc, price sheet]. For each email return: category, urgency (high/normal/low), a two-sentence summary, the facts from our files that apply, and a draft reply under 120 words in our tone. If the files do not answer the question, say so and suggest who should reply. Never promise refunds, dates or prices that are not in the files.

Inspired by Amanda Caswell: I turned Gemini Gems into automated Google Workspace agents — here's how. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Keep the Gmail step at drafts so you review before anything is sent.
  • Admin permission is the usual blocker at work; ask IT early.

Our take

Amanda Caswell of Tom's Guide shows a practical bridge from chat to automation for teams already on Google Workspace: a trigger such as incoming email runs an Ask a Gem step whose output feeds Gmail draft replies she reviews, summaries in Docs templates or parsed data in Sheets. Two setup gotchas, Drive-only grounding and admin enablement, will save people a confused hour. Judge it on a narrow first flow: one trigger, one Gem, drafts only. Measure whether the drafts need heavy edits before chaining more actions. Keep anything that sends externally behind your review. Confirm your Workspace admin has enabled the required features before investing time. Ground the Gem only in Drive folders that should influence replies. Test with a sample mailbox you control. Document which Gem version each flow uses so upgrades do not silently change tone. Revoke flows you no longer monitor. Log each flow run for a week and skim failures before expanding triggers.

Where the time goes back: A Gem you trust stops being something you open and paste into; the flow runs it on each event and routes the answer to where the work continues.

FAQ

Which Gems can be used?
Only those grounded in Drive files; ones relying on outside extensions do not show up.
What can the Gem's answer feed?
Further steps such as Gmail drafts, Docs summaries from templates and Sheets rows.

Source and credit

Inspired by Amanda Caswell. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
I turned Gemini Gems into automated Google Workspace agents — here's how
Creator
Amanda Caswell
Published on
Tom's Guide
Original date
May 27, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Gemini
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; nothing was sent, filed, purchased or published.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Operations & Admin

All 203 Operations & Admin playbooks →

Related playbooks

Operations & AdminPrompt✓ AI dry run

Audit what your agent assumes about you, with evidence

Ask your agent to list the preferences, limits and past choices it uses to shape its work for you, label each as something you said, something it inferred or of unknown origin, show where it came from and what it could change, then bring you the five that matter most so you can confirm, correct, narrow or delete them before it edits anything.

Credit: Michael Fenech (@Michael_Fenech_)

Minutes
Operations & AdminWorkflow✓ AI dry run

Catch the emails your AI inbox assistant never processed

Run your AI email triage workflow as usual, label every message it handles, and add a second, independent workflow that once a day searches the inbox for recent mail without that label and sends you the list, alongside retries on the model steps and a production-status sign-in so the trigger does not silently expire.

Credit: Huzaifa_Aamish

Under an hour
Operations & AdminPrompt✓ AI dry run

Check an AI answer or plan before you act on it

Paste in an AI-made plan and get a short verdict: what is backed by evidence, what is contradicted, what is only a risk, and what to check next.

Credit: u/softdeveloper23 on r/PromptEngineering

Minutes
Operations & AdminRoutine✓ AI dry run

Draft a weekly recap post from your GitHub activity

Start Monday with a ready draft of what you shipped last week, plus a stats page, instead of trying to remember.

Credit: Yash Kumar Saini

An afternoon+
Operations & AdminWorkflow✓ AI dry run

Get a weekday brief of only the Google Chat you missed

Start each weekday with one short summary of the Google Chat messages you have not read yet, grouped by space with a link to each, while your unread badges stay in place.

Credit: Mete Atamel

Under an hour