Gmail follow-up drafts with Claude
Claude drafts follow-ups for unanswered threads. This n8n template runs every weekday morning. It fetches the messages you sent and received in Gmail over a look-back window and keeps only threads where the newest message is still yours, excluding automated senders by keyword. Threads silent between a minimum and a maximum number of days are sent, with recipient, subject and last-sent snippet, to the Anthropic Messages API, where Claude writes a prioritized follow-up draft. Each draft is saved as a Gmail reply in the original thread, and you receive a plain-text digest listing the drafts by priority. It suits people who follow up on their own sent emails.
Steps
- Trigger: Runs every weekday morning on a schedule
- Fetches sent and received Gmail messagesGmail
Over the same look-back window. - Keeps threads where the newest message is yours
Excludes automated senders by keyword. - Filters threads silent for the configured days
Between the configured minimum and maximum. - Sends the thread context to ClaudeAnthropic Claude
Anthropic Messages API; prioritized follow-up draft. - Output: Saves each follow-up as a Gmail draftGmail
Reply on the original thread. - Output: Sends you a plain-text digest emailGmail
Drafts sorted by priority.
Limits
- Needs an Anthropic API key set as an environment variable.
- Only threads where your message is the newest are considered.
What it does well
- Saves drafts in the original Gmail thread.
- Sends a digest listing drafts by priority.
Before you import
After the import, connect Gmail, set an Anthropic API key in the n8n environment, and adjust the look-back days, silence window and tone.
Similar templates
Lead follow-up emails with GPT-4o
Also for sales and leads, 10 steps.
Enrich HubSpot contacts with Gemini
Also for sales and leads, 5 steps.
Verify Jotform leads, sync to HubSpot
Also for sales and leads, 6 steps.
Anthropic Claude and Gmail: 6 templates compared
Same two apps, different steps.
Follow-ups and reminders
Other templates that do this task.