Templates / Analyze stocks in Warren Buffett style from Telegram with OpenAI and Gmail

Analyze stocks in Warren Buffett style from Telegram with OpenAI and Gmail

Needs changes

by Sankar Battula · 430 views · created 2026-04-07 · Crypto Trading, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: SerpApi (Google Search). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Telegram events (message). Along the way it connects Telegram, SerpApi (Google Search), Gmail and OpenAI Chat Model.

How it runs

Trigger: On Telegram events (message).

  1. 🔤 Extract Ticker & User (Edit Fields (Set)): sets 4 fields: ticker, chat_id, username…
  2. 🔎 Validate Ticker (If): checks a condition and branches into true / false
  3. 📨 Send Acknowledgement (Telegram): uses Telegram
  4. ⚠️ Invalid Ticker Reply (Telegram): uses Telegram
  5. 🧠 Buffett AI Agent (AI Agent): runs an AI agent, with model: 🤖 OpenAI GPT-4o-mini; 2 tools (🔍 SerpAPI Web Search, Calculator)
  6. 🔀 Check Agent Output (If): checks a condition and branches into true / false
  7. 📧 Send Gmail Report (Gmail): uses Gmail
  8. Telegram: uses Telegram
  9. Telegram: uses Telegram

Services it uses

TelegramSerpApi (Google Search)GmailOpenAI Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • SerpApi (Google Search) in 🔍 SerpAPI Web Search: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
SerpApi (Google Search)
🔍 SerpAPI Web Search
No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node

Nodes used (9)

From the author

This workflow turns a simple Telegram message into a full stock research report inspired by Warren Buffett’s value investing approach. A user sends a ticker symbol such as AAPL, MSFT, or AMZN, and the workflow validates the input, runs AI-powered research,…

Excerpt from Sankar Battula's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.