# Knowledge Agent

> Clone Knowledge Agent: it answers questions only from the documents you attach and cites the file and section for every fact; "not found" when they do not say.

Page: https://flymy.ai/templates/knowledge-agent/

Agent template v1.0 Updated 2026-11-27

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

[Clone this project](https://app.flymy.ai/projects/9933377b-0c93-405d-96f1-7fcbdb0e9b4e?clone=1) [Use from Claude / Codex](https://flymy.ai/templates/knowledge-agent/#start)

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

**Knowledge Agent** claude-haiku-5-5

Chat files Code execution

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any 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.
```

[Open public project](https://app.flymy.ai/projects/9933377b-0c93-405d-96f1-7fcbdb0e9b4e) [Download brief](https://flymy.ai/templates/knowledge-agent/template.txt)

## Proof

- **4 answers** over 3 handbook files: a computed answer, a conflict shown with both dates, a "not found" with the searched terms 2026-11-27
- **18 s** for those 4 answers 2026-11-27
- **$0.006** for those 4 answers 2026-11-27
- **Markdown, text** the formats tested; PDF was not part of the test 2026-11-27
- **[Public](https://app.flymy.ai/projects/9933377b-0c93-405d-96f1-7fcbdb0e9b4e)** reference project to clone

**1** agent one knowledge base agent

**2** tools priced below

**on demand** runs one chat message, then any question

**$0.006** per 4 questions measured

## 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 files** no charge built in
- **Code execution** for large sets built in

## Project diagram

from the reference project

1. **Inputs** Your documents, attached, Your questions, Audience and style
2. **Lead agent** Knowledge Agent claude-haiku-5-5
3. **Tools** Chat files no charge: the files attached to the chat are its knowledge base; 3 reads cost $0, measured Code 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 terms, Gaps 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

- 01 **Clone** One agent on Claude Haiku 5.5 with its welcome chat; nothing to connect. free
- 02 **Attach and ask** Your documents as Markdown or text files, or pasted text, and your first questions, in one message. free
- 03 **First answers** Each 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 Agent` Knowledge base lead

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 files Code 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 chat, claude-haiku-5-5, last 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 fee [Usage pricing →](https://flymy.ai/pricing/)

**Price of one run**

| Item | Unit price | Per run | Cost |
|---|---|---|---|
| Chat files: reading the 3 documents | no charge | 3 reads | $0 |
| Agent: Claude Haiku 5.5 and the run checks | per token | 4 answers | $0.006 |
| Code execution: search across large sets | $0.0666 per sandbox hour | not 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.0 2026-11-27 First 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](https://app.flymy.ai/projects/9933377b-0c93-405d-96f1-7fcbdb0e9b4e?clone=1)

02 - Your Claude or Codex

Connect FlyMy.AI with [skill.md](https://flymy.ai/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

[Reference project →](https://app.flymy.ai/projects/9933377b-0c93-405d-96f1-7fcbdb0e9b4e) [Usage pricing →](https://flymy.ai/pricing/)

## More templates

Agent template

### [Instagram Trend Watcher](https://flymy.ai/templates/instagram-trend-watcher/)

Finds the standout posts of the Instagram creators you pick and sends a daily digest with reuse ideas.

Agent template

### [SEO / GEO Research Agent](https://flymy.ai/templates/seo-geo/)

Crawls your site, checks your queries in Google and its AI Overview and publishes a report page with up to 10 actions, each with its evidence.

Agent template

### [PromptLinks](https://flymy.ai/templates/promptlinks/)

Send your website: the lead reads it and writes a mind map of 50-100 buyer searches, and two research agents find where you can earn links - a new PR article or an existing article - on one page with both tables.

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

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
