My Ai agent stopped using tools assigned to it

Describe the problem/error/question

I have an n8n chatbot that uses tools to validate the input, like first and last name etc. it was working but all of a sudden it stopped passing the data needed for the tool to run. instead only the name of ai agent was sent or just the address, and not the json structure that was needed.

N8N worklfow tool
This is what I was using before in the tools data input
{{$fromAI(‘AI_Agent’)}}

And this is what fixed it
{{ $fromAI(‘value’, The users input, ‘string’) }}

HTTP request tool
this is what I was using before in the tools data input
{{$fromAI(‘AI_Agent’)}}

and this it what fixed it
{{ $fromAI(‘JSON’, proposalGenerator, ‘json’) }}

My question is what changed and when did it change?

What is the error message (if any)?

"
JSON parameter needs to be valid JSON"

Please share your workflow

sensitive information

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:**1.101.1,
  • **Database (default: SQLite):**SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**own,main
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**cloud
  • **Operating system:**windows 11

hey @Jim_Olson embed your workflow so we can guide you better.

also you can try improving system prompt which affects agents performance significantly.

I would, but that is not really my question. I want to know why things stopped working. Was there an Update that made things more strict?