A new agent reads none of your knowledge. Pick documents, and it reads only those.
Before you start
You need an agent and knowledge. See Add knowledge.
Pick the documents
- Set your agent's
knowledgeto the document's path:agents/support.tsimport { agent } from "veryfront/agent"; export default agent({ id: "support", name: "Support assistant", system: "Answer customer questions about orders and refunds from the project's knowledge. Keep replies to two sentences.", knowledge: "knowledge/returns-policy.md",});knowledgealso takes a list of paths, a glob such as"knowledge/policies/**"for a whole folder, or include and exclude patterns: see Include or exclude knowledge folders. - Start the project with
npm run dev. - In Studio, open Chat.
- Pick Support assistant.
- Ask "How many days do I have to return an item?". You should now see it call
veryfront__search_knowledge, which finds only the returns policy, and reply 45 days.
Try it in a sandbox
Create a project
Before you start: knowledge
Set the knowledge
Start it
Ask it