Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[FEATURE] Agent output as JSON format (Sequential Agents)

Open rb58853 opened this issue 1 year ago • 4 comments

I want to use the output of a Agent Node as JSON format I am using Sequential Agents , I have an Agent Node with otput, for example, {'var1': 'value1', 'var2':'value2'}. I want to use this output value (node output) as JSON format for using this in input params of a Custom JS function!

I need something like Structured Output Perser that i can use in an Agent Node.

rb58853 avatar Aug 29 '24 20:08 rb58853

2 ways you can solve this:

1.) Specify in system message to ask LLM returns a JSON. and give few examples. 2.) Use LLM with JSON structured output: image

HenryHengZJ avatar Aug 29 '24 21:08 HenryHengZJ

I have tried both alternatives, but neither recognizes the output as JSON. The output is a JSON, but it cannot be passed as input to a Custom JS Function because it is not recognized as JSON, but rather as LLM output or Agent output.

rb58853 avatar Aug 29 '24 21:08 rb58853

yeah currently custom JS function is not possible to be connected to agentflows, will add that support

HenryHengZJ avatar Aug 30 '24 18:08 HenryHengZJ

+1 Or please let us manually enter the desired JSON structure into the JSON Structured Output through a simple text box like in the Advanced Structured Output Parser node that maybe could then be parsed (no pun intended) by Flowise into the table-display that's currently in place. Adding the key-value pairs using the "add item" is very cumbersome when dealing with more then just few elements. Thank you! :) image image

marfal avatar Sep 30 '24 14:09 marfal

I'd also like to have the tool agents and conversational chains being able to use the json output parser!

dentroai avatar Oct 28 '24 19:10 dentroai

I would also like the tool agents and conversational chains to be compatible with the JSON output parser—it would be a game changer for me!

pietrobonomo avatar Dec 14 '24 05:12 pietrobonomo

I’m thrilled about the potential of implementing JSON-formatted outputs for agent responses in Flowise! This enhancement is a game-changer, enabling seamless integration with custom JavaScript functions and empowering developers to craft more dynamic and efficient conversational agents.

By adopting this feature, Flowise will not only streamline workflows but also position itself at the forefront of AI development tools. Let’s make this happen and elevate Flowise to new heights! 🚀

thiagolealassis avatar Jan 15 '25 18:01 thiagolealassis

Also interested in this feature. When it is easy to configure agents to output JSON it opens up a whole new world where this can be included in automation pipelines, used as API and so on.

dasheck0 avatar Mar 07 '25 13:03 dasheck0

I'd also like to have the tool agents being able to use the json output parser!

CuriousGu avatar Aug 14 '25 05:08 CuriousGu