Feishu Node icon

Feishu Node

Feishu Node

Actions106

Overview

This node, named "Feishu Node," is designed to interact with various resources and operations related to a knowledge base system (知识库). Specifically, for the resource "知识库" and operation "获取知识空间节点信息" (Get Knowledge Space Node Information), it retrieves detailed information about a specific knowledge space node or its associated cloud document using a provided token.

Common scenarios where this node is beneficial include:

  • Fetching metadata or details of a knowledge base node or document for display or processing.
  • Integrating knowledge base content into workflows, such as syncing documents or verifying node existence.
  • Automating documentation management by programmatically accessing node information.

Practical example:

  • A user wants to retrieve information about a particular wiki page or document in their knowledge base by providing its unique token. This node fetches that data, which can then be used downstream for updates, notifications, or analytics.

Properties

Name Meaning
节点Token The actual token representing the knowledge base node or corresponding cloud document. Required to identify the target node/document.
文档类型 The type of document to query. Options include: 知识库节点 (wiki), 旧版文档 (doc), 新版文档 (docx), 表格 (sheet), 思维导图 (mindnote), 多维表格 (bitable), 文件 (file), 幻灯片 (slides). Defaults to 知识库节点 (wiki) if not specified.

Output

The node outputs JSON data containing the information retrieved about the specified knowledge space node or document. The exact structure depends on the queried document type but generally includes metadata fields relevant to the node/document such as title, ID, creation date, modification date, and possibly content summaries or links.

If the node supports binary data output (not explicitly shown in the code), it would typically represent file contents or attachments related to the node/document.

Dependencies

  • Requires an API key credential for authentication with the external knowledge base service.
  • Depends on the internal ResourceFactory to resolve and execute the correct method for the given resource-operation pair.
  • No additional environment variables are explicitly required beyond standard n8n credential setup.

Troubleshooting

  • Common issues:

    • Providing an invalid or expired token will likely result in errors or empty responses.
    • Selecting an unsupported document type or mismatching the token with the document type may cause failures.
    • Network or authentication errors due to misconfigured API credentials.
  • Error messages:

    • "未实现方法: 知识库.获取知识空间节点信息" indicates the requested resource-operation method is not implemented; verify the resource and operation names.
    • API-related errors wrapped as NodeApiError may contain detailed error messages from the external service; check credentials and token validity.
  • Resolutions:

    • Ensure the token corresponds exactly to the node or document intended.
    • Confirm the document type matches the token's actual content type.
    • Verify API credentials are correctly configured and have necessary permissions.
    • Use the node's "Continue On Fail" option to handle errors gracefully during batch executions.

Links and References

Discussion