Lark Suite

Consume Lark Suite API

Overview

This node integrates with the Lark Suite API to manage documents. Specifically, the 'Create' operation under the 'Document' resource allows users to create new documents within Lark Suite, optionally specifying a title and the folder token where the document should be created. This is useful for automating document creation workflows, such as generating reports, meeting notes, or project documentation directly from n8n.

Use Case Examples

  1. Automatically create a new document titled 'Weekly Report' in a specified folder when a workflow is triggered.
  2. Create a document with a dynamic title based on input data and organize it into a specific folder in Lark Suite.

Properties

Name Meaning
Title The title of the document to be created.
Folder Token The token identifier of the folder where the new document will be created.

Output

JSON

  • code - Status code of the API response indicating success or failure.
  • msg - Message from the API response, typically describing the result or error.
  • data
    • document_id - The unique identifier of the newly created document.
    • title - The title of the created document.
    • folder_token - The folder token where the document was created.

Dependencies

  • Lark Suite API

Troubleshooting

  • Ensure that the Lark Suite API credentials (app ID and app secret) are correctly configured and valid, as the node requires an access token to authenticate requests.
  • If the API returns an error code other than 0, check the error message for details, such as invalid folder token or insufficient permissions.
  • Network issues or incorrect API endpoint URLs can cause request failures; verify network connectivity and endpoint correctness.

Links

Discussion