Overview
Knowledge Bases can be integrated into workflows to enable AI agents to query them for contextual information when generating responses.Using knowledge bases in custom agent nodes
Custom Agent nodes can query Knowledge Bases to retrieve contextual information when generating responses.Configuring custom agent with knowledge base

Knowledge base query configuration
Select the Knowledge Base that the agent should query
Options:
- All content sources (default)
- Specific content source(s)
Maximum number of chunks to retrieve (1-10). Default: 5
Minimum relevance score threshold (0-100%). Only chunks above this score will be included. Default: 70%
Optional metadata filters to apply (exact match with AND logic)
Metadata filtering is a low-priority feature for the first iteration.
How the agent uses knowledge base
When a Custom Agent node executes with Knowledge Base enabled:- Query generation: The agent analyzes the user’s input and generates a search query
- Chunk retrieval: The Knowledge Base is queried using semantic search
- Relevance filtering: Only chunks meeting the minimum relevance score are returned
- Context inclusion: Retrieved chunks are added to the agent’s context
- Response generation: The agent generates a response using the retrieved information
ReAct model with knowledge base
When using the ReAct (Reasoning and Acting) model, the agent can:- Reason: Determine if Knowledge Base information is needed
- Act: Query the Knowledge Base as a tool
- Iterate: Make multiple queries if needed for comprehensive answers
Example workflows
Dynamic documentation updates
Update product documentation whenever a new release is deployed:Customer support with contextual AI
Use Knowledge Base in a customer support chatbot:Multi-source knowledge ingestion
Aggregate information from multiple systems:Error handling
Common errors and solutions
Content source not found
Content source not found
Error:
Content source "Example" does not exist in Knowledge Base "KB Name"Cause: Attempting to append or replace content in a non-existent content sourceSolution:- Verify the content source name is correct
- Use “Append Content” which creates the content source if it doesn’t exist
- Check for typos in content source names
Invalid JSON content
Invalid JSON content
Error:
Failed to parse JSON contentCause: The content provided is not valid JSONSolution:- Ensure workflow variables contain valid JSON
- Validate JSON structure before passing to Knowledge Base operation
- Check for special characters that may break JSON formatting
Knowledge Base not accessible
Knowledge Base not accessible
Error:
Knowledge Base "KB Name" not found or not accessibleCause: The Knowledge Base doesn’t exist or you don’t have permissionsSolution:- Verify the Knowledge Base exists in the project or dependencies
- Check access permissions for the Knowledge Base
- Ensure the Knowledge Base is published if using from dependencies
Chunking failed
Chunking failed
Error:
Failed to process content into chunksCause: Error occurred while creating chunks from the contentSolution:- Check console logs for detailed error messages
- Verify the content is in the expected format
- Retry the operation
- Contact support if the issue persists
Best practices
Agent configuration
Relevance score management
Performance
Limitations
Next steps
Managing Content
Understand content source management in detail
Related resources
Custom Agent Nodes
Complete guide to Custom Agent nodes
Workflow Data Models
Understanding workflow variables and data

