Every new Gmail email becomes a Notion task, with Claude's action items and summary already on the page.
Uses
Claude
GmailNotion
Turn every new email into a Notion task with its to-dos
Whenever a new email arrives in your Gmail inbox, the AI reads it twice: once to pull out what you actually have to do about it, and once to say what it was about. A task page is then created in your Notion database with both already on it.
Each page carries the action items as to-dos you can tick off, the summary beneath them, and the sender, the arrival time and a link back to the original email at the bottom. The title is the subject line with reply markers stripped, so the database reads as a task list rather than a second inbox. An email that asks nothing of you still gets a page, marked plainly as one with nothing to do. Long messages are trimmed before they reach the AI, and quoted reply chains are ignored.
You need a Notion database shared with your Notion integration. Narrowing the trigger to one sender or domain keeps a busy inbox from turning into hundreds of pages.
email.When an email arrives. Save it as email.tasksDatabaseId to blank.Set tasksDatabaseId to blank.titleProperty to Name.Set titleProperty to Name.email.subject and save it as emailSubject.Trim email.subject and save it as emailSubject.email.from and save it as emailFrom.Trim email.from and save it as emailFrom.email.date and save it as emailReceived.Trim email.date and save it as emailReceived.email.body to 12000 characters and save it as emailBody.Shorten email.body to 12000 characters and save it as emailBody.emailFrom
SUBJECT
emailSubject
RECEIVED
emailReceived
EMAIL
emailBody
List every concrete thing the recipient now has to do. Rules:
- One task per line, each line starting with '- '.
- Start each task with a verb: 'Send Dana the Q3 renewal quote by Friday', 'Book the vendor call'.
- Carry the deadline, amount, name or link the task needs into the line itself, so it can be done without reopening the email.
- At most five tasks, ordered by what has to happen first.
- Only tasks for the recipient. Something the sender promised to do is not a task, and neither is 'read this email'.
- If the email asks nothing of the recipient — a newsletter, a receipt, a notification, an FYI — reply with exactly NONE and nothing else.
Write only the task lines: no heading, no numbering, no commentary.'. Save it as actionItems.
Maximum response length: 600emailFrom
SUBJECT
emailSubject
RECEIVED
emailReceived
EMAIL
emailBody
Write two to four sentences of plain prose covering what the email is about, what it asks for, and anything that is time-bound, costs money or commits the recipient to something. Keep the names, dates, amounts and decisions; drop greetings, signatures, legal footers and quoted history. Do not open with 'This email', do not add a heading or bullets, and do not add a closing line — write the summary and stop.'. Save it as summary.
Maximum response length: 500subject, sender, received, thread_id, summary, and action_items and save it as page.Run Python code on subject, sender, received, thread_id, summary, and action_items and save it as page.page.title in tasksDatabaseId.Create the page page.title in tasksDatabaseId.