Waterflai
  • Welcome to Waterflai
  • Getting Started
    • Concepts
    • Quickstart
  • Providers
    • Providers Overview
    • Providers setup
    • AI models
    • Choose the right models
  • Knowledge
    • Knowledge Overview
    • Knowledge connectors
    • Knowledge collections
  • Studio
    • Studio Overview
    • Studio Builders
      • Light Builder
      • Dream Builder
      • Workflow Builder
      • Flow components (nodes)
        • Input Node
        • Output Node
        • LLM model Node
        • Multimodal LLM Node
        • Dall-E 2 (image generation) Node
        • Dall-E 3 (image generation) Node
        • Sora video generation Node
        • Text-to-Speech (TTS) Node
        • Speech-to-Text (STT) Node
        • OCR Node
        • Agent Node
        • Reranker Node
        • Knowledge retrieval Node
        • Vector store insert Node
        • Vector store record delete Node
        • Gitbook loader
        • Notion Database Node
        • Figma Node
        • Webpage scraper Node
        • Sitemap Scraper Node
        • API Request Node
        • Document metadata extraction Node
        • Document metadata update Node
        • Character splitter Node
        • HTML splitter Node
        • Markdown Splitter
        • Calculator tool Node
        • Text as tool Node
        • Knowledge retrieval tool Node
        • Conditional Node
        • Iteration loop Node
      • Testing and Debugging
    • Publishing
    • Integration with API
    • Embedding in website
  • Analytics
    • Analytics Overview
    • Dashboards
    • Logs
  • Administration
    • Organization users
    • Workspace
    • Security and permissions
  • Troubleshooting
    • Support
Powered by GitBook
On this page
  • Overview
  • Configuration
  • Best Practices
  • Common Issues
  1. Studio
  2. Studio Builders
  3. Flow components (nodes)

Document metadata update Node

Overview

The Document Metadata Update Node allows you to modify or add metadata fields to existing documents in your flow. It provides flexibility in updating document metadata either by merging with existing metadata or completely reinitializing it with new values.

Usage cost: 0 credit

Configuration

Settings

  1. Document Selection

    • Document*: Select the source document to update

    • Only single documents are supported (not document arrays)

  2. Metadata Configuration

    • Metadata Fields*: JSON object containing the metadata fields to update

    • Reinitialize: Toggle to clear existing metadata before applying new fields

      • When enabled: Replaces all existing metadata

      • When disabled: Merges new fields with existing metadata

Output Ports

  • document (Document): Updated document with new metadata

    • Contains the original document content

    • Updated metadata based on configuration

Best Practices

  1. JSON Structure

    • Use valid JSON format for metadata fields

    • Use double quotes for keys and string values

    • Structure nested data appropriately

  2. Metadata Management

    • Document metadata schema changes

    • Use consistent field names

    • Consider data types when updating

Common Issues

  • Invalid JSON syntax in metadata fields

  • Missing required metadata fields

  • Inconsistent field naming

  • Special characters in JSON

  • Nested object handling

PreviousDocument metadata extraction NodeNextCharacter splitter Node

Last updated 3 months ago