Question about passing parameters in flow - [Mapping and Form AI] Tab

Dear all.

I have created a workflow in N8N, which contains an agent as shown in the image, and within the Tools I make a call to a subworkflow.

The agent receives the data correctly as shown in the following image

However, at the input of the subworkflow I see that it only receives the UserId data and I don’t see the terminationDate field.

That Form AI tab confuses me, since when I changed to where it says Mapping, it shows me.-

Can you please explain this to me.

Thank you!

Hi @testn8n_Santiago Welcome!

terminationDate is getting dropped because the sub-workflow only accepts the fields declared in its input schema, and right now only UserId is declared, so that is all the tool forwards. Open the sub-workflow’s Execute Sub-workflow Trigger (the “When Executed by Another Workflow” node), set it to “Define using fields below” and add both UserId and terminationDate. Then back in the Call n8n Workflow Tool node, hit Refresh to pull the fields in and set terminationDate the same way you set UserId. The “Form AI” view is just the per-field “Let the model define this parameter” button, which writes a $fromAI() expression; switch it off on the field to map the value yourself instead.

Thanks

This was the solution:

“The “Form AI” view is simply the “Let the model define this parameter” button per field, which writes a $fromAI() expression; disable it in the field to map the value yourself instead.”