Create a company policy chatbot with RAG, Pinecone vector database, and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Pinecone Vector Store, Embeddings OpenAI and Google Drive and 1 more.
How it runs
Trigger: When a chat message arrives (plus 1 other trigger).
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Calculator, Vector Store QnA); memory: Simple Memory
- Google Drive: download
- Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: OpenAI Embeddings; document loader: Default Data Loader
Services it uses
Other OpenAI + Google Drive templates (628) · Other OpenAI + Pinecone templates (128) · Other Google Drive + Pinecone templates (65)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore
From the author
A RAG Chatbot with n8n and Pinecone Vector Database Retrieval-Augmented Generation (RAG) allows Large Language Models (LLMs) to provide context-aware answers by retrieving information from an external vector database. In this post, we’ll walk through a…