Describe the problem/error/question
Ai agent node doesnt invoke http request node. For example user input is “create a task at 22-15 tomorrow visit lawer with high priority”
What is the error message (if any)?
[
{
“error”: “Received tool input did not match expected schema”
}
]
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Could you try select all and past into the code backticks? It seems the renderer doesn’t recognize what you provided as a valid flow.
1 Like
This may be due to the way you’ve included your workflow example here, but your agent doesn’t have a model attached. Without a model, it can’t reason about tool usage.
I’d recommend trying to improve the prompts a bit as well - both the system prompt as well as the tool description. These use slightly ambiguous language that could be difficult for the model to understand. I’d recommend explaining your use case to a LLM and asking it to write tool descriptions and a system prompt to the agent.
@Martin_Kruusimagi thank you for your explanations.
I’m using gpt-4o-mini
there is a full node copy-paste
A few questions also
- Is it possible to debug what kind of schema was actualy generated, just to have a clue where the issue?
- Maybe it’s better to try generate full json as output and then pass it to the http request node (as distinct node, not tool)?
PS: it’s worth to mention - I have the error not all the time, 50% of workflows are succeeded. Sometimes even the same input may lead to success, but sometimes leads to error
Like @Martin_Kruusimagi said, I would try heavily improve both the system prompt and the tool description and see if that helps.
Let me know if you were able to improve and it helped.