Overview

Manually tracking stock news sentiment is slow and error-prone. This workflow automates fetching latest stock news, applies AI-driven sentiment scoring from -1 to 1, and writes structured results back to Google Sheets—turning raw news into actionable, quantifiable market signals instantly.

AI stock sentiment report
Generated by AI

The Impact

  • Automate data collection. Eliminate manual news gathering and parsing for multiple stock tickers.
  • Quantify sentiment. Generate precise sentiment scores with clear rationales for every news item.
  • Integrate seamlessly. Write results directly into Google Sheets for immediate access and analysis.
  • Accelerate decisions. Provide timely insights to support trading signals, research, and risk alerts.

Who This Is For

  • Quantitative Traders automating sentiment inputs for intraday or end-of-day signals.
  • Investment Researchers monitoring news impact to flag significant sentiment shifts.
  • Asset Managers triggering risk warnings based on real-time sentiment changes.
  • Financial Journalists rapidly compiling sentiment summaries and rationales for editorial use.

How It Works

1
  1. Read and Parse Tickers
  2. Load stock tickers from Google Sheets and parse them into a list.
2
  1. Fetch News for Each Ticker
  2. Loop through tickers, call EODHD API to retrieve the latest news articles per stock.
3
  1. Validate API Response
  2. Ensure the news data is valid and extract article content.
4
  1. Analyze Sentiment
  2. Send news text and ticker to AI model, receive sentiment score (-1 to 1) and rationale in JSON format.
5
  1. Write Results to Sheet
  2. Parse AI output, format rows, and append sentiment data back into the designated Google Sheets range.

What You'll Need

Before using this template, make sure you have:

  • Google Sheets OAuth2 credentials authorized to read and write your target spreadsheet.
  • A valid EODHD API key for fetching stock-related news data.
  • Google Sheets spreadsheet with one sheet listing stock tickers and another sheet or range to store sentiment results.

How to Use

  1. Step 1. Prepare Ticker Sheet
  2. Create a Google Sheet with a "ticker" column header and list your stock tickers starting from the second row.

  3. Step 2. Setup Output Sheet
  4. Prepare another sheet or range with headers: date, stock, sentimentScore, rationale to receive results.

  5. Step 3. Configure Credentials and Parameters
  6. Provide your Google Sheets OAuth2 credentials, enter your SpreadsheetId, TickersSheetName, OutputRangeName, and EODHD API key in the workflow inputs.

  7. Step 4. Run the Workflow
  8. Execute the automation to fetch news, analyze sentiment, and write results automatically.

  9. Step 5. Verify Results
  10. Check the output range in your Google Sheet to confirm sentiment scores and rationales have been appended properly.

FAQs

How does the workflow handle invalid or unknown tickers?
If the EODHD API response is invalid or empty for a ticker, the workflow appends a row marking it as "Invalid Ticker" with no sentiment score.
What format does the AI model use to return sentiment analysis?
The AI returns a JSON object containing the sentiment_score (float between -1 and 1) and a detailed rationale explaining the score.
Can I customize the number of news articles fetched per stock?
Currently, the workflow fetches up to 10 latest news articles per ticker using the EODHD API's limit parameter, which can be adjusted in the HTTP request node if needed.
Is it possible to use this workflow for real-time risk alerts?
Yes, asset managers can leverage this workflow to score news sentiment in real-time and trigger manual reviews or automated risk notifications based on predefined thresholds.
Was This Page Helpful?

More Workflows for Inspiration

📝
AI Intelligent Note Assistant
Transform structured data into Zettelkasten notes and auto-save as Markdown on Google Drive.
Learn more >
📧
Smart Email Organizer
Automate inbox cleanup by archiving or labeling emails for a clear, manageable inbox.
Learn more >
📈
Stock Technical Analysis Briefing
Automate real-time stock data analysis and get expert technical reports emailed instantly.
Learn more >