- Home
- Resources
- Integrations
- Workflow Retriever
n8n Workflow Retriever nodeConfigure Workflow Retriever in n8n.
Sometimes the answer your AI chain needs lives in an API call, not in a vector database. The n8n Workflow Retriever node hands the lookup to another workflow and returns what that workflow produces. It exposes 8 parameters, has no main input, and plugs into a root node through a single retriever port.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Workflow Retriever node do?
The Workflow Retriever node lets a Question and Answer Chain pull its source documents from an n8n workflow instead of a stored index. When the chain needs context, this node calls the workflow you point it at, passes along the values you defined, and gives the returned items back to the chain as retrieved content. It is a sub-node, meaning it never runs on its own: it sits under a root node and only wakes up when that node asks for data.
Think of the three shapes this takes in practice. First shape: internal search that already exists. A support team has a workflow that queries a ticketing API and returns matching threads. Pointing Source at database and entering that workflow's ID turns the existing search into the retrieval step of a question and answer chain, with no index to build and nothing to re-embed when a ticket changes.
Second shape: data that is too fresh to index. Stock levels, open invoices, today's bookings. A workflow that reads a spreadsheet and filters the rows can be called at question time, so the chain always sees the current state. This is where the node pairs naturally with a Google Sheets workflow, or with anything you already automate through Slack or Gmail.
Third shape: routing. Because the called workflow receives the values you set through the workflow values fields, you can send it a category, a customer identifier or a language code and let it decide which source to query. The retrieval logic lives in a workflow you can test on its own, which is easier to debug than a prompt.
When would you skip it? If your documents are static files and the questions are semantic, a vector store retriever fits better: it was built for similarity search and does not pay the cost of a workflow execution per question. If you want the model itself to decide when to fetch something, a tool on an AI Agent gives that control instead, since a retriever is called by the chain, not chosen by the model. And if you simply want a chat model to answer from the prompt, connect OpenAI or Anthropic and leave retrieval out of the design.
The known limits are worth stating up front. This node has no main input and no settings for how many documents to return, how to score them or how to cache them: whatever the called workflow returns is what the chain receives, so filtering and limiting belong inside that workflow. The page describes version 1 of the node, the highest one in the catalog; an older workflow may show fewer options. Nothing here is billed by n8n, though the provider behind whichever chat model you connect charges for its own API calls.
Where does this node plug in?
n8n splits AI work between a root node, which receives the workflow items, and sub-nodes that attach to its ports, one type of sub-node per port. This node is a sub-node, so the only connection that matters is the port it feeds.
Output (what it plugs into)
- Retriever
ai_retriever
01Retriever
This is the output port through which the node delivers retrieved content to a root node. Drag from the retriever socket of the root node and pick Workflow Retriever, and the chain will call your workflow whenever it needs context.
Key parameters
- Required : a root node with a retriever port will not run without something connected there.
- Question and Answer Chain : the usual pairing, where the chain asks a question and this node supplies the material to answer it.
- MultiQuery Retriever : sits between the chain and this node, rephrasing a question several ways before calling it.
- Contextual Compression Retriever : also accepts it, and trims what comes back before the chain sees it.
Which parameters does the node expose?
The Workflow Retriever node has 8 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Source
sourceWhat you see in n8n
Notes & use cases
Tells n8n which workflow to call when the chain asks for documents. Everything else on the node describes what to send that workflow, so this is the first field to set.
Key parameters
- Source :
database(Database) loads the workflow from the database by ID,parameter(Parameter) loads it from a parameter. - Workflow ID : required with Database, the identifier of the workflow to execute.
- Workflow JSON : required with Parameter, the full workflow JSON code to execute, pasted into the node.
Name
fields.nameWhat you see in n8n
Notes & use cases
Names one of the values handed to the called workflow. The called workflow reads it like any incoming field, so the name you type here is the name it expects on its side.
Key parameters
- Name : name of the field to set the value of, with dot-notation supported, as in
data.person[0].name; the panel showse.g. fieldNameuntil you type.
segment, so that is what goes here, and the value follows in the matching value field.Type
fields.typeWhat you see in n8n
Notes & use cases
Declares what kind of value the field carries. Picking a type here changes which value field appears below, which is why the node lists a separate value parameter per type.
Key parameters
- Type :
stringValue(String),numberValue(Number),booleanValue(Boolean),arrayValue(Array),objectValue(Object).
Value
fields.stringValueWhat you see in n8n
Notes & use cases
Holds the text a field carries once Type is set to String. Most retrieval parameters end up here: identifiers, category names, language codes, a search term copied from the question.
Key parameters
- Value : a string, typed literally or built from an expression such as
{{ $json.customerId }}when the value comes from the item that entered the root node.
Value
fields.numberValueWhat you see in n8n
Notes & use cases
Carries a numeric value for a field whose Type is Number. The node still accepts it as a string in the panel, so an expression that resolves to a number works the same way as a typed digit.
Key parameters
- Value : a string field for the number to send, often an expression like
{{ $json.limit }}rather than a fixed figure.
Value
fields.booleanValueWhat you see in n8n
Notes & use cases
Sends a yes or no to the called workflow when Type is Boolean. Useful for switches the workflow reads in an If node before choosing a branch.
Key parameters
- Value :
true(True) orfalse(False), picked from the selector rather than typed.
Value
fields.arrayValueWhat you see in n8n
Notes & use cases
Passes several values at once under a single name when Type is Array. The called workflow receives them as a list and can loop over them or use them as a filter set.
Key parameters
- Value : a string field for the list, written in the shape the placeholder shows,
e.g. [ arrayItem1, arrayItem2, arrayItem3 ].
Value
fields.objectValueWhat you see in n8n
Notes & use cases
Carries a structured payload when Type is Object. This is the field to reach for when the called workflow needs a small set of related values rather than one flat entry.
Key parameters
- Value : a json field, so the content is written as JSON and can nest keys inside it.
Need help automating Workflow Retriever with n8n?
A person reads every message.
Questions builders ask about this node
01Is the Workflow Retriever node included in n8n?
02What do you need to set up before the n8n Workflow Retriever node works?
03What are the limits of the Workflow Retriever node?
04What should you connect to it, and where do you start?
05n8n or Make for this kind of AI retrieval?
Get our weekly integration tips.
No spam. Unsubscribe anytime.