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.

n8nRead on 2026-11-167 steps

Steps

  1. Trigger: Runs every weekday morning on a schedule
  2. Fetches sent and received Gmail messagesGmail
    Over the same look-back window.
  3. Keeps threads where the newest message is yours
    Excludes automated senders by keyword.
  4. Filters threads silent for the configured days
    Between the configured minimum and maximum.
  5. Sends the thread context to ClaudeAnthropic Claude
    Anthropic Messages API; prioritized follow-up draft.
  6. Output: Saves each follow-up as a Gmail draftGmail
    Reply on the original thread.
  7. 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