Insert Knowledge
The Insert Knowledge feature lets your agent save information by adding new rows to your knowledge table—making it easy to capture and store data dynamically.
Add the ‘Insert Knowledge’ Tool step to your Tool
You can add the ‘Insert Knowledge’ Tool step to your Tool by:
- Creating a new Tool, then searching for the ‘Insert Knowledge’ Tool step
- Click ‘Expand’ to see the full Tool step
- Select the Knowledge table you would like to use
- Use the New data to insert field to enter an array of objects, where each object corresponds to a row. Add additional objects to insert multiple rows at once.
- Use the Sync on upload field to determines whether the data should be vectorized when added to the knowledge set. In most cases, you’ll want this enabled as it allows your agents to semantically search and retrieve relevant information from your knowledge table.
- Click ‘Run step’ to test out the Tool
Common errors
Formatting issues
Formatting issues
This indicates that there is a formatting issue in the “New data to insert” input field. Make sure your object is formatted correctly. Expected property name or '}' in JSON at...
Incorrect data type
Incorrect data type
This means the data being inserted into the knowledge table is not a JSON. Invalid JSON
Formatting Examples
Example 1: Insert single row
Example 2: Insert multiple rows
Ensure to separate each object with a comma if inserting multiple rows.
Frequently asked questions
What happens if I don’t enable “Sync on Upload”?
If “Sync on Upload” is disabled, the data will be stored but not vectorized. This means your agents won’t be able to semantically search or reference that data until you manually vectorize it.
Can I update or delete rows later?
Yes. After inserting data, you can manage your knowledge set using the available tools this includes updating or deleting rows as needed.
What data types can I insert?
You can insert text, numbers, booleans, or any JSON-serializable value. Just make sure each object in the array follows the correct formatting.