Skip to content

Commit 2b3ded8

Browse files
committed
rework screens with flatten output wihout question mark, simplify and shorten
1 parent 18ca140 commit 2b3ded8

File tree

8 files changed

+5
-5
lines changed

8 files changed

+5
-5
lines changed

sources/platform/integrations/ai/langflow.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Once the run is finished, we can view the output by clicking the **Output** butt
8989
The output should look similar to this:
9090
![Flow - Apify Actors Output Data](../images/langflow/apify_actors_output_data.png)
9191

92-
To filter only the `metadata` and `markdown` fields, set **Output fields** to `metadata,markdown`. Additionally, enable **Flatten output?** by setting it to `true`. This will output only the metadata and text content from the search results.
92+
To filter only the `metadata` and `markdown` fields, set **Output fields** to `metadata,markdown`. Additionally, enable **Flatten output** by setting it to `true`. This will output only the metadata and text content from the search results.
9393
> Flattening is necessary when you need to access nested dictionary fields in the output data object; they cannot be accessed directly otherwise in the Data object.
9494
9595
![Flow - Apify Actors Output Filter](../images/langflow/apify_actors_output_filter.png)
@@ -107,16 +107,16 @@ Create a new flow and add two **Apify Actors** components from the menu.
107107
Input your API token (learn how to get it [here](https://docs.apify.com/platform/integrations/api)) and set the Actor ID of the first component to `apify/google-search-scraper` and the second one to `clockworks/free-tiktok-scraper`:
108108
![Flow - Actors configuration](../images/langflow/apify_actors_configuration.png)
109109

110-
Now add the *Agent* component from the menu and set your OpenAI API key (get it [here](https://platform.openai.com/account/api-keys)).
110+
Add the **Agent** component from the menu and set your OpenAI API key (get it [here](https://platform.openai.com/account/api-keys)):
111111
:::tip Optimize Agent results
112112

113113
For better results, switch the model to `gpt-4o` instead of `gpt-4o-mini` in the Agent configuration
114114

115115
:::
116-
Then connect both Apify Actor components **Tool** outputs to the Agent component **Tools** input:
117-
![Flow - Agent configure](../images/langflow/agent_configure.png)
116+
![Flow - Agent configuration](../images/langflow/agent_configuration.png)
118117

119-
Now add **Chat Input** and **Chat Output** components from the menu and connect them to the Agent component **Input** and **Response**. The final flow that can search the web for a company's social media profiles and extract data from them:
118+
To be able to interact with the Agent, add **Chat Input** and **Chat Output** components from the menu and connect them to the Agent component **Input** and **Response**.
119+
Then connect both Apify Actor components **Tool** outputs to the Agent component **Tools** input. The final flow that can search the web for a company's social media profiles and extract data from them should look like this:
120120
![Flow - Final](../images/langflow/flow.png)
121121

122122
Click the **Playground** button and chat with the Agent to test the flow:
21.8 KB
Loading
Binary file not shown.
-18 KB
Loading
-1.09 KB
Loading
-28.3 KB
Loading
-12.1 KB
Loading
-2.11 KB
Loading

0 commit comments

Comments
 (0)