FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
31.83k stars 16.59k forks source link

[BUG] Issue with iterative Sequential Agent Flow in Flowise #3411

Open rppradhan08 opened 1 month ago

rppradhan08 commented 1 month ago

Bug Report: Issue with Sequential Agent Flow in Flowise

Describe the Bug

I am attempting to fill out a form using a collection of agent nodes (sequential agents). Below is a high-level overview of the sequential agent flow. The issue occurs randomly, and the error message does not specify where exactly the problem is happening:

1st Agent Flow Run:

2nd Agent Flow Run and Beyond (Until the Form is Filled):

The issue occurs from the 2nd agent flow run onward. After successfully completing the first run, the following error is returned in subsequent runs:

Error buildAgentGraph - Error: 400 Sorry! We've encountered an issue with repetitive patterns in your prompt. Please try again with a different prompt.

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to the Agent Flow section.
  2. Use agent nodes to replicate the sequential flow as described above.
  3. Start the conversation to fill the form.
  4. Encounter the error on the 2nd or subsequent agent flow runs.

Expected Behavior

The agent flow should continue seamlessly across runs, and the master JSON should be updated incrementally until the form is fully filled.


Screenshots

image


Flow

Due to confidentiality, I cannot share the complete flow configuration. However, if specific agent prompts or the custom tool code is needed for further investigation, please let me know.


Setup


Additional Context

This error might be related to how prompts or agent nodes are structured across multiple runs. If you need more details, such as individual prompts or code snippets from custom tools, please reach out, and I will provide them as needed.

HenryHengZJ commented 2 weeks ago

Do you have a dummy simpler agentflow to replicate the issue? Or a langsmith/langfuse or other analytic trace?