I have a small problem that I’ve tried to simplify as much as possible: I don’t know how to get an AI Agent to pass information to a tool
Describe the problem/error/question
I have a trigger with a form that passes a value between 1 and 10 to the AI Agent. The agent, with a GPT-4.1-mini model, has a simple prompt:
- Enumerate {{ $json[‘number from 1 to 10’] }} mammals that begin with a random letter between a and z
- Send them to the tool called “send_post” as a single array. What I need is to send “something” that the tool can interpret. The idea is that the AI agent extracts information from a conversation (gender, location, disability: yes/no, date of birth) and sends a post to an endpoint I have in WordPress that stores the data (that part works).
The workflow, simplified:
http://extremaduraformacion.com/animales.json
The endpoint:
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: :2.11.4
- Running n8n via n8n cloud:
- Operating system: linux