RAG Workflow For Stock Earnings Report Analysis
Configured with Agent, Document Default Data Loader, Embeddings Google Gemini, Google Docs, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Data store
- AI & models
- Files / media
- Transform
- Routing
- Trigger
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Pinecone Vector Store | Data store | Vector Store Pinecone | See node parameters |
| Embeddings Google Gemini | AI & models | Embeddings Google Gemini | See node parameters |
| Default Data Loader | Files / media | Document Default Data Loader | See node parameters |
| Recursive Character Text Splitter | Transform | Text Splitter Recursive Character Text Splitter | See node parameters |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| When clicking ‘Test workflow’ | Trigger | Manual Trigger | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| Vector Store Tool | AI & models | Tool Vector Store | See node parameters |
| Google Gemini Chat Model1 | AI & models | LM Chat Google Gemini | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| Pinecone Vector Store (Retrieval) | Data store | Vector Store Pinecone | See node parameters |
| Save Report to Google Docs | Files / media | Google Docs | update |
| Embeddings Google Gemini (retrieval) | AI & models | Embeddings Google Gemini | See node parameters |
| List Of Files To Load (Google Sheets) | Data store | Google Sheets | See node parameters |
| Download File From Google Drive | Files / media | Google Drive | download |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleDocsOAuth2ApigoogleDriveOAuth2ApigooglePalmApigoogleSheetsOAuth2ApiopenAiApipineconeApi
Workflow notes
Set up steps
Set up steps
- Google Cloud Project & Vertex AI API:
- Create a Google Cloud project.
- Enable the Vertex AI API for your project.
- Google AI API key:
- Obtain a Google AI API key from Google AI Studio.
- 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.
- 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
- 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)
- 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.
RAG Workflow For Stock Earnings Report Analysis
RAG Workflow For Stock Earnings Report Analysis
Purpose and structure
This folder contains the RAG Workflow For Stock Earnings Report Analysis workflow. Its executable nodes use agent, documentDefaultDataLoader, embeddingsGoogleGemini, googleDocs, googleDrive, googleSheets, lmChatGoogleGemini, lmChatOpenAi, manualTrigger, splitInBatches, textSplitterRecursiveCharacterTextSplitter, toolVectorStore, vectorStorePinecone. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When clicking ‘Test workflow’
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Googledocs/1858_Googledocs_Manual_Automate_Triggered.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Loading data to Pinecone vector store
- AI Agent Report Generation using RAG