Live preview
FlueOutput will stream here when you run the agent.
Summary
The Company Knowledge Agent answers questions over your internal documents — issues, wiki pages, notes. It indexes them into a vector store, searches the corpus first, and redacts personal data (emails, phone numbers, SSNs, card numbers, API keys) from responses. Reach for it to build an internal "ask the company" assistant.
Install
$ pnpm dlx shadcn@latest add https://agentcn.vercel.app/r/flue/company-knowledge.json
Composition
agents/
└── company-knowledge.ts # Corpus-first, PII-safe agent
workflows/
└── index-knowledge.ts # Scheduled re-index workflow
tools/
├── search-knowledge.ts # Search the corpus (redacted)
└── index-document.ts # Add a document to the corpus
lib/
├── vector-store.ts # libSQL vector store + embeddings
└── pii.ts # PII redaction helperCustomization
- Connect sources. Feed
index-knowledgefrom Linear, Notion, or your wiki on a cron for fresh data. - Swap the vector store. Replace
lib/vector-store.tswith pgvector/Neon, Pinecone, or Qdrant. - Tune redaction. Edit the patterns in
lib/pii.tsfor your data. - Swap the model. Change the
modelfield on the agent.