📈 Generate portfolio exposure risk summaries with Sheets, Gemini, Slack, and Gmail

⚡ 16 views · 📈 Crypto Trading & Stock Market

Description

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 concentration and generates a professional risk summary using Google Gemini. The report is then sent via email, shared on Slack and logged for historical tracking.

Quick Implementation Steps

What It Does

This workflow performs a complete portfolio risk analysis pipeline. It starts by fetching portfolio data from a Google Sheet and validating whether the required data exists. If valid data is present, it calculates key exposure metrics such as total portfolio value, sector allocation and concentration levels using a Code node.

These calculated metrics are then passed to an AI model (Google Gemini), which generates a concise and professional risk summary. The workflow ensures the output is structured properly before preparing a final report.

The final output is distributed through multiple channels: an email report, a Slack notification and a log entry in Google Sheets. If no portfolio data is available, the workflow gracefully handles the scenario by generating a fallback report and logging it.

Who It’s For

Requirements to Use This Workflow

How It Works & Setup Guide

Step 1: Schedule Trigger

Step 2: Connect Portfolio Data

Step 3: Validate Data

Step 4: Calculate Exposure Metrics

Step 5: Generate AI Risk Summary

Step 6: Parse AI Output

Step 7: Prepare Final Report

Step 8: Deliver Report

Step 9: Fallback Handling

How To Customize Nodes

Add‑ons

Use Case Examples

Troubleshooting Guide

IssuePossible CauseSolution
No data processedEmpty Google SheetEnsure portfolio data exists
AI output not parsedInvalid JSON responseCheck prompt format or parsing node
Email not sentGmail credentials missingReconnect Gmail account
Slack message not deliveredIncorrect channel setupVerify Slack channel ID
Incorrect calculationsMissing numeric valuesValidate sheet data types

Need Help?

If you need assistance setting up this workflow, customizing it for your business or building advanced automation solutions, feel free to reach out to our n8n automation developers at WeblineIndia / Global. Our team specializes in building scalable and production-ready automation workflows tailored to your needs.

We can help you extend this workflow with advanced analytics, dashboards, integrations and enterprise-grade solutions.

🔗 Nodes Used

Google Sheets, Slack, Gmail, Schedule Trigger, AI Agent, Google Gemini Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup