P26-01-30">
n8n Finance AI Agents
8 min read Automation

Automate Financial News & Portfolio Tracking with n8n & AI (Beginner-Friendly Guide)

Most investors waste hours manually tracking market news and portfolio performance. This 3-part automation system pulls financial headlines, analyzes your Google Sheets portfolio, and delivers AI-powered insights automatically - running on a schedule with free tools. Perfect for beginners looking to automate their financial workflows.

The Financial Automation Challenge

Active investors face a constant dilemma: staying informed requires hours of manual research, but skipping this work risks missing critical market movements. Between checking financial news, monitoring portfolio positions, and analyzing charts, the workload quickly becomes unsustainable for individuals and small firms.

This automation solves three core problems: 1) Automatically pulling relevant financial headlines, 2) Continuously analyzing portfolio performance, and 3) Generating objective technical analysis - all delivered through convenient Discord or Telegram notifications.

Key benefit: The system runs on a schedule (daily at 9:10 AM in our example) and handles all the routine monitoring work automatically, freeing up your time for strategic decisions.

How the 3-Part System Works

The complete automation consists of three connected workflows that build upon each other:

Part 1: Financial Headline Monitoring

Pulls the latest market news from investing.com using RSS feeds, then uses AI to generate concise summaries of each article. This ensures you never miss important developments in your sectors.

Part 2: Portfolio Analysis

Connects directly to your Google Sheets portfolio, where formulas automatically fetch current market prices. The AI agent analyzes each position's performance, calculates P/L, and identifies any concerning trends.

Part 3: Technical Chart Analysis

Generates TradingView-style charts via the Chartim API, then sends each chart to an AI model for pattern recognition and objective commentary. Built-in delays respect API rate limits.

Beginner-friendly design: Each component is explained step-by-step in the tutorial, with no coding required thanks to n8n's visual workflow builder.

Google Sheets Portfolio Setup

The heart of the system is a properly structured Google Sheets file that serves as your portfolio dashboard. Here's how to set it up:

Step 1: Create Your Spreadsheet

Name your file "Portfolio" and create these columns: Instrument Name, Symbol, Data Source, Purchase Currency, Quantity, Purchase Price, Current Price (auto-fetched), and Performance.

Step 2: Add Automatic Price Formulas

Use Google Finance or other market data functions to automatically pull current prices. For example: =GOOGLEFINANCE("NASDAQ:AAPL","price") for Apple stock.

Step 3: Calculate Performance Metrics

Add formulas to calculate dollar and percentage gains/losses for each position. These will feed directly into the AI analysis.

Pro tip: Add a "Notes" column where you can flag special considerations for certain positions that the AI should factor into its analysis.

Connecting n8n to Google Sheets

To enable n8n to read your portfolio data, we need to set up secure API access:

Step 1: Enable Google Sheets API

In Google Cloud Console, navigate to APIs & Services → Library → search for "Google Sheets API" → Enable.

Step 2: Create OAuth Credentials

Create a new OAuth client ID (web application type) with authorized redirect URI pointing to your n8n instance.

Step 3: Configure n8n Credentials

In n8n, add a new Google Sheets credential using the client ID and secret from Google Cloud. Test the connection to verify access.

The system is now ready to read your portfolio data automatically on schedule. At 2:15 in the video tutorial, you'll see exactly how to map the Google Sheets columns to the AI analysis workflow.

AI Agent Configuration

The AI agent serves as your automated market analyst, processing both news and portfolio data. Here's how to configure it:

Role Definition

The prompt defines the agent as a "market analysis assistant" with strict instructions to be factual, concise, and cautious. It should only flag real risks, not invent concerns.

Analysis Parameters

For each portfolio position, the agent calculates P/L, checks market conditions, performs light technical analysis, and scans for relevant news - all based on the Google Sheets data.

Output Structure

Results are formatted per asset with clear headings, making them easy to parse visually or feed into further automations. No summaries or invented data are included.

Behavior control: The prompt specifically instructs the AI to avoid assumptions, emotional language, or commentary beyond the available data.

Setting Up Discord Notifications

The final step delivers all analysis through Discord (or Telegram) for easy mobile access:

Step 1: Create Discord Webhook

In your Discord server settings, create a new webhook in the desired channel and copy the webhook URL.

Step 2: Connect n8n to Discord

Add a Discord node to your n8n workflow and paste the webhook URL. Configure the message format to display the AI analysis clearly.

Step 3: Message Formatting

Structure the message to include: Portfolio summary, Individual position analysis, Relevant news items, and Chart analysis (from Part 3). Add emoji for quick visual scanning.

The system now automatically sends your morning market briefing at the scheduled time, combining all three components into one convenient notification.

Testing the Complete Workflow

Before running live, thoroughly test each component:

Manual Trigger Test

Run the workflow manually to verify: Google Sheets connection works, AI analysis is accurate and properly formatted, Discord message displays correctly.

