

by Mastra
Most agents that answer from company knowledge run into the same problems. The facts live in a CMS, a marketing site, PDFs and internal wikis, and some of them contradict each other. The agent spends seconds deciding where to look, repeats whatever it finds first, and has no clear boundary on what each audience is allowed to see. A longer system prompt doesn't fix any of this. What fixes it is a knowledge layer that controls what each agent can reach and how quickly it finds the right answer.
In this workshop, we'll build Mastra agents on top of Sanity Context. Its Knowledge Bases extract facts from your Sanity content, websites and uploaded files, then organize them into topic entries with an index built for agent lookup. We'll connect several agents to the same knowledge through Model Context Protocol (MCP) servers, give each agent its own scope, and move routing decisions out of the LLM and into a fast classifier. Sanity used this pattern to build a docs agent that returns a full answer in about half a second at the median.
We'll cover:
Join us for a live demo and real code you can fork. You'll also have time to ask questions directly to the team behind these features.
Hosted by:
Brandon Barros, Founding Product Advocate @ Mastra
Anne Prins, Tech Partnerships Lead @ Sanity
John Siciliano, Senior Technical Product Marketing Manager @ Sanity
Sign in to view full event details
Create a free account to see descriptions, save events, and more
Build A Knowledge Base For Agents (with Sanity) is a free independent taking place on Tuesday, October 13, 2026 at a venue to be announced. This independent is organised by Mastra. Attendance is free — register to secure your spot. Currently 249 people have registered out of 249 spots. The event runs for approximately 1 hour.
Join this independent over 1 hour for an engaging session of learning, discussion, and networking with fellow attendees.
This independent is ideal for:
Build A Knowledge Base For Agents (with Sanity) covers topics including AI. Find similar events by browsing these topics on Rifio.