Generate multi-quarter earnings reports with Google Workspace, Gemini and Pinecone
Needs changesNeeds 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 to replace before upgrading
| Removed in 3.0 | Replace 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)
- Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Manual Trigger
n8n-nodes-base.manualTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Docs
n8n-nodes-base.googleDocs - Google Sheets
n8n-nodes-base.googleSheets - Google Drive
n8n-nodes-base.googleDrive
What it does
Quick overview This workflow ingests quarterly earnings PDFs listed in Google Sheets from Google Drive into a Pinecone vector index using Google Gemini embeddings, then uses an OpenAI-powered agent with Pinecone retrieval to generate a markdown earnings-trend report and save it into Google Docs. How it works 1. Starts when you manually run the workflow. 2. Reads a Google Sheets watchlist of earnings-report PDF URLs and iterates through each file. 3. Downloads each PDF from Google Drive, splits it into text chunks, and generates embeddings with Google Gemini. 4. Stores the embedded chunks in a Pinecone index for semantic search across the uploaded filings. 5. Prompts an OpenAI chat model to write a markdown report covering the last three quarters, focusing on differences, trends, and outliers. 6. Retrieves supporting passages from Pinecone (using Google Gemini query embeddings) to ground the analysis. 7. Inserts the generated markdown report into a target Google Doc. Setup 1. Create a Pinecone index named company-earnings and add Pinecone credentials for both the insert and retrieval steps. 2. Add a Google AI (Gemini) API key for the Google Gemini embeddings and chat model used for retrieval. 3. Add an OpenAI API key for the chat model that powers the report-writing agent. 4. Connect Google Sheets, Google Drive, and Google Docs OAuth credentials, then set your spreadsheet ID/sheet and replace the Google Docs documentURL with your target document. 5. Ensure your Google Sheet includes a File URL column (and any optional fields like a filename), and update the agent prompt if you want to analyze a company other than Google.