diff --git a/docs/docs/Components/components-data.md b/docs/docs/Components/components-data.md
index eef354fe1..d30e3ad8c 100644
--- a/docs/docs/Components/components-data.md
+++ b/docs/docs/Components/components-data.md
@@ -3,6 +3,8 @@ title: Data
slug: /components-data
---
+import Icon from "@site/src/components/icon";
+
# Data components in Langflow
Data components load data from a source into your flow.
@@ -26,6 +28,49 @@ In this example of a document ingestion pipeline, the URL component outputs raw
This component makes HTTP requests using URLs or cURL commands.
+1. To use this component in a flow, connect the **Data** output to a component that accepts the input.
+For example, connect the **API Request** component to a **Chat Output** component.
+
+
+
+2. In the API component's **URLs** field, enter the endpoint for your request.
+This example uses `https://dummy-json.mock.beeceptor.com/posts`, which is a list of technology blog posts.
+
+3. In the **Method** field, enter the type of request.
+This example uses GET to retrieve a list of blog posts.
+The component also supports POST, PATCH, PUT, and DELETE.
+
+4. Optionally, enable the **Use cURL** button to create a field for pasting curl requests.
+The equivalent call in this example is `curl -v https://dummy-json.mock.beeceptor.com/posts`.
+
+5. Click **Playground**, and then click **Run Flow**.
+Your request returns a list of blog posts in the `result` field.
+
+### Filter API request data
+
+The **API Request** component retrieved a list of JSON objects in the `result` field.
+For this example, you will use the **Lambda Filter** to extract the desired data nested within the `result` field.
+
+1. Connect a **Lambda Filter** to the API request component, and a **Language model** to the **Lambda Filter**. This example connects a **Groq** model component.
+2. In the **Groq** model component, add your **Groq** API key.
+3. To filter the data, in the **Lambda filter** component, in the **Instructions** field, use natural language to describe how the data should be filtered.
+For this example, enter:
+```
+I want to explode the result column out into a Data object
+```
+:::tip
+Avoid punctuation in the **Instructions** field, as it can cause errors.
+:::
+4. To run the flow, in the **Lambda Filter** component, click .
+5. To inspect the filtered data, in the **Lambda Filter** component, click .
+The result is a structured DataFrame.
+```text
+| userId | id | title | body | link | comment_count |
+|---|----|-------|------|------|---------------|
+| 1 | 1 | Introduction to Artificial Intelligence | Learn the basics of AI ...| https://example.com/article1 | 8 |
+| 2 | 2 | Web Development with React | Build modern web applications ...| https://example.com/article2 | 12 |
+```
+
### Inputs
| Name | Display Name | Info |
@@ -46,8 +91,8 @@ This component makes HTTP requests using URLs or cURL commands.
| Name | Display Name | Info |
|------|--------------|------|
-| data | Data | The result of the API requests. |
-
+| data | Data | The result of the API requests. Returns a Data object containing source URL and results. |
+| dataframe | DataFrame | Converts the API response data into a tabular DataFrame format. |
## Directory
@@ -238,6 +283,40 @@ This component executes SQL queries on a specified database.
This component fetches content from one or more URLs, processes the content, and returns it in various formats. It supports output in plain text, raw HTML, or JSON, with options for cleaning and separating multiple outputs.
+1. To use this component in a flow, connect the **DataFrame** output to a component that accepts the input.
+For example, connect the **URL** component to a **Chat Output** component.
+
+
+
+2. In the URL component's **URLs** field, enter the URL for your request.
+This example uses `langflow.org`.
+
+3. Optionally, in the **Max Depth** field, enter how many pages away from the initial URL you want to crawl.
+Select `1` to crawl only the page specified in the **URLs** field.
+Select `2` to crawl all pages linked from that page.
+The component crawls by link traversal, not by URL path depth.
+
+4. Click **Playground**, and then click **Run Flow**.
+The text contents of the URL are returned to the Playground as a structured DataFrame.
+
+5. In the **URL** component, change the output port to **Message**, and then run the flow again.
+The text contents of the URL are returned as unstructured raw text, which you can extract patterns from with the **Regex Extractor** tool.
+
+6. Connect the **URL** component to a **Regex Extractor** and **Chat Output**.
+
+
+
+7. In the **Regex Extractor** tool, enter a pattern to extract text from the **URL** component's raw output.
+This example extracts the first paragraph from the "In the News" section of `https://en.wikipedia.org/wiki/Main_Page`.
+```
+In the news\s*\n(.*?)(?=\n\n)
+```
+
+Result:
+```
+Peruvian writer and Nobel Prize in Literature laureate Mario Vargas Llosa (pictured) dies at the age of 89.
+```
+
### Inputs
| Name | Display Name | Info |
@@ -253,7 +332,7 @@ This component fetches content from one or more URLs, processes the content, and
|------|--------------|------|
| data | Data | List of [Data](/concepts-objects) objects containing fetched content and metadata. |
| text | Text | Fetched content as formatted text, with applied separators and cleaning. |
-| dataframe | DataFrame | Content formatted as a [Data](/concepts-objects#dataframe-object) object. |
+| dataframe | DataFrame | Content formatted as a [DataFrame](/concepts-objects#dataframe-object) object. |
## Webhook
diff --git a/docs/docs/Components/components-processing.md b/docs/docs/Components/components-processing.md
index 02d2528ea..353705484 100644
--- a/docs/docs/Components/components-processing.md
+++ b/docs/docs/Components/components-processing.md
@@ -500,6 +500,26 @@ This component converts and extracts JSON fields using JQ queries.
|------|--------------|------|
| filtered_data | Filtered Data | Filtered data as list of [Data](/concepts-objects#data-object) objects. |
+## Regex extractor
+
+This component extracts patterns from text using regular expressions. It can be used to find and extract specific patterns or information from text data.
+
+To use this component in a flow:
+
+1. Connect the **Regex Extractor** to a **URL** component and a **Chat Output** component.
+
+
+
+2. In the **Regex Extractor** tool, enter a pattern to extract text from the **URL** component's raw output.
+This example extracts the first paragraph from the "In the News" section of `https://en.wikipedia.org/wiki/Main_Page`:
+```
+In the news\s*\n(.*?)(?=\n\n)
+```
+
+Result:
+```
+Peruvian writer and Nobel Prize in Literature laureate Mario Vargas Llosa (pictured) dies at the age of 89.
+```
## Save to File
@@ -562,6 +582,8 @@ For `Message` inputs, the component can create:
| Name | Display Name | Info |
|------|--------------|------|
+| input_text | Input Text | The text to analyze and extract patterns from. |
+| pattern | Regex Pattern | The regular expression pattern to match in the text. |
| input_type | Input Type | Select the type of input to save.|
| df | DataFrame | The DataFrame to save. |
| data | Data | The Data object to save. |
@@ -573,9 +595,10 @@ For `Message` inputs, the component can create:
| Name | Display Name | Info |
|------|--------------|------|
+| data | Data | List of extracted matches as [Data](/concepts-objects#data-object) objects. |
+| text | Message | The extracted matches formatted as a [Message](/concepts-objects#message-object) object. |
| confirmation | Confirmation | Confirmation message after saving the file. |
-
## Select data
:::important
diff --git a/docs/static/img/component-api-request-chat-output.png b/docs/static/img/component-api-request-chat-output.png
new file mode 100644
index 000000000..4bbf2e9ba
Binary files /dev/null and b/docs/static/img/component-api-request-chat-output.png differ
diff --git a/docs/static/img/component-url-regex.png b/docs/static/img/component-url-regex.png
new file mode 100644
index 000000000..b07570aa8
Binary files /dev/null and b/docs/static/img/component-url-regex.png differ
diff --git a/docs/static/img/component-url.png b/docs/static/img/component-url.png
new file mode 100644
index 000000000..02bf00752
Binary files /dev/null and b/docs/static/img/component-url.png differ