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

Go to Workflow
9,358 views
Built by n8n Team n8n Team
Created on June 05, 2026

Description

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 OpenAI Chat Model to extract and provide relevant information based on a specific query.

Note that to use this template, you need to be on n8n version 1.19.4 or later.

Nodes Used (3)

OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Question and Answer Chain
@n8n/n8n-nodes-langchain.chainRetrievalQa
Workflow Retriever
@n8n/n8n-nodes-langchain.retrieverWorkflow