Schedule Verification

Set a test schedule (e.g., every 10 minutes) to confirm the automation runs reliably at the designated times.

Error Handling

Add error notification nodes to alert you if any part fails (API limits, connection issues, etc.). The 20-second delay between chart requests prevents rate limit errors.

Monitoring tip: For the first week, review the automated outputs alongside your manual research to verify the system's reliability before fully trusting its analysis.

Watch the Full Tutorial

See the complete step-by-step implementation in the video tutorial below. At 4:30, you'll see exactly how to configure the AI agent prompt for optimal financial analysis.

n8n financial automation tutorial video

Key Takeaways

This automation system demonstrates how combining n8n, Google Sheets, and AI can transform your financial monitoring from a time-consuming chore into an efficient, automated process.

In summary: 1) Automatically pull market news via RSS, 2) Connect to your Google Sheets portfolio for live analysis, 3) Generate AI-powered insights delivered to Discord/Telegram on your schedule - all with free tools and no coding required.

Frequently Asked Questions

Common questions about financial automation

The system has three main parts working together: First, it pulls financial headlines from RSS feeds and generates AI summaries to keep you informed. Second, it reads and analyzes your portfolio data directly from Google Sheets, calculating performance for each position.

Third, it generates trading charts with technical analysis using market data. All components run on your preferred schedule and deliver consolidated results through Discord or Telegram notifications.

  • RSS feed monitoring for market news
  • Google Sheets integration for portfolio tracking
  • AI analysis of both news and portfolio data

No programming skills are required. The tutorial is designed specifically for beginners using n8n's visual workflow builder. You connect pre-built nodes by dragging and dropping, with each step clearly explained.

The Google Sheets component handles complex calculations through built-in formulas, so you don't need to write any code there either. The most technical part - setting up Google API credentials - is walked through step-by-step in the video at the 3:45 mark.

  • Visual workflow builder requires no coding
  • Google Sheets formulas do the heavy lifting
  • Step-by-step video guide covers every detail

You can configure any schedule that fits your investment strategy. The example in the tutorial runs daily at 9:10 AM to provide a morning market briefing, but n8n supports minute, hourly, or weekly triggers.

The system includes intelligent pacing with built-in delays (20 seconds between chart requests) to stay within free API rate limits. For active traders, you might run the news scanner hourly while keeping the full analysis on a daily schedule.

  • Flexible scheduling from minutes to months
  • Built-in delays prevent API limits
  • Different components can run on different schedules

The workflow uses a general purpose language model similar to GPT, configured specifically as a market analysis assistant. It's carefully prompted to focus on facts from your data rather than speculation.

The AI is instructed to be factual, concise, and cautious - only flagging potential risks when they're evident in your portfolio data or the news. It avoids emotional language and doesn't make predictions beyond the available information.

  • General purpose LLM specialized for finance
  • Fact-based analysis avoids speculation
  • Conservative approach flags only verified risks

Absolutely. The base template includes essential columns like instrument names, symbols, purchase details and automatic price fetching formulas. However, you can extend it to match your specific investment approach.

Many users add columns for dividends, sector breakdowns, position sizing rules, or custom metrics. The AI agent will analyze whatever data you provide. At 6:20 in the video, you'll see how to map additional columns to the analysis workflow.

  • Add dividend tracking for income portfolios
  • Include sector/industry for diversification analysis
  • Custom metrics for your specific strategy

The third part of the system generates candlestick charts via the Chartim API using data pulled from your Google Sheets. These visual charts are then sent to the AI model for pattern recognition and analysis.

The AI provides objective commentary on visible patterns (support/resistance, trends, etc.) without emotional bias. It focuses on describing what's present in the charts rather than predicting future movements. The analysis stays grounded in the visual data.

  • Chartim API generates professional charts
  • AI describes patterns without predictions
  • Objective approach reduces emotional bias

The workflow includes built-in protections against rate limits. A 20-second delay between chart requests ensures compliance with free tier API restrictions. For larger portfolios, you can extend this delay as needed.

If you do hit limits, the system includes error handling to pause and retry later. For heavy usage, consider upgrading to paid API plans or distributing requests across multiple services. The video at 8:10 shows how to adjust the timing settings.

  • 20-second delays between chart requests
  • Error handling pauses and retries
  • Paid API plans available for heavy usage

GrowwStacks specializes in building custom financial automations for investment professionals. We can adapt this system to your specific data sources, analysis requirements, and reporting needs.

Whether you're managing personal investments or institutional portfolios, our team handles the technical implementation so you can focus on strategy. We'll design a solution that integrates with your existing tools and delivers the precise insights you need.

  • Custom workflows for your exact requirements
  • Professional implementation by automation experts
  • Free consultation to discuss your needs

Ready to Automate Your Financial Workflows?

Stop wasting hours on routine market monitoring and let automation handle the grunt work. Our team can build you a custom financial automation system that delivers the insights you need, when you need them.