Sanity logo

Documentation

    • Overview
    • Platform introduction
    • Next.js quickstart
    • Nuxt.js quickstart
    • Astro quickstart
    • React Router quickstart
    • Studio quickstart
    • Content Lake
    • Compute and AI
    • APIs and SDKs
    • Platform management
    • Dashboard
    • Studio
    • Canvas
    • Media Library
    • App SDK
    • Content Agent
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
Compute and AI
Overview

  • Functions

    Introduction
    Quick start
    Local testing
    Add environment variables
    Configure @sanity/client
    Manage dependencies
    Common patterns
    Handler reference
    Official recipes

  • Blueprints

    Introduction
    Configuration file reference

  • Agent Actions

    Go to Agent Actions docs
    HTTP API reference

  • Embeddings Index

    Introduction
    Create and query an embeddings index
    Embeddings Index CLI reference
    HTTP API reference

  • GROQ-powered Webhooks

    Introduction
    Best practices
    HTTP API reference
    Toolkit (JS)

  • MCP Server

    Setup and introduction

Compute and AILast updated September 8, 2025

Processing and enhancing content workflows

Enhance your content workflows with Sanity's compute and AI capabilities. Automate tasks with serverless functions, trigger custom webhooks when content changes, generate content with AI, and add semantic search to your applications. These tools help you build smarter workflows, reduce manual work, and create more powerful content experiences.

a black background with white lines and dots on it
Automate content processes

Functions

Learn how to take advantage of Functions in your Sanity projects.

GROQ-powered webhooks

Send customized HTTP requests when something in your content lake has changed. Use GROQ to define which documents should trigger a webhook and what its payload should be.

Integrate AI into your content operations

Sanity MCP server

Enable AI assistants to interact with your Sanity workspace through the Model Context Protocol (MCP).

Agent Actions

Generate quick start

Get started with Generate by writing your first instructions to create and modify documents.

Translate quick start

Learn to translate documents with Agent Actions Translate.

Use AI Assist in Studio

Install and configure the AI Assist plugin in Studio.

Add semantic search

Embeddings index introduction

Embeddings allow you to search for what your documents are about. Use the Embeddings Index API to build LLM agents or to enable semantic search.

Sanity logosanity.io
© Sanity 2025
Change Site Theme
All Systems Operational