Add the ‘Insert Knowledge’ Tool step to your Tool

You can add the ‘Insert Knowledge’ Tool step to your Tool by:

  1. Creating a new Tool, then searching for the ‘Insert Knowledge’ Tool step
  2. Click ‘Expand’ to see the full Tool step
  3. Select the Knowledge table you would like to use
  4. 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.
  5. 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.
  6. Click ‘Run step’ to test out the Tool

Common errors

Formatting Examples

Example 1: Insert single row

[
  {
    "breed": "poodle",
    "size": "small"
  }
]

Example 2: Insert multiple rows

[
  {
    "breed": "poodle",
    "size": "small"
  }, 
  {
    "breed": "great dane",
    "size": "large"
  }
]

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.