Marketing Bot
[ click to chat ]
status:
Current Context:learn, docs
status:enabled
Pricing Bot
[ click to chat ]
status:

Make agents work reliably

Agent Context

Ship agents that query your content with structured retrieval, not just semantic search. One call. Real-time.

Innovate

Ship experiences your users deserve

A chat interface where a user asks about hiking boots under $200, size 10, and a shopping assistant replies.
  • Shopping agents

    "Find hiking boots under $200 in my size." Real products, retrieved and validated against live inventory. Increase CVR, reduce abandoned carts.

  • Technical support

    "How do I reset my password?" Real answers from your docs, instantly. Deflect tickets, cut support costs.

  • Content discovery

    Surface related content, find gaps, explore connections. Speed up teams without adding headcount.

  • Internal agents

    Encode how your team works. Classify, route, and process content with the logic that used to live in people's heads.

Context means accuracy

illustration of 3 abstraction layers
  1. 1

    Customer asks a question

    "Do you have hiking boots under $200 in size 10?"

  2. 2

    Agent generates a query

    Understands the question, knows your schema, combines strict checks (price < $200) with semantic search (relevant to hiking).

  3. 3

    Sanity returns precise results

    Products that match, are in stock, and meet all business rules. Real-time.

Real-time. Reliable. Governed.

A user interface displaying settings for a shopping assistant's Halloween-themed tone of voice, described as eerie but fun, not frightening.
  • Real-time sync

    Update a product or policy and agents know immediately. No reindexing. No drift.

  • Constraints that work

    Agents can't recommend what you don't sell. Business rules enforced in the query response, not the prompt.

  • Editorial control

    Published content is agent-accessible. Drafts aren't. Internal stays internal.

GROQ + keyword match + semantic search = agents that obey real constraints.

What is Agent Context?

The building blocks

A terminal screen showing a pnpm installation command for `@sanity/agent-context` and its successful completion.
  • Semantic index

    Turn it on, configure projections for which fields embed. No vector database to provision. No RAG pipeline to maintain. No reindexing schedule.

  • MCP endpoint

    Any agent connects in one line. Claude, GPT, Gemini, or your own. They all see your structured content through a single endpoint.

  • GROQ + semantics

    GROQ predicates narrow scope. Keyword match finds exact terms a specific SKU or API name. Embedding search handles conceptual queries.

Built for builders

code interface: npx add skills

Five minutes to a grounded agent.

npx skills add sanity-io/agent-context --all

The setup skill reads your schema, asks a few questions, and scaffolds a working agent against your live dataset. No infrastructure to provision. No pipeline to maintain.