Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Evaluate Markdown Selection From JSON Metadata

Overview

Test whether an n8n AI Agent requests the right Markdown file after reading a JSON catalog of short summaries, by running questions with known answers and counting its file choices.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
n8n
Prerequisites
An n8n instance that can read your test folder and a chat model connected to the AI Agent node.

How It Works

Put a handful of Markdown files in a folder your n8n instance can read, and write a JSON file giving each file name and a two-line summary. Build a sub-workflow that accepts a file name, rejects any name missing from the catalog, reads the file with the Read/Write Files from Disk node and returns its text (check which node converts the file to text in your version). In the main workflow, load the catalog and pass it to an AI Agent node with a chat model, with the sub-workflow connected through the Call n8n Workflow Tool. Instruct the agent to choose from the summaries, call the tool and report the file name it requested. Publish the sub-workflow before production runs. Approve the question list and the number of runs, then compare each requested file with the one you expected and count right, wrong and skipped calls.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up n8n.
  2. Connect the toolsConnect the tools this workflow relies on: n8n.
  3. Check the prerequisitesAn n8n instance that can read your test folder and a chat model connected to the AI Agent node.
  4. Gather your detailsCollect what the prompt asks for: JSON catalog content, Test question, Tool name, Reply when nothing fits.
  5. Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.

Practical Starter Prompt: Pick one file from a summary catalog

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
You are being tested on file selection. Here is a catalog of Markdown files with short summaries: [JSON catalog content]. Question: [Test question]. Choose the single file most likely to answer it, using only the summaries, and call the [Tool name] tool once with that exact file name. Reply with only the file name you requested. If no summary fits, do not call the tool and reply with [Reply when nothing fits]. Never request a name that is not in the catalog, and do not change any file.

Approve the question list and run limit before a batch, keep the tool read-only, and compare each requested file with your expected answer.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. n8n's pages document an AI Agent node that decides which tools to call, a tool that runs another workflow and a node that reads files from disk. They do not measure file selection from summaries; your counts describe only your files, model and wording.

Limitations and Considerations

The file node's page says reachable paths depend on your deployment, that n8n Cloud limits it to paths under /home/node/ and that files it writes there may not persist. The tool page says a sub-workflow chosen from the database must be published for production runs or the call fails. Model calls may be billed, so set a run limit. File contents returned to the agent go to your model provider; use non-sensitive test files. Validate names so the tool cannot read anything outside the catalog. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Official Website

The official site of the main tool or project in this use case.

Visit Website (opens in a new tab)n8n.io

Related Videos

About n8n-io/n8n

About n8n-io/n8n

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. AI Agent | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 2 Dec 2026, 13:21 UTC

    What this source supports
    • Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.
    • You must connect at least one tool sub-node to an AI Agent node.
  2. Call n8n Workflow Tool | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 2 Dec 2026, 17:10 UTC

    What this source supports
    • The Call n8n Workflow Tool node is a tool that allows an agent to run another n8n workflow and fetch its output data.
  3. Read/Write Files from Disk | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 2 Dec 2026, 17:10 UTC

    What this source supports
    • Use the Read/Write Files from Disk node to read and write files from/to the machine where n8n is running.
    • The paths this node can access depend on your n8n deployment.
Report a problem

More with n8n

Planned, not done

Support Customers Through Telegram Messages

An n8n workflow turns new customer emails and contact-form messages into tasks with draft replies, and sends each draft to the owner in Telegram with Approve and Decline buttons before anything goes out.

docs.n8n.ion8n-io/n8n
Planned, not done

Capture Restaurant Orders With a Conversational Agent

Build an n8n chat that takes a customer's food order from your menu, reads it back, and records it in a data table only after a staff member approves it in Slack.

docs.n8n.ion8n-io/n8n
Reported by source

Build a self-hosted AI agent workflow with human approval

Use n8n's visual canvas to wire an LLM agent to your apps, add tools and memory, and pause for human approval before it acts.

github.comn8n-io/n8n

View all: n8n