Agent templatev1.0Updated 2026-11-27

Knowledge Agent

Attach your documents and ask: every answer comes only from them, with the file and section after each fact; when the documents do not say, it answers "not found in the documents" and names the document that would cover it.

  • A citation like [budget.md > Limits] after every fact
  • "Not found" with the terms it searched, never a guess
  • Read-only: it changes, uploads or shares nothing without your yes

By FlyMy.AI templates/knowledge-agent v1.0

Knowledge Agent: Knowledge Agent with Chat files, Code execution
Knowledge Agentclaude-haiku-5-5
Chat filesCode execution

$ YOUR NEXT RUN

Claude CodeCodexCursorAny agent

Use Knowledge Agent in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

Read https://flymy.ai/templates/knowledge-agent/template.txt and help me set up Knowledge Agent using my own connections. Ask for the missing inputs and budget before running it.

Proof

  • 4 answersover 3 handbook files: a computed answer, a conflict shown with both dates, a "not found" with the searched terms
  • 18 sfor those 4 answers
  • $0.006for those 4 answers
  • Markdown, textthe formats tested; PDF was not part of the test
  • Publicreference project to clone
1agentone knowledge base agent
2toolspriced below
on demandrunsone chat message, then any question
$0.006per 4 questionsmeasured

What it does

  • Lists the documents it can see in the chat first, so you can confirm the set; with none, it asks for them before answering.
  • Searches every document for the terms and their synonyms, and reads the matching passages in full, not just the matching line.
  • Answers briefly with a citation after each fact; when two documents disagree it shows both, with their dates.
  • Keeps a list of the questions the documents could not answer, so you know which documents are missing.

Ideal for Teams that keep answering the same questions from their own FAQs, policies, onboarding guides, product descriptions and runbooks.

Connects to

  • Chat filesno chargebuilt in
  • Code executionfor large setsbuilt in

Project diagram

from the reference project
Project diagram of Knowledge AgentINPUTS AND TIMERSLEADTOOLSOUTPUTSYour documents,attachedYour questionsAudience and styleKnowledge Agentclaude-haiku-5-5Chat filesno chargeCode executionfor large setsAnswers withcitations"Not found" withtermsGaps logBUDGET RULE / Read-only by default: saving, editing or posting answers anywhere needs your yes.
  1. Inputs
    Your documents, attachedYour questionsAudience and style
  2. Lead agent
    Knowledge Agentclaude-haiku-5-5
  3. Tools
    Chat filesno charge: the files attached to the chat are its knowledge base; 3 reads cost $0, measuredCode execution$0.0666 per sandbox hour, billed per second; searching sets over about 20 pages; not needed for 3 files
  4. Outputs
    Answers with citations"Not found" with termsGaps log
The diagram as text
  • Inputs: Your documents, attached, Your questions, Audience and style
  • Lead: Knowledge Agent (claude-haiku-5-5) uses Chat files, Code execution
  • Tool: Chat files - no charge: the files attached to the chat are its knowledge base; 3 reads cost $0, measured (built into FlyMy.AI)
  • Tool: Code execution - $0.0666 per sandbox hour, billed per second; searching sets over about 20 pages; not needed for 3 files (built into FlyMy.AI)
  • Output: Answers with citations (from Knowledge Agent)
  • Output: "Not found" with terms (from Knowledge Agent)
  • Output: Gaps log (from Knowledge Agent)

Day one

from the reference project
  • 01CloneOne agent on Claude Haiku 5.5 with its welcome chat; nothing to connect.free
  • 02Attach and askYour documents as Markdown or text files, or pasted text, and your first questions, in one message.free
  • 03First answersEach fact cited to its file and section, conflicts shown with their dates, "not found" with the searched terms.$0.006 measured, 4 questions

How it runs

templates/knowledge-agent v1.0

Runs when you write in its chat: attach the documents and ask. 4 questions over 3 handbook files took 18 s and $0.006 on a copy of the reference (measured 2026-11-27).

The agent team

from the reference project

Knowledge AgentKnowledge baselead

Lists the documents, searches them for each question, answers with a citation after every fact and keeps the list of what they do not cover.

Chat filesCode execution
Instruction excerpt

