Ask n8n to choose and open a markdown file
A user tested whether n8n could pick a markdown file from summaries, read it from disk, and answer a question, but the agent handling was unreliable.
- What they did
- They set up an n8n flow with a user request and JSON descriptions of markdown files, plus two JavaScript tools: one that enumerated files on disk and another that opened a chosen file and parsed it. The test used a local 14B Ollama model that supported tool use in other places, but in n8n the agent would not consistently trigger the tools, so they switched modes and asked how to get a multi-step tool sequence working.
- How it went
- The workflow performed far worse in n8n than it did in the poster’s JavaScript SDK and other systems. They also could not confirm whether n8n could reliably make several tool calls in a row. In replies, people recommended dividing the task into smaller agents or subworkflows, and one commenter said tool results were not automatically preserved in chat context.
- Tips
- If you need later steps to use earlier tool output, be ready to store that output yourself. For this kind of task, splitting selection and reading into separate pieces may be more dependable than expecting one agent run to handle everything.
Try it yourself with n8n
Help me design an n8n AI Agent flow for [folder path] and [question]. The flow should receive a JSON array of markdown-file summaries, decide which file fits the question best, then use a file-reading tool to open that file and answer from its contents. After every tool call, pause and show the chosen file before continuing, and stop for my approval before any irreversible action such as sending, saving, deleting, or submitting. Run the setup against [number] test questions, record which file was chosen each time, and tell me whether the same agent can complete more than one tool step in sequence.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use n8n to sort leads and automate admin work
A freelancer connected n8n and ChatGPT to rank prospects, draft outreach, handle invoice nudges, and keep CRM records current, saving 30–40 hours a month.
Use n8n to send onboarding PDFs and reminders
They connected n8n to Google Sheets so client welcome packs and follow-up reminders go out on their own.
Set up a resume-based interview screen
A recruiter-facing agent reads a resume, asks tailored interview questions, and produces a first-pass evaluation for human review.
Use n8n to streamline client chasing and preorder updates
A firm used n8n to trim bookkeeping admin, and another team used it to alert customers when supplier timing changed.
Build one workflow for invoices, payments, and refunds
A single n8n flow handled billing events, kept records current, and blocked duplicate entries and duplicate messages.
Sort email attachments by document type
They built an n8n workflow that sends inbox attachments to Gemini, then files each one by type and handles purchase orders separately.