Automation library · Lead generation

Generate overdue lead follow-up Gmail drafts

Started by a clock, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to Gemini. 19 steps, 4 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini

19 stepsMedium: a working afternoon
4Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 6Service 10

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

  1. 1Google Gemini Chat ModelLm Chat Google GeminiModel
  2. 2Daily 9AM TriggerSchedule triggerStarts it
  3. 3Basic LLM ChainChain LlmModel
  4. 4Read Leads SheetGoogle SheetsService
  5. 5Gmail - Create DraftGmailService
  6. 6Filter - Active Leads OnlyIfLogic
  7. 7Update FollowUp Status with DatesGoogle SheetsService
  8. 8Filter - 5+ Days No ContactFilterLogic
  9. 9Notify - Draft ReadySlackService
  10. 10Check - Transcript Exists?IfLogic
  11. 11HTTP - Download File from Google DriveHttp RequestService
  12. 12Alert - Missing TranscriptSlackService
  13. 13Check - Supported File TypeIfLogic
  14. 14Alert - Download FailedSlackService
  15. 15Route - Is TXT?IfLogic
  16. 16Alert - Unsupported File TypeSlackService
  17. 17Extract Text: txtExtract From FileService
  18. 18Extract Text: PdfExtract From FileService
  19. 19Transcript Data From FilesCodeLogic

How it's built

Starts on
A clock
Steps
19, with 4 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, Slack
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts, and a key for Gemini. 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 Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 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 19 steps before you point it at anything that matters.