Add Data → Add
AI-generatedOverview
This node integrates with the Cognee service to add text data to a specified dataset. The primary function of the "Add Data" resource with the "Add" operation is to store textual content into a Cognee dataset, which can later be processed or queried. This is useful in scenarios where you want to build or update knowledge bases, prepare data for knowledge graph construction, or accumulate information for subsequent search and analysis.
Practical examples:
- Adding customer feedback texts to a dataset for sentiment analysis or knowledge extraction.
- Storing product descriptions or documentation snippets to build a searchable knowledge base.
- Collecting chat logs or conversation transcripts to enrich a conversational AI memory.
Properties
| Name | Meaning |
|---|---|
| Dataset Name | Name of the Cognee dataset where the text data will be added. |
| Text Data | One or more pieces of text content to store in the Cognee dataset. |
Output
The node outputs JSON data representing the response from the Cognee API after adding the text data. This typically includes confirmation of successful addition or any relevant metadata returned by the API. There is no indication that binary data is output by this node.
Dependencies
- Requires an API key credential for authenticating with the Cognee API.
- The base URL for the Cognee API must be configured in the node credentials.
- The node sends HTTP POST requests to the
/api/addendpoint of the Cognee service.
Troubleshooting
Common issues:
- Missing or incorrect API key or base URL configuration may cause authentication failures.
- Providing an empty dataset name or empty text data array will likely result in validation errors.
- Network connectivity problems can prevent communication with the Cognee API.
Error messages and resolutions:
- 401 Unauthorized: Check that the API key credential is correctly set and valid.
- 400 Bad Request: Ensure that both "Dataset Name" and "Text Data" are provided and properly formatted.
- Timeouts or network errors: Verify network access to the Cognee API endpoint and retry.
Links and References
- Cognee API Documentation (hypothetical link for reference)
- n8n HTTP Request Node documentation for understanding request routing and authentication setup.