What is the AI Context document in Sanity content?
Based on the question, it sounds like you're seeing an "AI Context" document type appearing in your Sanity project and wondering what it's for. Yes, you're on the right track!
The AI Context document is used to provide context and guidelines for AI-generated content in Sanity. This is particularly relevant if you're using Agent Actions or the AI Assist features in Studio.
When you use Sanity's AI capabilities (like Agent Actions for generating, transforming, or translating content), the AI needs to understand not just your schema structure, but also your brand voice, content guidelines, and any specific instructions about how content should be created. That's where AI Context documents come in.
These documents act as a knowledge base that the AI references when performing operations. You can think of them as instructions or guidelines that help the AI generate content that matches your organization's style, tone, and requirements. For example, you might include information about:
- Your brand voice and tone guidelines
- Specific terminology or phrases to use (or avoid)
- Content structure preferences
- Any domain-specific knowledge the AI should be aware of
This is part of Sanity's schema-aware AI approach, where the AI doesn't just understand your document structure, but also the context and guidelines for creating appropriate content within that structure.
If you're not actively using AI features in your project, you can safely ignore these documents. But if you are using Agent Actions or AI Assist, these context documents help ensure the AI generates content that's actually useful and on-brand for your needs.
Show original thread2 replies
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.