AutomationMart
Home/Browse/AI-powered RAG workflow for stock earnings report analysis
n8n

AI-powered RAG workflow for stock earnings report analysis

n8nn8n15 modulesv1.0
Google SheetsOpenAIGoogle DriveGemini

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 from their Investor Relations page, this workflow can answer complex financial questions and automatically compile findings into a structured Google Doc. How it works: 1. Data loading and indexing Fetches links to PDF earnings document from a

At a glance

AI-powered RAG workflow for stock earnings report analysis is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, OpenAI, Google Drive, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Sheets, OpenAI, Google Drive, Gemini
Modules
15
Price
Free
Version
v1.0
AI-powered RAG workflow for stock earnings report analysis workflow diagram

About this workflow

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 from their Investor Relations page, this workflow can answer complex financial questions and automatically compile findings into a structured Google Doc. How it works: 1. Data loading and indexing Fetches links to PDF earnings document from a Google Sheet containing a list of file links. Downloads the PDFs from Google Drive. Parses the PDFs, splits the text into chunks, and generates embeddings using the Embeddings Google AI node (text-embedding-004 model). Stores the embeddings and corresponding text chunks in a Pinecone vector database for semantic search. 2. Report generation with AI agent Utilizes an AI Agent node with a specifically crafted system prompt. The agent orchestrates the entire process. The agent uses a Vector Store Tool to access and retrieve information from the Pinecone database. 3. Report delivery Saves the generated report as a Google Doc in a specified Google Drive location. Set up steps 1. Google Cloud Project & Vertex AI API: Create a Google Cloud project. Enable the Vertex AI API for your project. 2. Google AI API key: Obtain a Google AI API key from Google AI Studio. 3. Pinecone account and API key: Create a free account on the Pinecone website. Obtain your API key from your Pinecone dashboard. Create an index named company-earnings in your Pinecone project. 4. Google Drive - download and save financial documents: Go to a company you want to analize and download their quarterly earnings PDFs Save the PDFs in Google Drive Create a Google Sheet that stores a list of file URLs pointing to the PDFs you downloaded and saved to Google Drive 5. Configure credentials in your n8n environment for: Google Sheets OAuth2 Google Drive OAuth2 Google Docs OAuth2 Google Gemini(PaLM) Api (using your Google AI API key) Pinecone API (using your Pinecone API key) 6. Import and configure the workflow: Import this workflow into your n8n instance. Update the List Of Files To Load (Google Sheets) node to point to your Google Sheet. Update the Download File From Google Drive to point to the column where the file URLs are Update the Save Report to Google Docs node to point to your Google Doc where you want the report saved.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Listen for new Survey123 submissions and add rows to Google Sheets while sending messages to Slack

Automatically update Google Sheets and notify Slack with new Survey123 submissions. Streamline data management and team communication effortlessly with this integration.

Free

Send data to Google Sheets and filter rows with Iterator and HTTP module

Automatically send data to Google Sheets, filter rows, and add new entries using the Iterator and the HTTP module for streamlined data management.

Free

Upload files from Google Drive to Ninox

When a new file is uploaded in Google Drive, a new record is created in Ninox and the file is uploaded to the record.

Free

Upload a new invoice from Zoho Books to Google Drive

When a new invoice is created in Zoho Books, the PDF is downloaded and then uploaded to Google Drive.

Free

Conduct SWOT analysis on competitors with ChatGPT and add the information to a new Notion page

Utilize ChatGPT for in-depth SWOT analysis of competitors, and effortlessly integrate the valuable insights into a new Notion page which is added to your database.

Free

Send data from Google Sheets to an HTTP endpoint

Automatically send updated Google Sheets data to an HTTP endpoint for real-time processing and integration with your web applications.

Free

Generate enhanced AI images via Telegram with DALL-E and GPT

PromptCraft AI – Telegram Image Generator 🚀 How It Works PromptCraft AI is an n8n automation that transforms simple image ideas sent through Telegram into stunning AI-generated images using OpenAI's DALL·E (or other image models). 🔁 Workflow Overview: 1. Telegram Trigger: Listens for messages from a user on Telegram. 2. Prompt Expansion: The message is transformed into a rich image description using GPT (OpenAI Chat Model). 3. Image Generation: The prompt is passed to OpenAI's image API to gener

Free

Scrape Google Maps business data with BrowserAct and Google Sheets

Automatically scrape Google Maps business data using BrowserAct AI automation and save results directly to Google Sheets. 🎯 What This Workflow Does: - Collects business information from Google Maps based on location and category - Extracts name, phone, rating, address, website, and latest reviews - Automatically saves data to Google Sheets with deduplication - User-friendly form interface for easy data collection 🔧 Requirements: - BrowserAct Community Node - BrowserAct account - Google Sheets OA

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free