Automation library ยท Data collection

Re-engage old clients with Claude and Gmail

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to Claude. 20 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Claude

20 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 1Model 3Logic 7Service 9

The steps in the order they run, from what starts it.

  1. 1โฐ Daily Schedule TriggerSchedule triggerStarts it
  2. 2๐Ÿค– Claude 3.7 Sonnet LLMLm Chat AnthropicModel
  3. 3๐Ÿ“‹ Email Structure ParserOutput Parser StructuredModel
  4. 4๐Ÿ“‹ Old Client DatabaseGoogle SheetsService
  5. 5๐Ÿค– Re-engagement Email DrafterAgentModel
  6. 6๐Ÿ”„ Loop: Process Each ClientSplit In BatchesLogic
  7. 7๐Ÿ“ค Send Re-engagement EmailGmailService
  8. 8๐Ÿ“ง Fetch Client's Latest EmailGmailService
  9. 9๐Ÿ“Š Update Email Count in SheetGoogle SheetsService
  10. 10๐Ÿ“… Date Checker (30-Day Window)CodeLogic
  11. 11โฑ๏ธ Rate Limit Wait (1 Min)WaitLogic
  12. 12๐Ÿ”€ Route: Client Replied Recently?SwitchLogic
  13. 13๐Ÿ“ Update: Mark Reply ManuallyGoogle SheetsService
  14. 14๐Ÿ“‚ Fetch Situation-Based PromptGoogle SheetsService
  15. 15๐Ÿ“ฉ Fetch Followup Message TemplateGoogle SheetsService
  16. 16โœ… Update: Mark Running StatusGoogle SheetsService
  17. 17๐Ÿ”€ Merge: Templates + ConversationsMergeLogic
  18. 18๐Ÿ“ฌ Fetch 10 Email ConversationsGmailService
  19. 19๐Ÿ“ฆ Prepare AI Input BundleAggregateLogic
  20. 20๐Ÿ“ฆ Bundle Email ConversationsAggregateLogic

How it's built

Starts on
A clock
Steps
20, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets
Model
Claude

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for Claude. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 20 steps before you point it at anything that matters.