FastGPT icon

FastGPT

AI智能客服平台

Overview

This node interacts with the FastGPT AI customer service platform, specifically managing datasets (collections). The "删除一个集合" (Delete a Collection) operation allows users to delete an existing dataset collection by specifying its ID. This is useful for maintaining or cleaning up datasets that are no longer needed in your knowledge base or AI training environment.

Practical examples:

  • Removing outdated or incorrect data collections from your AI knowledge base.
  • Automating cleanup of temporary or test datasets after processing.
  • Managing storage and organization by deleting unused collections programmatically.

Properties

Name Meaning
父级目录ID The parent folder ID in FastGPT where the dataset resides. You can get this ID from the browser when opening the folder in FastGPT.
选择知识库 Select the knowledge base (dataset group) under the specified parent directory. Options are dynamically loaded based on the parent directory ID.
集合ID The unique identifier of the dataset collection you want to delete.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will include confirmation of deletion or any error messages returned by the FastGPT API. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating with the FastGPT platform.
  • Needs the base URL of the FastGPT API configured in the credentials.
  • The node makes HTTP POST and GET requests to FastGPT endpoints to list datasets and perform deletion.
  • Dynamic loading of knowledge base options depends on the parent directory ID property.

Troubleshooting

  • Common issues:

    • Invalid or missing dataset ID will cause the deletion to fail.
    • Incorrect parent directory ID may result in empty or incorrect knowledge base options.
    • Network or authentication errors if API key or base URL is misconfigured.
  • Error messages:

    • Errors from the FastGPT API will be passed through; typical messages might indicate "Dataset not found" or "Unauthorized".
    • To resolve, verify the dataset ID exists and the API credentials are correct.
    • Ensure the parent directory ID is correctly copied from the FastGPT interface to load knowledge bases properly.

Links and References

  • FastGPT official documentation (not provided here, but recommended to consult for API details)
  • n8n documentation on creating and using custom nodes and credentials

Discussion