Feishu Node icon

Feishu Node

Feishu Node

Actions106

Overview

This node is designed to interact with a knowledge base system, specifically to create a copy of a knowledge space node. It allows users to duplicate an existing node within a knowledge space, optionally changing its title and specifying the target location for the copied node. This functionality is useful in scenarios where content needs to be reused or reorganized without manually recreating it, such as duplicating documentation sections, templates, or structured information nodes.

Practical examples include:

  • Copying a documentation page from one knowledge space to another while renaming it.
  • Duplicating a node under a different parent node within the same or another knowledge space to restructure content hierarchies.
  • Creating backups or versions of knowledge nodes by copying them with new titles.

Properties

Name Meaning
知识空间ID (space_id) The ID of the source knowledge space containing the node to copy. (Required)
节点Token (node_token) The token identifying the specific node to be copied. (Required, password type)
目标父节点Token (target_parent_token) The token of the target parent node where the copied node will be placed. Cannot be empty if target knowledge space ID is empty. (Password type)
目标知识空间ID (target_space_id) The ID of the target knowledge space where the copied node will be placed. Cannot be empty if target parent node token is empty.
新标题 (title) The new title for the copied node. If left empty, the new node's title will be empty. If not provided, the original node's title is used.

Output

The node outputs JSON data representing the result of the copy operation. This typically includes details about the newly created node copy, such as its identifier, status, or metadata returned by the knowledge base API. The output structure is an array of JSON objects corresponding to each input item processed.

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 knowledge base API that supports operations for copying nodes between knowledge spaces.
  • Proper configuration of credentials and permissions to access both source and target knowledge spaces is necessary.

Troubleshooting

  • Common issues:

    • Providing both target_parent_token and target_space_id as empty will cause errors because at least one must be specified.
    • Incorrect or expired tokens for nodes or knowledge spaces can lead to authentication or authorization failures.
    • Missing required properties like space_id or node_token will prevent the operation from executing.
  • Error messages:

    • Errors indicating "未实现方法" (method not implemented) suggest that the requested resource-operation combination is not supported.
    • Authentication errors usually mean invalid or missing API credentials.
    • Validation errors may occur if required parameters are missing or incorrectly formatted.
  • Resolutions:

    • Ensure all required fields are filled correctly.
    • Verify that tokens and IDs correspond to existing and accessible resources.
    • Check API credentials and permissions.
    • Review error messages for specific hints and adjust inputs accordingly.

Links and References

  • No direct links available from the source code.
  • For more information, consult the knowledge base API documentation related to node management and copying operations.
  • Refer to n8n documentation on creating custom nodes and handling credentials for API integrations.

Discussion