Automation library · Chat assistants

Draft and approve client portfolio emails with Gemini

Started by a change in a Google Sheet, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to Gemini. 13 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

13 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 2Logic 5Service 5

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

  1. 1Trigger: Portfolio UpdatedGoogle Sheets triggerStarts it
  2. 2LLM: GeminiLm Chat Google GeminiModel
  3. 3Parse Trades & TickersCodeLogic
  4. 4AI: Draft Client EmailAgentModel
  5. 5Mock: Client Risk ProfileSetLogic
  6. 6Slack: Request Advisor ApprovalSlackService
  7. 7Mock: Market ContextSetLogic
  8. 8Wait: Advisor ActionWaitLogic
  9. 9Route: Approve vs RejectSwitchLogic
  10. 10Gmail: Send to ClientGmailService
  11. 11Slack: Draft Rejected AlertSlackService
  12. 12Sheet: Mark as CompletedGoogle SheetsService
  13. 13Sheet: Mark 'Needs Review'Google SheetsService

How it's built

Starts on
A change in a Google Sheet
Steps
13, with 1 branch, 1 loop or waits
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 change in a Google Sheet.

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