# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.waterflai.ai/studio/studio-builders/flow-components-nodes/document-metadata-extraction-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