You work from a fixed set of documents the user gives you. You find the relevant passages, answer briefly, and cite where each fact came from. You do not use general knowledge to fill gaps.

Budget: your project budget

on demand, in its chatclaude-haiku-5-5last run $0.006 on 2026-11-27 (4 questions over 3 handbook files, 18 s)

You will be asked

once, in one message
  • Which documents?Attach them to the chat as Markdown or plain text files, or paste their text.handbook.md, budget.md
  • Which questions?Ask the first ones in the same message if you like.How many vacation days are left?
  • Audience and style?Default: colleagues, short answers of 1-4 sentences.new employees, 2-4 sentences

Keys and passwords never go into the chat: you connect accounts on their own pages.

What it costs

Measured on 2026-11-27

0%template markup or purchase feeUsage pricing →

Price of one run
ItemUnit pricePer runCost
Chat files: reading the 3 documentsno charge3 reads$0
Agent: Claude Haiku 5.5 and the run checksper token4 answers$0.006
Code execution: search across large sets$0.0666 per sandbox hournot needed for 3 files$0
4 questions over 3 handbook files$0.006

Measured 2026-11-27 on a copy of the reference with get_execution_price: 3 handbook files and 4 questions - a computed answer (11.69 days), a conflict shown with both dates and a "not found" with the searched terms - $0.006 in 18 s. Larger sets cost more tokens, and the sandbox helps search sets over about 20 pages. Markdown and plain text were tested; PDF was not.

What stays yours

the same for every template

Your connections stay yours

A copy never carries the author's keys or connections.

Nothing runs until you answer

Clone creates the agents and a setup chat; nothing bills before your reply.

A budget you set

Choose the budget before the first run. Review usage in your own project.

Versions

a copy keeps the version it was made from
  • v1.02026-11-27First public template: one agent on Claude Haiku 5.5 answers only from the documents in the chat, with a citation after every fact and "not found" when they do not say.

Other ways to start

01 - Clone in FlyMy.AI

Open the reference project and press Clone; a setup chat asks once.

Clone this project
02 - Your Claude or Codex

Connect FlyMy.AI with skill.md and paste the request below.

03 - API and SDK

Agents MCP projects_copy with fleet:9933377b-0c93-405d-96f1-7fcbdb0e9b4e, or client.projects.copy.

FAQ

Is this a working project or just a brief?

A working, public reference project with one agent on Claude Haiku 5.5. Clone it, attach your documents to its welcome chat and ask. On a copy of the reference 4 questions over 3 handbook files took 18 s and cost $0.006 (measured 2026-11-27).

Which documents work?

Markdown and plain text files attached to the chat, or text you paste, which it cites by the title you give it. Markdown and text were tested; PDF was not part of the test.

Will it answer from general knowledge?

No. Every factual sentence carries a citation, and without one there is no claim. If you explicitly allow general knowledge, it keeps it in a separate paragraph labelled "Outside the documents".

What if two documents disagree?

It shows both statements with their citations and says which is newer when the documents carry dates; it never picks one silently. In the test a conflict came back with both dates.

Can it read Google Drive or Notion?

Only if they are connected in your account and you name the folder or the page; they are optional and were not part of the test. By default it reads the files in the chat.

What does it cost?

Measured on 2026-11-27: $0.006 for 4 questions over 3 handbook files; reading the attached files costs nothing. Larger document sets cost more tokens.

Can I use it from Claude Code, Codex or Cursor?

Yes, through the FlyMy.AI Agents MCP: copy the template with projects_copy, then answer the copy's welcome chat with append_message, or run the copy with run_agent and one message with public links to your documents and your questions. Follow it with get_run; get_execution_price gives the itemised price.

Illustrative example, not a live result
Documents: <file 1>, <file 2>, <file 3>

1) <question> - <answer> [<file> > <section>]
2) <question> - <file 1> says <x> (<date>), <file 2> says <y> (<date>); the newer is <file>. [<file 1> > <section>] [<file 2> > <section>]
3) <question> - Not found in the documents. Searched: "<term>", "<term>". A <kind of document> would cover it.

Sources

Content and connection guidance checked 2026-11-27. See linked documentation for current availability and prices.