To-Do List Template
Star an email in Gmail and its subject and body are added as a task to your to-do list Table.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/add-starred-gmail-emails-to-to-do-list/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Personal Productivity · Email management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/add-starred-gmail-emails-to-to-do-list
Set it up with the CLI
- Add it. Copies the folder into
zaps/add-starred-gmail-emails-to-to-do-list/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/add-starred-gmail-emails-to-to-do-list - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy add-starred-gmail-emails-to-to-do-list - Check it. Its recent runs, with status and errors.
npx zap-pack logs add-starred-gmail-emails-to-to-do-list
zaps/add-starred-gmail-emails-to-to-do-list/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 1 to fill in
- connections/gmail.tsThe
gmailaccount it uses - connections/zapier-tables.tsThe
zapier-tablesaccount it uses - triggers/new-starred-email.tsWhat starts it:
gmailstar_message - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: the user stars an email in Gmail (
gmail,star_message). The trigger brings the email's subject and plain-text body. - Zapier Tables (
zapier-tables) adds one record to the to-do list table: the subject and body go in the Message column, and the Channel column is set to "Gmail".
The Zap only adds records. It never edits or deletes rows, and it leaves "Mark as done" unset.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
TASK_TABLE_ID |
The to-do list table: ask which Zapier Table it is, then look up its ID (the long ID in its URL) with the user's Zapier Tables connection |
Also review the defaults with them:
MESSAGE_FIELD(f1) andCHANNEL_FIELD(f3): the table's column keys. The template's table has Message in the first column and Channel in the third. Map the user's columns if they differ.GMAIL_CHANNEL: the dropdown choice written for each task."Gmail"unless their Channel column uses other labels.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/add-starred-gmail-emails-to-to-do-list, replace each REPLACE_… value as this file says, then run npx zap-pack deploy add-starred-gmail-emails-to-to-do-list, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
gmailto the user's Gmail connection for the mailbox whose starred emails should become tasks. Bindzapier-tablesto the user's Zapier Tables connection for the account that owns the table. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/new-starred-email.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect the Gmail trigger's output and the Zapier Tables
create_recordfields with the user's connections before the first test run. Confirm the trigger output hassubjectandbody_plain, and that the table's columns aref1andf3(setMESSAGE_FIELDandCHANNEL_FIELDto match). Fix any key inworkflow.tsthat doesn't match.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP), with a test table the user set up for this, not their real to-do list:
{
"subject": "[install-test] Renew the library card",
"body_plain": "The card expires on Friday."
}
Confirm that one new row appears in the table: Message holds the subject and body, and Channel is "Gmail". If run-status tools aren't available, check the table directly. The user deletes the test row, not the agent.
Notes
- Gmail's starred-email trigger fires for an email starred within two days of arriving.
- Starring a message only adds a row. Un-starring does not remove it.
- Never commit a real table ID.