Sanity Functions Recipes

Automate your content workflows with functions that trigger on document events. From AI-powered automatic tagging and content enrichment to translation and optimization, these pre-built functions save time and improve content quality across your Sanity projects.

15 Sanity Functions Recipes recipes

View all

First Published Timestamp Function

Featured contribution
Official(made by Sanity team)

Automatically track when content was first published with a timestamp that sets once and never overwrites, providing reliable publication history for analytics and editorial workflows.

Knut Melvær
Go to First Published Timestamp Function

Automatically tag blog posts

Featured contribution
Official(made by Sanity team)

AI-powered automatic tagging for Sanity blog posts that analyzes content to generate 3 relevant tags, maintaining consistency by reusing existing tags from your content library.

Go to Automatically tag blog posts

Sentiment Analysis

Automatically analyze and categorize the emotional tone of user comments

Pieter Brinkman
Go to Sentiment Analysis

Get Linked Data Function

Automatically retrieve images, titles, short descriptions, and more from linked resources on the web.

Andy Fitzgerald
Go to Get Linked Data Function

Other contribution categories