Businessmap icon

Businessmap

Use Businessmap API v2

Document → Create

AI-generated

Overview

This node operation creates a new document with specified details such as title and content. It is useful for automating document creation workflows, such as generating reports, notes, or articles programmatically. For example, it can be used to create a new knowledge base article or a project documentation entry automatically.

Use Case Examples

  1. Creating a new document with a title and content for a project report.
  2. Automatically generating a welcome document that appears on the welcome screen.

Properties

Name Meaning
Title The title of the document to be created, which is required.
Content The main content of the document, which can be plain text or HTML.
Additional Fields Optional fields to customize the document's attributes such as visibility, importance, archival status, AI indexing, parent document nesting, and display settings.

Output

JSON

  • id - The unique identifier of the created document.
  • title - The title of the created document.
  • content - The content of the created document.
  • for_welcome - Indicates if the document is shown on the welcome screen.
  • is_archived - Indicates if the document is archived.
  • is_important - Indicates if the document is marked as important.
  • is_indexed_for_ai - Indicates if the document is indexed for AI.
  • parent_doc_id - The ID of the parent document if nested.
  • show_in_main_doc_list - Indicates if the document is shown in the main document list.

Dependencies

  • An API key credential for authenticating with the document management service.

Troubleshooting

  • Ensure the 'Title' field is not empty as it is required; missing it will cause an error.
  • Verify that the 'Parent Doc ID' exists if provided; otherwise, the document will be created as a top-level document.
  • Check API authentication credentials if the node fails to connect or create documents.
  • Boolean fields must be true or false; invalid values may cause errors.

Discussion