What if your AI agent didn't have to rely on a messy collection of PDFs, hardcoded prompts, or constantly changing application code?
What if you could give your AI structured, queryable, constantly updatable content and let it use that information intelligently?
That's where Sanity becomes interesting.
The Sanity Challenge is currently running from September 18 to October 4, with $2,500 in prizes.
The challenge asks developers to either:
- Build an AI agent on structured content
- Build a vibe-coded application with Sanity behind it
And honestly, this is a great opportunity to experiment with something that sits at the intersection of AI + modern web development + structured content.
๐ง First: What Is Sanity?
If you've never used Sanity before, the easiest way to understand it is:
Sanity lets you model your content as structured data and make that content available to your applications.
Instead of thinking about content as:
HTML pages
โ
Random text
โ
Application
you can think about it as:
Structured Content
โ
Sanity Content Lake
โ
Your Application
โ
AI Agent
Sanity describes its platform as an AI Content Operating System.
Your content is stored as JSON documents, you define schemas using TypeScript, and you can query the content using GROQ.
That combination is particularly interesting for AI applications.
๐ค Why Structured Content Matters for AI
Let's say you're building an AI assistant for a university.
You could give it a huge document containing:
College Information
Course Information
Faculty Information
Events
Clubs
Rules
Placement Information
FAQs
But that's not necessarily the cleanest way to represent the information.
Instead, imagine storing it as structured documents.
For example:
Course
โโโ name
โโโ duration
โโโ subjects
โโโ eligibility
โโโ department
And:
Event
โโโ title
โโโ date
โโโ location
โโโ description
โโโ organizer
Now your AI agent isn't just reading a giant blob of text.
It can work with structured information.
๐๏ธ The Architecture
A simple AI application using Sanity could look like this:
User
โ
โผ
AI Agent
โ
โโโโโโโโโดโโโโโโโโ
โ โ
โผ โผ
LLM Sanity API
โ
โผ
Content Lake
โ
โผ
Structured Content
The AI agent receives a question.
It determines what information it needs.
It retrieves relevant structured content.
Then it generates a response.
This is a powerful pattern because the AI model doesn't have to contain all of your application's knowledge.
๐ฅ Imagine Building This
Let's say we create:
"CampusAI"
An AI assistant that knows everything about a college.
A student could ask:
"What events are happening this week?"
The agent could query structured event data.
Or:
"What subjects are in the 7th semester?"
The agent retrieves course information.
Or:
"Who organizes the coding club?"
The agent retrieves the relevant structured document.
Instead of hardcoding these answers into the application, you manage them through Sanity.
๐งฉ Sanity Schemas
One of the most interesting parts of Sanity is defining schemas.
Imagine an event schema:
export default {
name: 'event',
title: 'Event',
type: 'document',
fields: [
{
name: 'title',
title: 'Title',
type: 'string',
},
{
name: 'description',
title: 'Description',
type: 'text',
},
{
name: 'date',
title: 'Date',
type: 'datetime',
},
],
}
Now your content has structure.
Instead of:
"Tech event tomorrow at 10 AM..."
you have:
{
"title": "Tech Workshop",
"description": "Cloud computing workshop",
"date": "2026-10-03T10:00:00Z"
}
That structure becomes incredibly useful when applications and AI agents need to work with the content.
๐ GROQ: Query Your Content
Sanity uses GROQ to query content.
For example, you might query events like:
*[_type == "event"] {
title,
description,
date
}
You can also filter content.
For example:
*[
_type == "event" &&
date >= now()
] {
title,
description,
date
}
Now your application can retrieve upcoming events.
Imagine combining that with an AI agent:
User:
"What events are happening soon?"
โ
AI Agent
โ
GROQ Query
โ
Sanity
โ
Upcoming Events
โ
AI Response
That's where structured content becomes really interesting.
๐ง AI Agent + Sanity
An AI agent can potentially use Sanity as one of its information sources.
For example:
AI Agent
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
Sanity Database APIs
Content
โ
โผ
Structured Knowledge
The agent can decide what information it needs and retrieve it from the appropriate source.
This is much more flexible than creating a chatbot with one giant system prompt.
๐ก What Could You Build for the Challenge?
This is where things get exciting.
You don't need to build another generic chatbot.
Build something where structured content actually matters.
Here are some ideas.
๐ผ Idea 1 โ AI Career Agent
Build an AI career assistant.
Sanity stores:
Jobs
Companies
Skills
Technologies
Courses
Interview Questions
Projects
The AI agent could answer:
"What skills do I need for this DevOps role?"
Or:
"Which projects should I build to improve my profile?"
Architecture:
User
โ
AI Career Agent
โ
Sanity
โโโ Jobs
โโโ Skills
โโโ Projects
โโโ Learning Resources
๐ Idea 2 โ AI Learning Agent
Build a personalized learning assistant.
Sanity contains:
Courses
โโโ Modules
โโโ Lessons
โโโ Topics
โโโ Resources
The user asks:
"Teach me Kubernetes from beginner level."
The agent can retrieve structured lessons and generate a personalized learning path.
You could even add:
Progress Tracking
Quizzes
Projects
Difficulty Levels
Prerequisites
Now you've got something much more useful than a basic chatbot.
๐ฐ Idea 3 โ AI News Knowledge Agent
Sanity could store structured articles:
Article
โโโ Title
โโโ Author
โโโ Category
โโโ Tags
โโโ Date
โโโ Content
The AI could answer questions such as:
"Summarize the latest cloud infrastructure articles."
or:
"What changed recently in Kubernetes?"
The structured metadata makes filtering and retrieval much easier.
๐ Idea 4 โ AI Real Estate Assistant
Imagine Sanity stores:
Properties
โโโ Location
โโโ Price
โโโ Bedrooms
โโโ Amenities
โโโ Type
โโโ Availability
A user asks:
"Show me apartments under โน50 lakh with two bedrooms."
The application retrieves matching structured content.
Then the AI turns the results into a natural conversation.
๐ ๏ธ Idea 5 โ AI DevOps Knowledge Agent
This one is particularly interesting for developers.
Create a structured DevOps knowledge base:
Technology
โโโ Docker
โโโ Kubernetes
โโโ Terraform
โโโ AWS
โโโ Jenkins
โโโ Ansible
Each technology could contain:
Technology
โโโ Description
โโโ Prerequisites
โโโ Commands
โโโ Tutorials
โโโ Projects
โโโ Interview Questions
โโโ Troubleshooting
Then build an AI agent around it.
A user asks:
"Why is my Kubernetes Pod in CrashLoopBackOff?"
The agent retrieves relevant troubleshooting content and explains the possible causes.
That's a much stronger demonstration of structured content than simply connecting an LLM to a text box.
๐ฏ The Important Part: Don't Build Just Another Chatbot
This is probably the biggest lesson I'd take from this challenge.
A basic project looks like:
Chat UI
โ
LLM
โ
Answer
Thousands of projects can do that.
A more interesting architecture is:
User
โ
AI Agent
โ
โโโโโโโโโดโโโโโโโโ
โ โ
Reasoning Tools
โ
Sanity
โ
Structured Content
Now the AI isn't just generating text.
It's interacting with your application's knowledge layer.
โก Where Vibe Coding Comes In
The challenge also allows you to vibe-code an application with Sanity behind it.
This opens up another possibility.
You could start with a simple idea:
"Build me a beautiful dashboard for managing AI-powered learning content."
Then use modern AI coding tools to rapidly create:
Frontend
Backend
Sanity Integration
AI Features
Authentication
Dashboard
But here's the important part:
Vibe coding doesn't mean skipping engineering.
AI can generate the initial application quickly.
You still need to:
- Understand the architecture
- Test the application
- Validate API calls
- Secure credentials
- Handle errors
- Optimize queries
- Fix bugs
- Deploy it properly
AI can accelerate development.
It doesn't remove the need to understand what you're building.
๐งช A Simple Project Architecture
If I were building a challenge project, I'd keep the architecture understandable:
Next.js
โ
โโโ UI
โ
โโโ AI Agent
โ
โโโ Sanity Client
โ
โผ
Sanity Content Lake
โ
โผ
Structured Documents
For example:
app/
โโโ dashboard/
โโโ agent/
โโโ content/
โโโ api/
โโโ components/
And Sanity manages the content model.
๐ Don't Forget Security
If you're building an AI application, don't expose API keys in frontend code.
Bad:
const API_KEY = "secret-key";
Your secrets should live in secure environment configuration.
For example:
.env.local
And your application should access them server-side where appropriate.
Also think about:
- Authentication
- Authorization
- Input validation
- Rate limiting
- Prompt injection
- Data exposure
- API security
A beautiful demo that leaks credentials isn't a good project.
๐ How I Would Build the Project
Here's a practical development plan.
Step 1 โ Choose One Specific Problem
Don't start with:
"I'm going to build an AI platform."
Start with:
"I'm building an AI assistant that helps students find and understand university courses."
Specific problems produce better projects.
Step 2 โ Design Your Content Model
Before writing the AI agent, decide what information exists.
For example:
Course
โโโ title
โโโ description
โโโ difficulty
โโโ prerequisites
โโโ duration
โโโ lessons
Now Sanity has a clear purpose.
Step 3 โ Build the Sanity Schemas
Create your structured documents.
Populate them with realistic data.
Step 4 โ Build the Application
Create the UI.
For example:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI Learning Agent โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Ask me anything about your โ
โ learning path... โ
โ โ
โ [ What should I learn next? ] โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Step 5 โ Connect the Agent
The agent should retrieve relevant Sanity content when necessary.
For example:
Question
โ
Determine intent
โ
Query Sanity
โ
Retrieve structured content
โ
Generate response
Step 6 โ Add Something Memorable
This is where your project can stand out.
Maybe:
- Personalized recommendations
- Visual learning roadmap
- Progress tracking
- AI-generated quizzes
- Voice interaction
- Content summarization
- Smart search
- Personalized dashboard
Don't add features just to increase the feature count.
Add one feature that makes people say:
"That's actually useful."
๐ What Makes a Good Challenge Submission?
I'd focus on four things:
1. Clear Problem
Can someone understand what your application does in 10 seconds?
2. Real Use of Sanity
Is Sanity actually important to the application?
3. Useful AI
Does AI solve a real problem instead of simply generating text?
4. Great Demo
Can someone understand the value by watching a short demonstration?
Your architecture can be impressive, but if nobody understands the product, the project becomes difficult to appreciate.
๐ Learn More About the Challenge
The challenge runs September 18 through October 4 and offers $2,500 in prizes.
You can read the official challenge information on:
Sanity Challenge on DEV Community
You can also explore:
๐ Want to Go Deeper Into AI + Developer Tools?
If you're building your skills across AI, Cloud, DevOps, and software engineering, I've also created several learning resources.
๐น Mastering Go
Build a stronger foundation in Go for backend, cloud-native, and systems development.
โธ๏ธ CKA Complete Study Guide
Learn Kubernetes concepts and administration with a CKA-focused approach.
๐ณ Docker Mastery
Learn Docker and containerization fundamentals.
๐๏ธ Terraform Associate Crash Course
Learn infrastructure as code with Terraform.
Terraform Associate Crash Course
๐ Git Mastery
Build a strong Git and version-control foundation.
โ๏ธ DevOps Complete Pack
A broader collection for your DevOps learning journey.
Final Thoughts
The interesting thing about Sanity isn't simply that it can store content.
It's the combination of:
Structured Content
+
Queryable Data
+
Modern Web Applications
+
AI Agents
That creates a powerful foundation for building applications where AI has access to organized, application-specific knowledge.
And that's exactly the kind of project I'd explore in this challenge.
Don't build an AI chatbot just because AI is trending.
Build something where:
the structured content matters,
the AI has a real job,
and the user gets something genuinely useful.
The best project isn't necessarily the one with the most features.
It's the one where someone sees the demo and immediately thinks:
"I would actually use this."
Top comments (0)