SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Document → Get Content

AI-generated

Overview

This node interacts with the SiYuan note-taking and knowledge management system, specifically to retrieve the content of a document by its unique Document ID. It is useful in workflows where you need to programmatically access and manipulate the content of documents stored in SiYuan, such as for automation, data extraction, or integration with other systems.

Use Case Examples

  1. Retrieve the full content of a specific document by providing its Document ID to use in further processing or analysis.
  2. Automate the extraction of document content for backup or migration purposes.
  3. Integrate SiYuan document content retrieval into AI workflows for content summarization or transformation.

Properties

Name Meaning
Document ID The unique ID of the document to retrieve content from. This is a required string input.

Output

JSON

  • content - The content of the document retrieved from SiYuan.
  • success - Indicates whether the operation to get the document content was successful.

Dependencies

  • Requires SiYuan API URL and API Token credentials for authentication.

Troubleshooting

  • Ensure that the SiYuan API URL and API Token credentials are correctly set and valid; otherwise, the node will throw an error indicating missing credentials.
  • If the Document ID is incorrect or does not exist, the operation may fail or return an empty result.
  • Unsupported resource or operation errors occur if the resource or operation parameters are incorrect or not implemented in the node.

Discussion