docs/versioned_docs/version-1.9.0/Components/dynamic-create-data.mdx
import Icon from "@site/src/components/icon"; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import PartialParams from '@site/docs/_partial-hidden-params.mdx'; import PartialCurlyBraces from '@site/docs/_partial-escape-curly-braces.mdx';
The Dynamic Create Data component creates a JSON object or Message with configurable fields.
Define the table in the Input Configuration field, and the component creates corresponding input or output handles in the component.
The following example demonstrates how to use a Dynamic Create Data component to create a structured JSON or Message object from multiple sources.
Add the Dynamic Create Data component to your flow.
To define your data's fields, in the Input Configuration field, click <Icon name="Table" aria-hidden="true"/> Open table.
To add rows to your table, click <Icon name="Plus" aria-hidden="true"/> Add a new row.
Adding a new row creates input and output handles for the Field Type.
For example, if you add a Text type field, thenText input and output handles are added to the component.
For each new row, configure the Field Name and Field Type.
Text or Message output from other components.JSON input from other components.Text or Message outputs from other components.Text, JSON, or Message output from other components.For more information, see Langflow data types.
Depending on your Field Type selections, either connect output from other components to dynamically populate the inputs, or enter values manually in the Dynamic Create Data component's fields.
Select the desired output type at the component's output port. The component outputs either a JSON object containing all field values from the component's inputs, or a Message containing all field values formatted as a text string.
| Name | Display Name | Info |
|---|---|---|
form_fields | Input Configuration | Input parameter. A table that defines the dynamic form fields. |
include_metadata | Include Metadata | Input parameter. Whether to include form configuration metadata in the output. |
form_data | Data | Output parameter. A JSON object containing all field values from the dynamic inputs. |
message | Message | Output parameter. A formatted Text message containing all field values in a human-readable format. |