> For the complete documentation index, see [llms.txt](https://docs.waterflai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.waterflai.ai/studio/studio-builders/flow-components-nodes/document-metadata-extraction-node.md).

# Document metadata extraction Node

### Overview

The Document Metadata Field Extraction Node extracts specific metadata field from document objects within your flow. This node is particularly useful when you need to access and utilize document metadata such as source information, timestamps, or custom metadata fields that were added during document processing.

Usage cost: 0 credit

### Configuration

#### Settings

1. **Document Selection**
   * Document\*: Select the source document variable
   * Only single documents are supported (not document arrays)
2. **Field Configuration**
   * Metadata Field\*: Name of the metadata field to extract
   * Supports both standard and custom metadata fields

#### Output Ports

* `metadata_field_value` (string, optional): The extracted field value
  * Returns `null` if the field doesn't exist
  * Always converts the value to string format

### Best Practices

1. **Field Selection**
   * Verify field names are exact matches
   * Consider case sensitivity
   * Use consistent metadata field naming across your flow

### Common Issues

* Field name mismatches
* Missing metadata fields
* Unexpected metadata value types
