Automation library · Research and reporting

Summarize daily Gmail emails with Gemini and WhatsApp

Started by a clock, and works across Gmail, Google Docs, Slack and WhatsApp. It hands the judgement calls to Gemini. 20 steps, 5 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini

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

The flow

Starts it 2Model 1Logic 10Service 7

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Error TriggerError triggerStarts it
  3. 3⚙️ Set ConfigurationSetLogic
  4. 4Gmail: Send Error AlertGmailService
  5. 5Gmail: Fetch Primary EmailsGmailService
  6. 6Sanitize & Parse EmailsCodeLogic
  7. 7Inbox Has Emails?IfLogic
  8. 8Build LLM PromptCodeLogic
  9. 9Format Empty SummaryCodeLogic
  10. 10Generate AI SummaryGoogle GeminiModel
  11. 11Enable Google Docs?IfLogic
  12. 12Enable Gmail Alert?IfLogic
  13. 13Enable Slack Alert?IfLogic
  14. 14Enable WhatsApp Alert?IfLogic
  15. 15Format Populated SummaryCodeLogic
  16. 16Google Docs: Create New DocGoogle DocsService
  17. 17Gmail: Send Overview AlertGmailService
  18. 18Slack: Post Overview AlertSlackService
  19. 19WhatsApp: Send Overview AlertWhats AppService
  20. 20Google Docs: Append SummaryGoogle DocsService

How it's built

Starts on
A clock
Steps
20, with 5 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Docs, Slack, WhatsApp
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Docs, Slack and WhatsApp 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. 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.