Actions13
- Agent Actions
- Datastore Actions
- Query Actions
- Reranker Actions
- LMUnit Actions
- Parser Actions
Overview
The node provides access to Contextual AI tools, specifically allowing users to list datastores associated with agents. It is useful for scenarios where you need to retrieve and manage collections of data stores linked to AI agents, such as querying available datastores for further processing or analysis.
For example, a user might want to fetch a paginated list of datastores filtered by a specific agent ID to display in a dashboard or to select a datastore for subsequent operations like querying or updating.
Properties
| Name | Meaning |
|---|---|
| Limit | Maximum number of datastores to return in one call. Must be at least 1. |
| Cursor | A pagination cursor from the previous list call to fetch the next set of results. |
| Agent ID | Filter datastores by the ID of the agent they are linked to. If provided, only datastores for this agent will be returned. |
| Authentication | Method of authentication to use; currently supports "API Key". |
Output
The output is an array of JSON objects representing datastores retrieved from the Contextual AI service. Each item corresponds to a datastore entity with its properties (not detailed in the source code). The output may include pagination information if the result set is large.
No binary data output is indicated.
Dependencies
- Requires an API key credential for authenticating requests to the Contextual AI service.
- The node depends on internal routing logic (
resourceRouter) to handle the "List Datastores" operation. - No additional external dependencies are explicitly mentioned.
Troubleshooting
- Empty results: If no datastores are returned, verify that the
Agent IDfilter is correct or try removing it to list all datastores. - Invalid cursor: Using an outdated or incorrect cursor value may cause errors or empty responses. Ensure cursors come directly from previous successful calls.
- Authentication errors: Make sure the API key credential is valid and has sufficient permissions.
- Limit value issues: Setting the limit below 1 may cause validation errors; ensure it is at least 1.
Links and References
- No direct links are provided in the source code. For more details, consult the Contextual AI service documentation or the n8n community forums for usage examples.