Actions13
Overview
This node, named "FastGPT," is designed as an AI customer service platform integration within n8n. It supports multiple resources including conversations (chat), knowledge bases, and datasets. Specifically, for the "知识库" (Knowledge Base) resource and the "获取知识库详情" (Get Knowledge Base Details) operation, the node retrieves detailed information about a specified knowledge base by its ID.
Typical use cases include:
- Fetching metadata or configuration details of a particular knowledge base to display or process further.
- Integrating knowledge base details into workflows that require dynamic access to knowledge content.
- Automating management or auditing tasks related to knowledge bases in an AI-powered customer support system.
Example: A workflow could trigger on a new ticket and fetch the relevant knowledge base details to provide context-aware responses.
Properties
| Name | Meaning |
|---|---|
| 知识库ID | The unique identifier of the knowledge base to retrieve details for. This is a string. |
The property "知识库ID" is used as a query parameter named id when making the API request to get the knowledge base details.
Output
The node outputs JSON data representing the detailed information of the requested knowledge base. The exact structure depends on the external API response but typically includes fields such as knowledge base name, description, creation date, status, and other metadata.
If the node supports binary data output, it would be related to attachments or files associated with the knowledge base, but this is not evident from the provided code snippet.
Dependencies
- Requires an API key credential for authentication with the FastGPT platform.
- The base URL for API requests is configured via credentials.
- The node relies on the FastGPT API endpoints corresponding to knowledge base operations.
Troubleshooting
Common issues:
- Invalid or missing knowledge base ID will result in errors or empty responses.
- Incorrect API credentials or base URL misconfiguration can cause authentication failures.
- Network connectivity problems may lead to request timeouts or HTTP errors.
Error messages:
- Authentication errors indicate invalid or missing API keys; verify credentials setup.
- "Knowledge base not found" suggests the provided ID does not exist; double-check the ID.
- HTTP status errors are ignored by default (
ignoreHttpStatusErrors: true), so check the raw response for details if unexpected results occur.
Links and References
- FastGPT official documentation (not provided here, but users should consult their API docs).
- n8n documentation on creating custom nodes and handling credentials.