Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion docs/docs/Components/components-processing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ They have many uses, including:
* Feed instructions and context to your LLMs and agents with the [**Prompt Template** component](#prompt-template).
* Extract content from larger chunks of data with a [**Parser** component](#parser).
* Filter data with natural language with the [**Smart Transform** component](#smart-transform).
* Create structured data dynamically with the [**Dynamic Create Data** component](#dynamic-create-data).
* Perform advanced JSON queries with the [**Data Operations** component](#data-operations) using `jq` expressions.
* Save data to your local machine with the [**Write File** component](#save-file).
* Transform data into a different data type with the [**Type Convert** component](#type-convert) to pass it between incompatible components.
Expand Down Expand Up @@ -417,6 +418,48 @@ The output is a `DataFrame` containing all columns from the original `DataFrame`
</TabItem>
</Tabs>

## Dynamic Create Data

The **Dynamic Create Data** component creates a [`Data`](/data-types#data) object or [`Message`](/data-types#message) with configurable fields.
Define the table in the **Input Configuration** field, and the component creates corresponding input or output handles in the component.

### Use the Dynamic Create Data component in a flow

The following example demonstrates how to use a **Dynamic Create Data** component to create a structured `Data` or `Message` object from multiple sources.

1. Add the **Dynamic Create Data** component to your flow.

2. To define your data's fields, in the **Input Configuration** field, click <Icon name="Table" aria-hidden="true"/> **Open table**.

3. 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, then`Text` input and output handles are added to the component.
For each new row, configure the **Field Name** and **Field Type**.

* **Field Name**: The name of the field used as both the internal key and display label.
* **Field Type**: The type of input field to create. The type options are:
* Text: Accepts direct text input or accepts `Text` or `Message` output from other components.
* Data: Accepts `Data` input from other components.
* Number: Accepts direct numeric input or accepts `Text` or `Message` outputs from other components.
* Handle: Accepts `Text`, `Data`, or `Message` output from other components.
* Boolean: Accepts Boolean values. Cannot accept input from another component.

For more information, see [Langflow data types](/data-types).
4. 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.

5. Select the desired output type at the component's output port. The component outputs either a [`Data`](/data-types#data) object containing all field values from the component's inputs, or a [`Message`](/data-types#message) containing all field values formatted as a text string.

### Dynamic Create Data parameters

<PartialParams />

| 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 `Data` 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. |
Comment thread
mendonk marked this conversation as resolved.

## LLM Router

The **LLM Router** component routes requests to the most appropriate LLM based on [OpenRouter](https://openrouter.ai/docs/quickstart) model specifications.
Expand Down Expand Up @@ -1118,7 +1161,7 @@ This component concatenates two text inputs into a single text chunk using a spe
<details>
<summary>Create Data</summary>

Replace this legacy component with the [**Data Operations** component](#data-operations).
Replace this legacy component with the [**Dynamic Create Data** component](#dynamic-create-data).

This component dynamically creates a `Data` object with a specified number of fields and a text key.

Expand Down
2 changes: 2 additions & 0 deletions docs/docs/Support/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ For all changes, see the [Changelog](https://github.com/langflow-ai/langflow/rel

New [**Mock Data** component](/components-data#mock-data)

New [**Dynamic Create Data** component](/components-processing#dynamic-create-data)

New [**ALTK** bundle](/bundles-altk)

New [**CometAPI** bundle](/bundles-cometapi)
Expand Down
Loading