πŸ“ˆ Automated stock sentiment analysis with Google Gemini and EODHD News API

⚑ 8,379 views Β· πŸ“ˆ Crypto Trading & Stock Market

Description

Stay ahead of the market with this powerful, automated workflow that performs real-time sentiment analysis on stock market news. By leveraging the advanced capabilities of Google Gemini, this solution provides you with actionable insights to make informed investment decisions.

This workflow is designed for investors, traders, and financial analysts who want to automate the process of monitoring news and gauging market sentiment for specific stocks. It seamlessly integrates with Google Sheets for input and output, making it easy to track a portfolio of stocks.

Key Features & Benefits

How It Works

This workflow follows a systematic process to deliver automated sentiment analysis:

  1. Scheduled Trigger: The workflow begins each day at a specified time.
  2. Fetch Stock Tickers: It reads a list of stock tickers from your designated Google Sheet.
  3. Loop and Fetch News: For each ticker, it retrieves the latest news articles using the EODHD API.
  4. AI Sentiment Analysis: The collected news articles are then passed to a Google Gemini-powered AI agent. The agent is prompted to act as a stock sentiment analyzer, evaluating the news and generating:
    • A sentiment score from -1 (strong negative) to 1 (strong positive).
    • A detailed rationale explaining the basis for the score.
  5. Data Formatting & Validation: The AI’s output is parsed and validated to ensure it is in the correct JSON format.
  6. Log to Google Sheets: The final sentiment score and rationale are appended to your Google Sheet, alongside the corresponding stock ticker and the current date.

Nodes Used

This workflow is a valuable tool for anyone looking to harness the power of AI for financial market analysis. Deploy this automated solution to save time, gain a competitive edge, and make more data-driven trading decisions.

πŸ”— Nodes Used

Google Sheets, HTTP Request, 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