{"slug": "studentos-opportunity-intelligence-a-sanity-powered-ai-agent-for-opportunity", "title": "StudentOS Opportunity Intelligence: A Sanity-Powered AI Agent for Opportunity Readiness", "summary": "A developer built StudentOS Opportunity Intelligence, an AI agent that combines structured Sanity content with a student's private context to answer whether they are ready for a given internship, hackathon, or fellowship. The system uses a deterministic 50/30/20 scoring model for eligibility and skill fit, then grounds an AI Q&A layer in the selected opportunity's resolved knowledge graph, with identity validation and per-opportunity fallbacks to prevent context bleed between opportunities. The project was developed in Google Antigravity and is live on Vercel with source on GitHub.", "body_md": "*This is a submission for the [Sanity Challenge, Path One: Ship an Agent That Queries Real Content](https://dev.to/challenges/sanity-2026-09-16)*\n\n**StudentOS Opportunity Intelligence** is an AI-powered opportunity readiness agent built into StudentOS.\n\nInstead of simply showing students a list of internships, hackathons, fellowships, and developer programs, StudentOS answers a more useful question:\n\n**“Am I actually ready for this opportunity?”**\n\nThe system combines two types of context:\n\nStudentOS then evaluates the student's deterministic eligibility and skill fit, identifies gaps, and uses grounded AI to answer opportunity-specific questions.\n\nFor example, a student can select an opportunity and ask:\n\nThe result is an actionable path from **opportunity discovery → eligibility → skill gaps → preparation → application**.\n\n**Live Project:** [https://studentos-ai-phi.vercel.app/app](https://studentos-ai-phi.vercel.app/app)\n\n**Demo Video:** [https://youtu.be/jMnrf-GSKoA](https://youtu.be/jMnrf-GSKoA)\n\nThe demo focuses on the Opportunity Intelligence flow:\n\n**GitHub Repository:** [https://github.com/aastha-yadav2/studentos-ai](https://github.com/aastha-yadav2/studentos-ai)\n\nThe repository contains the StudentOS application, Opportunity Intelligence implementation, Sanity integration, AI Router integration, fallback handling, and validation logic.\n\nSanity acts as the structured knowledge layer behind StudentOS Opportunity Intelligence.\n\nI modeled opportunity knowledge as connected structured content rather than keeping application information in a single unstructured prompt.\n\nThe Sanity dataset contains structured records for:\n\nAn opportunity is connected to its organization, eligibility rules, required skills, application process, resources, and source information.\n\nStudentOS retrieves the selected opportunity's knowledge graph and combines it with the student's private context.\n\nThe deterministic matching layer calculates the student's fit using the existing **50/30/20 scoring model**, while deterministic eligibility remains authoritative.\n\nThe AI layer is then grounded in the selected opportunity's resolved Sanity context.\n\nThis distinction is important: **Sanity provides the opportunity knowledge; StudentOS provides the student context; the agent combines both to produce actionable readiness guidance.**\n\nI also added defensive identity validation and opportunity-specific fallbacks so that information from one opportunity cannot silently appear while another opportunity is selected.\n\nFor example, switching from Hack2Skill to Google Summer of Code changes the complete opportunity context used by the agent, including eligibility, skills, documents, application workflow, resources, and Q&A.\n\nThe Q&A layer also classifies questions into intents such as:\n\nThis allows the agent to provide different, grounded answers rather than returning the same generic response for every question.\n\n**Sanity Project ID:** `p2hu7iqp`\n\n**Dataset:** `production`\n\nThe live Sanity project contains the structured opportunity knowledge used by StudentOS Opportunity Intelligence.\n\nThe project currently contains the opportunity knowledge graph and its related organizations, eligibility rules, skills, application processes, resources, and source records.\n\nThe project was developed iteratively using **Google Antigravity** as the AI-native development environment.\n\nAntigravity was used throughout the build to implement, debug, test, and refine the StudentOS Opportunity Intelligence experience, including the Sanity integration, structured opportunity knowledge graph, deterministic matching, grounded Q&A, opportunity isolation, and fallback handling.\n\nAn Agent Session transcript is not included because the development session was conducted in Antigravity rather than one of the session sources currently supported by the DEV Agent Sessions uploader.\n\nThe final implementation specifically includes:\n\nThe core of this project is not simply asking an LLM about opportunities.\n\nThe opportunity information is modeled as structured, connected knowledge.\n\nThat allows StudentOS to reason over specific relationships such as:\n\n**Opportunity → Organization → Eligibility → Skills → Application Process → Documents → Resources → Source**\n\nThe agent can therefore answer questions using the selected opportunity's actual structured context instead of relying on a generic prompt or a flat keyword search.\n\nStudentOS turns that structured knowledge into something directly useful to a student:\n\n**Discover the opportunity. Understand your fit. Identify the gaps. Prepare. Apply.**", "url": "https://wpnews.pro/news/studentos-opportunity-intelligence-a-sanity-powered-ai-agent-for-opportunity", "canonical_source": "https://dev.to/aastha_yadav_b849882f5857/studentos-opportunity-intelligence-a-sanity-powered-ai-agent-for-opportunity-readiness-46p4", "published_at": "2026-10-02 09:30:53+00:00", "updated_at": "2026-10-02 09:38:03.815364+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "structured-data", "developer-tools"], "entities": ["StudentOS", "Sanity", "Google Antigravity", "Google Summer of Code", "Hack2Skill", "Vercel", "GitHub", "DEV"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/studentos-opportunity-intelligence-a-sanity-powered-ai-agent-for-opportunity", "markdown": "https://wpnews.pro/news/studentos-opportunity-intelligence-a-sanity-powered-ai-agent-for-opportunity.md", "text": "https://wpnews.pro/news/studentos-opportunity-intelligence-a-sanity-powered-ai-agent-for-opportunity.txt", "jsonld": "https://wpnews.pro/news/studentos-opportunity-intelligence-a-sanity-powered-ai-agent-for-opportunity.jsonld"}}