Templates / AI: Ask questions about any data source (using the n8n workflow retriever)

AI: Ask questions about any data source (using the n8n workflow retriever)

Ready for 3.0

by n8n Team ✓ · 10,094 views · created 2023-10-03 · Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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”.

  1. Edit Fields (Edit Fields (Set)): sets 1 field: chatInput
  2. Question and Answer Chain: answers questions over your documents (RAG), with model: OpenAI Chat Model; retriever: Workflow Retriever

Services it uses

OpenAI Chat Model

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)

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…

Excerpt from n8n Team's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.