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
- Automated Daily Analysis: The workflow is triggered daily, providing you with fresh sentiment analysis just in time for the market open.
- Dynamic Stock Tracking: Easily manage your list of tracked stocks from a simple Google Sheet.
- AI-Powered Insights: Utilizes Google Gemini's sophisticated language model to analyze news content for its potential impact on stock prices, including a sentiment score and a detailed rationale.
- Comprehensive News Aggregation: Fetches the latest news articles from EODHD for each of your specified stock tickers.
- Error Handling & Validation: Includes built-in checks for invalid stock tickers and formats the AI output for reliable data logging.
- Centralized Reporting: Automatically logs the sentiment score, rationale, and date into a Google Sheet for easy tracking and historical analysis.
How It Works
This workflow follows a systematic process to deliver automated sentiment analysis:
- Scheduled Trigger: The workflow begins each day at a specified time.
- Fetch Stock Tickers: It reads a list of stock tickers from your designated Google Sheet.
- Loop and Fetch News: For each ticker, it retrieves the latest news articles using the EODHD API.
- 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.
- Data Formatting & Validation: The AI's output is parsed and validated to ensure it is in the correct JSON format.
- 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
- Schedule Trigger
- Google Sheets
- SplitInBatches
- HttpRequest (EODHD)
- If
- Code (JavaScript)
- AI Agent (LangChain)
- Google Gemini Chat Model
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.