Templates / AI-powered RAG workflow for stock earnings report analysis

AI-powered RAG workflow for stock earnings report analysis

Needs changes

by Mihai Farcas ✓ · 18,006 views · created 2025-01-17 · Crypto Trading, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Pinecone Vector Store, Embeddings Google Gemini, Vector Store Question Answer and Google Gemini Chat Model and 4 more.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Vector Store Tool)
  2. Save Report to Google Docs (Google Docs): update
  3. List Of Files To Load (Google Sheets) (Google Sheets): uses Google Sheets
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Download File From Google Drive (Google Drive): download
  6. Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings Google Gemini; document loader: Default Data Loader

Services it uses

Pinecone Vector StoreEmbeddings Google GeminiVector Store Question AnswerGoogle Gemini Chat ModelOpenAI Chat ModelGoogle DocsGoogle SheetsGoogle Drive

Before you upgrade to n8n 3.0

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

  • AI Agent v1 (old agent modes) in AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

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

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

This n8n workflow creates a financial analysis tool that generates reports on a company's quarterly earnings using the capabilities of OpenAI GPT-4o-mini, Google's Gemini AI and Pinecone's vector search. By analyzing PDFs of any company's earnings reports…

Excerpt from Mihai Farcas'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.