Studio

Field action patterns

Examples and best practices for using AI Assist custom field actions.

This is a paid feature

This feature is available in the Growth plan.

AI Assist custom field actions allow you to hook into the AI assist menu to add your own programmatic actions.

Prerequisites:

Basic setup

Each example below includes the field action and the config example. Set up configuration examples in your studio config. For example:

For each example, remember to update any paths and filenames to match your project structure. You may also need to edit individual fields and paths to fit your schema's needs.

Auto-fill any field

This action will generate a new value for the document or field it is invoked for. The value will be contextually based on what is already in the document, and use the language in a `language` field (if present).

Fill document from user input

This action will generate a new value for the document based on user provided input. It uses the getUserInput feature.

Generate image from user input

This action will generate an image based on input from the user.

Summarize the document to a field

This action reads the contents of the document, then summarizes it into the selected field.

Fix spelling

This action corrects the spelling in a field, including nested fields.

Translate to a user-defined language

This action takes user input for the language, and translates the document or field's contents to that language.

Was this page helpful?