The AI agent is not passing parameters to the sub-workflow

Problem description
I have a main flow that receives a question from a user. The AI ​​Agent needs to query a list of items using a Tool. And that’s where my problem lies: the AI ​​query doesn’t seem to be passing parameters to the sub-workflow. There’s also something strange in the sub-workflow: in the design I specified the parameters to receive, but they don’t appear during execution.

I’ll give details below.

Main workflow

Sub-Workflow (Consulta PP no Supabase)

UI input other than JSON
In my PP Query node, which is in the AI ​​Tool, there’s a yellow box in the Parameters tab, right at the bottom, that says: “This sub-workflow will not receive any input when called by your AI node. Define your expected input in the sub-workflow’s trigger.”

The strange thing is that in the sub-workflow I defined the parameters:

How do I get the AI ​​to understand the parameters desired by the sub-workflow and pass them? Or is the problem with the Tool node, which failed to identify the sub-workflow parameters?

n8n version: 2.1.3

Hello @WillianFLopes,

I can’t reproduce this warning, it looks strange to me,
Also, the AI agent is able to call the sub-workflow and pass parameters normally:

I’m on version 2.2.1 btw..

Could you please share your workflows? I’d like to see if I can find something similar in mine.

I copied yours btw, I just make it work because you deleted everthing inside: