Agent Actions: AI building blocks for structured content
Written by Ken Jones
Why Agent Actions matter
Ever wished AI could work directly with your structured content instead of operating in isolation? Agent Actions solve this problem by:
- Validating outputs against your content's structure
- Running from anywhere you can execute code
- Eliminating tedious reformatting work
As part of Sanity's Content Operating System, Agent Actions run directly in the Content Lake alongside your content, allowing you to trigger automation from Studio, Functions, Apps, your frontend, or anywhere your code lives. Use Agent Actions to adapt content to business needs across applications.
The Agent Actions toolkit
At the time of this writing, Sanity offers three specialized Agent Actions that work with your schema, not against it: Generate, Transform, and Translate.
Generate
When you need fresh content created that aligns with your schema, Generate is your go-to action. It creates new structured content based on instructions and context you provide.
Internal server error