Automation library · Data collection

Draft Gmail replies with Claude

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to Claude. 25 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude

25 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 2Logic 9Service 12

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

  1. 1When Email is ReceivedGmail triggerStarts it
  2. 2Claude Sonnet ModelLm Chat AnthropicModel
  3. 3Check for Approved RepliesSchedule triggerStarts it
  4. 4Normalize Email ContentCodeLogic
  5. 5Process with Claude AIChain LlmModel
  6. 6Find Threads Labeled send-approvedGmailService
  7. 7Fetch Full Thread HistoryGmailService
  8. 8Parse and Validate ResponseCodeLogic
  9. 9Extract Approved Thread IDsCodeLogic
  10. 10Build Conversation TranscriptCodeLogic
  11. 11Escalation Needed?IfLogic
  12. 12Read Pending RepliesGoogle SheetsService
  13. 13Set Business ProfileSetLogic
  14. 14Send Escalation AlertGmailService
  15. 15Check if Reply is NeededIfLogic
  16. 16Match Approved to PendingCodeLogic
  17. 17Create Draft Reply in GmailGmailService
  18. 18Append to Email LogGoogle SheetsService
  19. 19Send Approved Reply in ThreadGmailService
  20. 20Save Pending Reply for ApprovalGoogle SheetsService
  21. 21Mark Reply as SentGoogle SheetsService
  22. 22Clean Up the Leftover DraftGmailService
  23. 23Fetch Gmail LabelsGmailService
  24. 24Prepare Label RemovalCodeLogic
  25. 25Remove Approval Label from ThreadGmailService

How it's built

Starts on
A clock
Steps
25, with 2 branches
Size
Large: read it before trusting it with anything live
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?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

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 25 steps before you point it at anything that matters.