Draft follow-up email reminders in Gmail with Anthropic Claude
Go to WorkflowDescription
Quick overview
This workflow runs every weekday morning to find Gmail threads where your last sent message has not been replied to, generates short follow-up drafts with Anthropic Claude, saves each as a Gmail draft in the original thread, and emails you a digest of the queued follow-ups.
How it works
Runs every weekday morning on a schedule.
Fetches messages you sent in Gmail and messages you received over the same look-back window.
Compares messages by Gmail thread to keep only threads where the newest message is still yours, excluding automated senders by keyword and limiting the list to a maximum count.
Filters the remaining threads to only those silent for between the configured minimum and maximum number of days.
Sends the thread context (recipient, subject, and last-sent snippet) to the Anthropic Messages API (Claude) to generate a prioritized follow-up draft for each thread.
Saves each generated follow-up as a Gmail draft reply on the original thread and sends you a plain-text digest email listing the drafts sorted by priority.
Setup
Connect your Gmail credentials for reading sent/received messages, creating drafts, and sending the digest email.
Provide an Anthropic API key (set ANTHROPIC_API_KEY in your n8n environment) to allow the HTTP request to Claude.
Update the configuration values for look-back days, silence window (min/max), excluded sender keywords, your name, tone, digest recipient, and maximum threads to process.