Recipes

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.

Auto-Tag Function

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 Auto-Tag Function

First Published Timestamp Function

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

Slack Notify Function

Official(made by Sanity team)

On document publish, send a Slack notification so your team is informed

Ken Jones Pizza
Go to Slack Notify Function

Auto Summary Function

Official(made by Sanity team)

AI-Powered Content Summary from Long Form Content

Kevin Green
Go to Auto Summary Function

Latest recipes

TweetSummary

Allows the user to tweet a summary into twitter.

Alexandra Faller
Go to TweetSummary