About this use case
The poster tried n8n's agent node to choose a .md file from JSON summaries and read it from disk, but found it performed poorly.
What they did
The poster fed an n8n agent a user request plus JSON summaries of markdown files, with two custom JavaScript tools: one to list files from disk and another to read and parse a chosen file. They tested it against a local 14B Ollama model that worked with tool calling elsewhere, but in n8n they said the tools agent would not reliably call tools, so they fell back to the conversational agent and asked how to make multi-step tool use work.
Prompt
Help me set up an n8n AI Agent node that looks at a JSON list of file summaries from [folder path], picks the markdown file most relevant to the question [my question], and reads that file from disk to answer. Include a clear system prompt and tool descriptions so the agent selects the right file reliably. Test it with three sample questions and report which file it chose each time, and stop once it picks correctly on all three.
Reported outcome
It worked poorly in n8n compared with the poster’s JavaScript SDK and other frameworks, and they could not tell whether n8n could chain multiple tool calls. Comments suggested breaking the task into smaller agents or subworkflows, and one person said tool outputs were not automatically kept in chat context.
Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.