Agent BrainsAgent Brains
n8n

AgentBrains Knowledge Base

Retrieve exact documents, categories, images, relationship metadata, and company data from AgentBrains.

AgentBrains Knowledge Base

Use this node when the workflow must read the exact record you curated in AgentBrains instead of relying on semantic search alone.

This node is designed for deterministic retrieval:

  • price lists
  • product specification sheets
  • instruction manuals
  • customer support policies
  • image assets attached to knowledge base entities

Why this node matters

If the workflow already knows the category, document family, or exact record it needs, deterministic retrieval is usually better than broad search. It reduces hallucinations and gives downstream LLM steps cleaner, more controlled context.

Resources and operations

The node exposes several resource types through a single interface.

ResourceWhat it returnsAvailable operations
DocumentsKnowledge base entities such as documents, products, or servicesGet, Get Many, Get Related Entities, Get by Category Type, Get All Documents
CategoryFolder-like groupings used to organize entitiesGet, Get Many, Get by Type
ImagesAttachments and media linked to entitiesGet Many, Get
Company DataHigh-level company profile fieldsDirect fetch without an operation selector

Relationship type and category type values still appear where they are used as filters or operation inputs, but they are not standalone resources in the node.

Core parameters

Documents

ParameterUsed inDescription
IDGet, Get Related EntitiesFetch a specific entity or use it as the source for relationship lookup
Category Names or IDsGet ManyFilter documents by one or more categories selected from the dropdown
SearchGet ManyCase-insensitive search across name, description, and details
RecursiveGet ManyInclude documents from nested categories under the selected category
Category Type Name or IDGet by Category TypeQuery documents by category alias, such as a document family
Additional FieldsGet Many, Get by Category TypeFilter with fields, sku, source, or tags
Merge DocumentsGet All DocumentsCombine many document records into one mergedContent output

Categories

ParameterUsed inDescription
IDGetFetch a single category
Category Type Name or IDGet by TypeList categories belonging to one category alias
Additional FieldsGet ManyFilter with categoryAlias, policy, parent, search, fields, and extended

Images and metadata

ParameterUsed inDescription
IDGetFetch a single attachment by ID
Additional FieldsGet ManyRestrict the response fields for image records

Output behavior

The node returns slightly different shapes depending on the operation:

Operation typeOutput shape
Single record operationsA normal object for the entity, category, image, or company data
List operationsAn object with an items array
Get All Documents with Merge Documents enabledA single object with mergedContent and documentCount

That output shape is useful in n8n because list responses stay explicit and easy to pass into later branching or formatting steps.

Best use cases

Exact policy retrieval

Use Documents with category filters when the workflow must quote a known policy, instruction manual, or price list exactly as it exists in AgentBrains.

Structured product lookup

Use Documents with sku, search, or tags when the workflow already has a product identifier and needs the cleanest possible source record.

Folder-driven browsing

Use Category to build UI-like selection logic inside n8n, especially if you want users or agents to choose from known document families.

Image access

Use Images when the workflow needs attachment metadata or an asset already linked to a document entity.

Company context

Use Company Data to fetch tenant-level profile data such as business context for personalization or routing.

Node Interface

Here is how the AgentBrains Knowledge Base node looks in n8n:

Knowledge Base Example

Practical examples

Retrieve a strict source document

Select:

  • Resource: Documents
  • Operation: Get Many
  • Category Names or IDs: a folder like instruction manuals or support policies
  • Search: an exact product or topic phrase

This is the best setup when the answer should come from a known document family and not from broad semantic search.

Build one prompt from many documents

Select:

  • Resource: Documents
  • Operation: Get All Documents
  • Merge Documents: enabled

This produces one combined body of content that can be sent into an LLM or stored as a downstream artifact.

Select:

  • Resource: Documents
  • Operation: Get Related Entities
  • ID: source entity ID
  • Additional Fields → Type: optional relationship type like is-accessory-for

This is useful for recommendation, upsell, troubleshooting, or related-document flows.

API concepts behind the node

The node is backed by the AgentBrains integration layer for knowledge-base scope. It maps to:

  • entity listing and entity-by-ID retrieval
  • category listing and category-alias discovery
  • attachment retrieval
  • helper company-info retrieval

The OpenAPI specification for the underlying data APIs confirms the same filtering model used in the node, including search, fields, tags, sku, source, and recursive category traversal.

Knowledge Base vs RAG

Use this node when you know what should be fetched. Use AgentBrains RAG when the agent only knows the user intent and must semantically search across an index first.

On this page