AI Services Market › Use cases › Work & Operations
Work & OperationsDone with n8n Feb 21, 2025
Pick and read markdown files with an n8n agent
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. · Feb 21, 2025
- 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.
- How It Went
- 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.
- Worth Knowing
- A reported catch is that, in this setup, tool-call results may need to be manually persisted with a chat-memory-update node for sub-agents.
Try it yourself with n8n
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.