Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Agentflows v2 Condition not works when 2 or more condition connects same node

Open okurayhan opened this issue 5 months ago • 10 comments

Agentflows v2 Condition not works when 2 or more condition connects same node.

Image

Please see the screenshot. When I write "hi", Report Value Collection Agent not works. When I duplicate Report Value Collection Agent 5 times and connect all nodes to different agents, it works. But I don't want to duplicate same agents.

okurayhan avatar Jun 15 '25 08:06 okurayhan

I don't think the Condition Node is intended to be used like that (I could be wrong).

The issue is that you're using the Condition Node as if it has multiple OR paths, but it's really an IF/ELSE IF chain. For your use case (for 2 agents), you would to need to combine all your "false" cases into a single condition That way, you only have two outputs: one for True and one for False.

Edit: Also, since you are using the LLM + Condition Node, you could use the Conditional Agent Node directly for a very reliable route.

Image

toi500 avatar Jun 16 '25 14:06 toi500

It works in Agentflows v1 version. I want to combine all cases into one node because I am checking every state value is not empty. When all state values are filled another agent will work.

okurayhan avatar Jun 16 '25 18:06 okurayhan

Yeah, I know, in v1 you can also add custom code to the node. Condition Node in V2 is more a simplification of the V1 one, this is why I am unsure if this is a current bug or a limitation.

If what you want is to collect data with one agent first and then to move to the next agent, you also do it like this.

Image

toi500 avatar Jun 16 '25 20:06 toi500

First agent collects more than one data. It collects 5 user input value. So I need to run same agent to get 5 value.

okurayhan avatar Jun 18 '25 18:06 okurayhan

Ok...

toi500 avatar Jun 18 '25 20:06 toi500

I am experiencing a similar problem here, in the scenarios where the "LomiBot Orders" agent should be launched, the flow stops

Image

guivern avatar Jun 19 '25 21:06 guivern

same thing happens to my flow it stops at the first node Image

howardtokka avatar Jun 27 '25 05:06 howardtokka

Same with loop-nodes with input from different nodes:

Image

iparker avatar Jul 03 '25 20:07 iparker

I'm experiencing the same issue in Flowise version 3.0.5, due to enterprise usage I am unable to update at the moment. Has this been fixed in version 3.0.8?

LarsEbt avatar Oct 20 '25 13:10 LarsEbt

I can also reproduce this, it is very annoying as there is no error logged even with DEBUG enabled... I've made a example flow down below which is currently broken for me (Flowise 3.0.10, self-hosted), i'm suspecting this has maybe to do with passing the same "Flow State" variables to the endnode and then it slipping up somewhere 🤔

Is there any way to help debug this issue? @HenryHengZJ

Agentflow: agent.json

Image

marcopixel avatar Nov 13 '25 09:11 marcopixel