• Tools
  • Tools
loading...
No Results
  • Get Started
    • Welcome to GoInsight.AI
    • GoInsight.AI Overview
    • LLM Selection Guide
  • InsightFlow
    • InsightFlow Introduction
    • Types of InsightFlow
    • Interactive Flow
      • Editing and Debugging Interactive Flow
      • Publishing an Interactive Flow
      • Security Settings for Interactive Flow
    • Service Flow
      • Editing and Debugging Service Flow
      • Publishing a Service Flow
    • Services & Tools
      • Tool
      • Service
      • Agent Strategy
    • Node
      • Start
      • Answer
      • LLM
      • Knowledge Retrieval
      • Document Read
      • Document Write
      • Document Delete
      • HTTP Request
      • KnowledgeFocus LLM
      • Agent
      • Progress
      • Tool Call
      • IF/ELSE
      • Question Classifier
      • Branch Aggregator
      • Multi branch Selector
      • Iteration
      • Interactive Form
      • Pause & Resume
      • Delay
      • Auto-Continue
      • Template
      • Code
      • JSON Variable Extractor
      • Variable Assigner
      • Variable Extractor
      • End
    • Node Error Handling Strategy
    • Create Your First Workflow
  • Marketplace
    • Marketplace
  • Documents
    • Workspace Documents
    • Personal Data
  • Workspace
    • GoInsight Workspace Introduction
    • Collaboration Workspace
  • Quick Chatbot
    • Build a Quick Bot
  • Team Management
    • Access Control
    • Usage
    • Audit Center
    • Credential Management
    • Model Management
  • Knowledge 101
    • Key Concepts
    • Data Security
    • ABEvent
    • Interactive Form: JSON Configuration
    • Context Is the Foundation of AI Collaboration
    • Build Collaborative Context with Say It for Me
    • Use Expressions with Variables
Home > Documentation > InsightFlow > Node

Document Write Node

Definition

The Document Write node writes information into Documents, making it easier to create or update Workspace document content within the workflow.

Document Write node

How to Configure

1. Add a Target Document

Add a "Document Write node" to the canvas, then tap the node to configure it on the right.

Here are three options to add a target document.

  • Choose: Choose or directly select a document from the directory to write to.
  • Create: Create a new document under the specified folder.
  • Variables/Expressions: Locate the document to be written to or create a new document by document path and name.

Option A: Choose an Existing Document

  1. Click "+" in the pop-up window.
  2. document-writing-node-add-document
  3. Tap "Choose".
  4. Browse or search for the specific folder you want to update (e.g., "gi words").
  5. Select it and click "Save".

choose exist document

Option B: Create a New Document

  1. Click the "Create" tab.
  2. Select the folder where you want the new document to live.
  3. Set the "Document Type". Options include:

      • Rich Text Document: Can contain images and text formatting. Usually used to store enterprise knowledge for document Q&A.

      • Code or Plain Text Document: Plain text, usually used to store code, prompts, or workflow configuration files.

  4. In the "Document Name" field, type a unique name or insert a variable for your new document.
  5. Click "Save".

create knowledge in document write

Option C: Use a Variable for the Document Path (Advanced)

  1. Click the "Variable/Expression" tab.
  2. Select the "Document Type" and enter the "Document Path" (e.g., Folder1/Folder2/Document). The path field supports variables.

Usage Tip: Both "Create" and "Variable/Expression" options allow you to customize the document name and type. If a document with the exact name and type already exists in the folder, the node selects it by default. If it does not exist, the node creates a new document.

document path

2. Define the Write Mode

After selecting or creating your document, you must set how the node handles the content if the document already exists.

  • Append: Adds new content to the end of the existing document. The original content remains.
  • Override: Replaces all existing content in the document with your new content. The old content is cleared.
write mode in document write

3. Write Content

In the "Write Content" box, type the text you want to save into the document.

  • You can type plain text.
  • You can insert variables by typing { or / to use dynamic content from your workflow.
write content

Click the "Save" button to apply your settings to the Document Write node.

Now, when your AI workflow reaches this node, it will perform the specified action: saving new content to a new document or updating an existing one based on your chosen mode.

Usage Examples

The Document Write node accurately stores workflow data into target documents, standardizing data management. Actual application scenarios include:

  • Enterprise data document construction: Design workflows to use crawlers to capture industry information and product introductions. After cleaning and sorting, use the Document Write node to write them into corporate documents in Markdown and other formats for employees to review.
  • Customer service data retention: The customer service workflow collects customer inquiries and feedback in real time, categorizes them, and writes analysis documents through the Document Write node to review services, identify high-frequency issues, and optimize responses.

How to Write to Personal Data

To write content to the current workflow executor's Personal Data, use the variable provided by the Start node in the Document Write node: {{#START.$PersonalDataPath#}}.

This variable represents the current workflow user's own Personal Data directory.

In Add Target Document, select Variable/Expression, then configure the document path as {{#START.$PersonalDataPath#}}/Document Name.

For example: {{#START.$PersonalDataPath#}}/Memory.

personal data

This way, when different users run the same workflow, the Document Write node writes to the corresponding document under each user's own Personal Data, rather than a shared document. If the target document does not exist, the Document Write node automatically creates it based on the configuration before writing content.

Error Handling for the Document Write Node

The Document Write node supports writing to multiple documents simultaneously. In actual use, some documents may write successfully while others fail due to incorrect paths, inaccessible target documents, or insufficient permissions.

When an error occurs during node execution, you can choose different error handling methods:

Error Handling Method Description
None If the node fails, an error is reported and the workflow ends.
Ignore Error If the node fails, the error is ignored and the subsequent process continues.
Error Branch If the node fails, the current path is interrupted and redirected to the configured error handling branch.

When Ignore Error is selected, the system provides the Ignore Scope setting to control the impact of the error:

Ignore Scope Description
Failed Only Only documents that fail to write are ignored. Other documents write normally.
Whole Node If any document fails to write, the entire node ignores the error.

If multiple target documents are configured in one Document Write node, we recommend selecting Failed Only based on your business needs. This ensures that even if one document fails, others can still write successfully, preventing a single failure from stopping the entire node.

Updated on: Jul 22, 2026
Was This Page Helpful?
Prev Document Read
Next Document Delete
Discussion

Leave a Reply. Cancel reply

Your email address will not be published. Required fields are marked*

Product-related questions?Contact Our Support Team to Get a Quick Solution>
On this page
  • Definition
  • How to Configure
  • Usage Examples
  • How to Write to Personal Data
  • Error Handling
loading...
No Results