Skip to content

Flowise state variables are accessible only to the first tool included in an agent, not to subsequent tools #5338

@maggi2508

Description

@maggi2508

Hi,

I've a simple flow with an LLM node that fetches the user's query, determines the employee id and name from their request and stores them in a flow state variable.
An agent node after this, executes 3 HTTP Get calls as custom tools - each of which utilizes the employee id from the flow state (set by the LLM).
Only the first tool (HTTP Get) call is able to fetch the details successfully. Other tools, are not able to return the data.

I've confirmed this behavior by:

  • Changing the order of the tools. If I simply change the order, the first tool always fetches the data correctly.
  • If I hard code the value of the variable in the Get request (tool), then the data is fetched correctly, which means there is nothing wrong with the HTTP get tool configuration itself.
  • The flow state seems to be available and the vEmpID value is always available. Although, the second tool isn't able to use that value.

Another question that I have is, where can we see the calls made by the 'Tools' itself ? That would be helpful to troubleshoot as currently we don't have any way to debug that execution.

Image Image Image

Thanks & regards,
Maggi

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions