Overview
Knowledge Bases can be integrated into workflows in two ways:- Content ingestion: Add, update, or delete content sources dynamically from workflows
- AI agent queries: Enable Custom Agent nodes to query Knowledge Bases for contextual information
Content ingestion from workflows
You can manage Knowledge Base content sources directly from workflows using Knowledge Base operations. This allows you to dynamically update Knowledge Bases based on process data.Adding knowledge base operations
1
Open your workflow
Navigate to the workflow where you want to add a Knowledge Base operation
2
Add a task node
Add a new task node or select an existing one
3
Add Knowledge Base action
Add a new action and select Knowledge Base Operation as the action type
4
Configure the operation
Fill in the required configuration fields

Configuration fields
Select a Knowledge Base from:
- Local project libraries
- Dependency libraries
Choose the operation to perform on the content source
The name of the content source to operate on. You can:
- Select an existing content source from the dropdown
- Type a new content source name
- Use a workflow variable (e.g.,
${contentSourceName}) - Use a configuration parameter
The JSON content to ingest. Typically a workflow variable containing the data to be indexed.
Available operations
The following operations are available for managing content sources from workflows:Append content
Add new content to a content source without removing existing chunks.| Property | Behavior |
|---|---|
| Creates if missing? | Yes |
| Deletes existing content? | No |
Replace content
Replace all existing content in a content source with new content.| Property | Behavior |
|---|---|
| Creates if missing? | Yes |
| Deletes existing content? | Yes (content only) |
Delete content source
Remove a content source and all its associated chunks completely.| Property | Behavior |
|---|---|
| Creates if missing? | No |
| Deletes existing content? | Yes (object + content) |
Content format
Content ingested from workflows must be in JSON format. The JSON can contain:- Plain text strings
- Structured data objects
- Arrays of information
- Any JSON-serializable data
Using variables and parameters
You can use workflow variables and configuration parameters in Knowledge Base operations:- Workflow Variables
- Configuration Parameters
Reference data from the current process instance:
Console logs
Knowledge Base operations generate detailed console logs showing the execution status:
The Knowledge Base operation that was executed
The name of the Knowledge Base
The name of the content source that was modified
Success or error status of the operation
Number of chunks created (for Append and Replace operations)
Number of chunks deleted (for Replace and Delete operations)
Detailed error message if the operation failed
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
1
Add Custom Agent node
Add a Custom Agent node to your workflow
2
Configure the agent
Set up the basic agent configuration (model, prompt, etc.)
3
Enable Knowledge Base
In the Knowledge Base section, enable the Knowledge Base feature
4
Select Knowledge Base
Choose a Knowledge Base from the available options
5
Configure query parameters
Set the query parameters for retrieving chunks

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
Console logs for knowledge base queries
When an agent queries a Knowledge Base, the console log shows detailed information:
The search query generated by the agent
List of content sources that were searched
Total number of chunks retrieved
Details of each chunk used, including:
- Chunk content
- Relevance score
- Content source
- Metadata
Time taken to retrieve and process chunks
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
Content ingestion
Agent configuration
Performance
Limitations
Next steps
Testing Operations
Learn how to test Knowledge Base operations before production use
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

