Generate portfolio exposure risk summaries with Sheets, Gemini, Slack, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (every week at 09:00). Along the way it connects Google Sheets, Google Gemini Chat Model, Gmail and Slack.
How it runs
Trigger: On a schedule (every week at 09:00).
- Read Portfolio From Sheet (Google Sheets): uses Google Sheets
- Check Portfolio Data Exists (If): checks a condition and branches into true / false
- Calculate Portfolio Exposure Metrics (Code): runs custom JavaScript code
- Prepare Empty Portfolio Log (Edit Fields (Set)): sets 6 fields: run_date, top_sector, top_sector_exposure…
- Generate Risk Summary (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
- Log Risk Review Result (Google Sheets): append
- Parse Risk Summary (Code): runs custom JavaScript code
- Prepare Risk Report Data (Edit Fields (Set)): sets 8 fields: total_value, top_sector, top_sector_exposure…
- Send Risk Report Email (Gmail): uses Gmail
- Send Risk Report to Slack (Slack): uses Slack
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Portfolio Exposure Risk Summary Generator > n8n + Google Sheets + Gemini + Slack + Gmail --- This workflow automatically analyzes portfolio data from Google Sheets on a scheduled basis, calculates exposure metrics such as sector allocation and…