Automation library · Chat assistants

Triage Gmail and draft replies with EdenAI

Started by a clock, and works across Discord and Gmail. It hands the judgement calls to a language model. 15 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model

15 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 2Logic 5Service 6

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

  1. 1Every 2h (business hours)Schedule triggerStarts it
  2. 2Eden AI Chat ModelLm Chat Eden AiModel
  3. 3Error TriggerError triggerStarts it
  4. 4Gmail: get unreadGmailService
  5. 5Connection to EdenAIAgentModel
  6. 6Send a messageDiscordService
  7. 7Do you have unread e-mailIfLogic
  8. 8Does it need a reply ?IfLogic
  9. 9Discord : No unread e-mail receivedDiscordService
  10. 10Gmail: create draftGmailService
  11. 11Merge draft link + sumary contentMergeLogic
  12. 12AggregateAggregateLogic
  13. 13To have only one message from the discord botAggregateLogic
  14. 14Discord: Low priority digestDiscordService
  15. 15Discord: send summary and draftDiscordService

How it's built

Starts on
A clock
Steps
15, with 2 branches
Size
Medium: a working afternoon
Connects to
Discord, Gmail
Model
A language model, family not declared

Questions

What does it need to run?

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

How long does it take to set up?

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