AI: Ask questions about any data source (using the n8n workflow retriever)
Ready for 3.0What this workflow does
This AI workflow has 5 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Edit Fields (Edit Fields (Set)): sets 1 field: chatInput
- Question and Answer Chain: answers questions over your documents (RAG), with model: OpenAI Chat Model; retriever: Workflow Retriever
Services it uses
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.
Rarely used nodes in this template: @n8n/n8n-nodes-langchain.retrieverWorkflow
Nodes used (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Question and Answer Chain
@n8n/n8n-nodes-langchain.chainRetrievalQa - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Workflow Retriever
@n8n/n8n-nodes-langchain.retrieverWorkflow
From the author
This template aims to perform Q&A on data retrieved from another n8n workflow. Since that workflow can be used to retrieve any data from any service, this template can be used to ask questions about any data. It uses a manual trigger, various AI nodes, and an…