Skip to main content
Knowledge Connectors are integrations with external services that allow you to ingest knowledge from external sources directly into your Flows. This feature provides greater flexibility and control compared to other methods of uploading knowledge such as loading multiple PDFs or connecting to a single web page. Knowledge Connectors are delivered and developed as part of the Extension package.

Key Benefits

  • Flexible Sources. Ingest data from databases, APIs, document libraries, Confluence, crawl websites with Diffbot, and more.
  • Customizable. Modify prebuilt Knowledge Connectors or create your own from scratch.
  • Centralized Management. Keep all external knowledge structured and accessible in your Flows.

Restrictions

  • The knowledge is ingested by the Knowledge Connector at setup and isn’t synchronized automatically.

How to Use Knowledge Connectors

Choose how you want to set up a Knowledge Connector:
  • Modify Existing Knowledge Connectors
  • Create from Scratch
You can clone a repository and modify an existing Confluence or Diffbot Knowledge Connector. To do so, follow these steps:
  1. Clone the Cognigy Extensions repository from GitHub to your local machine and open it in your code editor.
  2. Go to the extensions/confluence or extensions/diffbot folder. Modify the code as needed. Run npm install to install all required dependencies for the module.
  3. Run npx tsc to compile the TypeScript code. This command converts TypeScript files into JavaScript in the build folder. If the build process doesn’t create a tar.gz package automatically, create one manually:
    tar -czvf extension-name.tar.gz build/* icon.png README.md package.json package-lock.json
    
  4. Go to Manage > Extensions in Cognigy.AI and click + Upload Extension. Select the created package and click Open.
  5. After the installation, go to Build > Knowledge and select the Knowledge Store where you want to use the Knowledge Connector. On the Knowledge Sources page, click + Add Knowledge.
  6. In the Add Knowledge window, select the modified Knowledge Connector from the Type list and fill in the required fields for the connection.
Wait for the Knowledge Connector to ingest the knowledge from the external source and make it available for your AI Agents.
You can now use the ingested knowledge in your Flow in the following ways:In the Node Editor, select the Knowledge Store where you added the Knowledge Connector. Then, test your Flow in the Interaction Panel to see how the AI Agent uses the ingested knowledge to answer user queries.

More Information

I