Feishu Node icon

Feishu Node

Feishu Node

Actions106

Overview

This node integrates with a knowledge base system to create nodes within a knowledge space. Specifically, it supports creating new knowledge space nodes that can represent various document types such as documents, spreadsheets, mind maps, multi-dimensional tables, or generic files. The node allows users to specify hierarchical relationships by defining parent nodes and supports creating either original entities or shortcuts to existing nodes.

Common scenarios for this node include:

  • Organizing content in a structured knowledge base by programmatically adding new documents or folders.
  • Automating the creation of knowledge space entries when new resources are generated elsewhere.
  • Managing complex documentation systems where nodes may link to other nodes via shortcuts.

Practical example:

  • Automatically create a new document node under a specific knowledge space folder whenever a new project is initiated.
  • Create shortcut nodes pointing to frequently referenced documents to simplify navigation.

Properties

Name Meaning
知识空间ID (space_id) The ID of the knowledge space where the node will be created. Required.
文档类型 (obj_type) The type of document represented by the node. Options: 文档 (docx), 表格 (sheet), 思维导图 (mindnote), 多维表格 (bitable), 文件 (file). Default is 文档 (docx).
父节点Token (parent_node_token) Token of the parent node under which this node will be created. Leave empty for a top-level node.
节点类型 (node_type) Type of the node to create. Options: 实体 (origin) for an original entity, 快捷方式 (shortcut) for a shortcut node. Required.
原始节点Token (origin_node_token) Token of the original node that a shortcut points to. Required if node_type is 快捷方式 (shortcut).
文档标题 (title) Title of the document or node being created.

Output

The node outputs JSON data representing the result of the creation operation for each input item. This typically includes details about the newly created knowledge space node such as its token, ID, or metadata returned from the knowledge base API.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the knowledge base service.
  • The node depends on an external resource factory module to build resource-operation handlers dynamically.
  • Proper configuration of the API authentication credentials in n8n is necessary.

Troubleshooting

  • Missing or invalid parameters: Ensure all required properties like 知识空间ID and 节点类型 are provided and valid.
  • Parent node token issues: If specifying a parent node token, verify it exists and is correct; otherwise, the node may fail to create the child node.
  • Shortcut node creation errors: When creating a shortcut node, the original node token must be valid; otherwise, the operation will error out.
  • API errors: Network issues or invalid API credentials can cause failures. Check the configured API key and network connectivity.
  • Unhandled operations: If the specified resource-operation combination is not implemented, the node throws an error indicating the method is not supported.

Links and References

  • No direct links available from the source code.
  • For more information, consult the knowledge base platform's API documentation related to knowledge space node management.

Discussion