Daily Stock Market Analysis Reports

Google Mailtelegram_bot_apiGoogle Sheets

Fetch daily US stock market data via Alpha Vantage, generate AI-powered technical analysis reports, and deliver them to Gmail, Telegram, and Google Sheets.

Stock AnalysisAlpha VantageTechnical AnalysisMarket Reports

What This Workflow Does

This workflow automatically fetches US stock market data every weekday morning and produces an AI-generated technical analysis report. It pulls real-time quotes (or last trading day data when the market is closed), top gainers/losers, and news sentiment from Alpha Vantage. An AI agent then analyzes everything and delivers a polished report to your Gmail inbox, Telegram chats, and a Google Sheet for historical tracking.

What You Need

  • Alpha Vantage API Key — for querying market status, stock quotes, top movers, and news sentiment. Get a free key at alphavantage.co.
  • AI API Key — for the AI model that generates the analysis report.
  • Gmail account — connected via Pipedream connector to send email reports.
  • Telegram bot and chat ID — to receive notifications in a personal chat or channel.
  • Google Sheets — connected via Pipedream connector to log data for historical tracking.

How the Flow Works

StepNodeDescription
1Scheduled TriggerRuns at 9:00 AM UTC, Monday through Friday.
2HTTP Request (Market Status)Queries Alpha Vantage MARKET_STATUS to check if the US equity market is open or closed.
3Code (Parse Market Status)Interprets the response and prepares a list of 7 stock symbols to track (AAPL, MSFT, GOOGL, AMZN, TSLA, NVDA, META).
4Code (Build Quote URLs)Constructs individual Alpha Vantage GLOBAL_QUOTE API URLs for each symbol.
5HTTP Requests (Global Quotes)Fetches detailed stock quotes for each symbol in parallel.
6HTTP Request (Top Gainers/Losers)Fetches the top market gainers, losers, and most actively traded stocks.
7HTTP Request (News Sentiment)Fetches the latest news articles with sentiment scores for the tracked tickers.
8Code (Interpret Stock Data)Parses quote data, calculates buy/sell/neutral signals based on price change percentages.
9MergeCombines the three data streams: stock quotes, top movers, and news sentiment.
10Code (Consolidate Data)Structures all data into a single object ready for AI analysis.
11Code (Build AI Request)Constructs the AI model request with a detailed prompt requesting a 7-part analysis report. Web search is enabled for additional context.
12HTTP Request (AI API Call)Sends the consolidated data to the AI model for analysis.
13Code (Parse AI Response)Extracts the generated analysis text from the AI response.
14Code (Prepare Output Messages)Formats the analysis into HTML (for email), Markdown (for Telegram), and plain text (for Sheets).
15Gmail Send EmailSends the full report as an HTML email.
16Telegram (Personal Chat)Sends the analysis to your personal Telegram chat.
17Telegram (Channel)Broadcasts a summary to a Telegram channel.
18Google Sheets Append RowLogs the analysis data to a spreadsheet for archival.

Trading Signal Logic

The workflow classifies each stock based on its daily price change percentage:

Price ChangeSignal
Greater than +2%STRONG BUY SIGNAL
+0.5% to +2%BULLISH
-0.5% to +0.5%NEUTRAL
-2% to -0.5%BEARISH
Less than -2%STRONG SELL SIGNAL

AI Analysis Report Contents

The AI agent is prompted to produce a 7-part report:

  1. Market Overview — Overall market sentiment based on all available data.
  2. Individual Stock Analysis — Price, change, volume, and signals for each tracked stock.
  3. Technical Signals — Bullish/bearish patterns and key support/resistance levels.
  4. Top Movers Insight — Analysis of the day's biggest gainers, losers, and most active stocks.
  5. News Impact Analysis — How recent news sentiment affects the tracked stocks.
  6. Recommendations — Actionable buy/hold/sell insights with reasoning.
  7. Risk Assessment — Potential risks and market concerns.

Output

You receive the analysis report in three places:

  • Gmail — A formatted HTML email with the full report.
  • Telegram — A personal message and a channel broadcast (Markdown formatted, truncated to Telegram's 4,096-character limit).
  • Google Sheets — A new row with the timestamp, date, and analysis text for historical comparison.

Configuration Notes

  • Replace YOUR_CHAT_ID with your actual Telegram user or chat ID.
  • Replace @YOUR_CHANNEL with your Telegram channel username.
  • Replace YOUR_SPREADSHEET_ID with your Google Sheets spreadsheet ID and configure the worksheet name.
  • Update the recipient email address in the Gmail node.
  • To track different stocks, edit the symbols array in the "Parse Market Status" code node.
  • Alpha Vantage free-tier API keys have rate limits (typically 25 requests per day). If you're tracking many symbols or running frequently, consider upgrading your plan.
  • The workflow always fetches the most recent available data, even when the market is closed, so you'll still receive a report on any weekday.

Want to showcase your own workflows?

Become a Needle workflow partner and turn your expertise into recurring revenue.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .