Actions13
Overview
This node integrates with the FastGPT AI customer service platform, specifically focusing on managing "collections" (datasets). The operation "创建一个空的集合" ("Create an empty collection") allows users to create a new empty dataset or folder within FastGPT. This is useful for organizing knowledge bases or data into structured collections before adding content.
Practical scenarios include:
- Setting up a new folder to group related datasets.
- Creating a virtual collection as a container for manual grouping of knowledge items.
- Preparing an empty dataset structure to be populated later via other operations or manual input.
Properties
| Name | Meaning |
|---|---|
| 父级目录ID | The ID of the parent folder in which to create the new collection. Obtain this by opening the folder in FastGPT and copying the browser's folder ID. |
| 选择知识库 | Select the knowledge base under which the collection will be created. Options are dynamically loaded based on the parent directory ID. |
| 名称 | The name of the new collection to create. This is a required field. |
| 类型 | The type of the collection. Options are: |
- 文件夹 (folder): A standard folder to organize datasets.
- 虚拟集合(手动集合) (virtual): A virtual/manual collection used for grouping without physical files.|
Output
The node outputs JSON data representing the newly created collection. This typically includes details such as the collection's unique ID, name, type, and possibly its parent directory ID. The output can be used in subsequent workflow steps to reference or manipulate the created collection.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the FastGPT platform.
- The node sends HTTP POST requests to FastGPT endpoints, using the base URL provided in credentials.
- Dynamic loading of knowledge base options depends on the parent directory ID property.
Troubleshooting
Common issues:
- Invalid or missing parent directory ID may cause failure to load knowledge base options or create the collection.
- Missing required fields like the collection name or type will prevent successful creation.
- Network or authentication errors if the API key or base URL is incorrect.
Error messages:
- Errors related to authorization usually indicate invalid or expired API credentials.
- Validation errors often point to missing or malformed input properties.
Resolutions:
- Verify that the parent directory ID is correctly copied from FastGPT.
- Ensure all required fields are filled.
- Check API credentials and network connectivity.
Links and References
- FastGPT Official Documentation (replace with actual URL)
- FastGPT API reference for dataset management (consult your FastGPT API docs for detailed endpoint info).