Studio

Custom field actions

Enhancements and examples for custom field actions

v4.4.0

More goodies for building custom field actions

In the versions released since 4.3.0, 4.4.0 includes:

  • useFieldActions now receives parentSchemaType as a prop, making it easier to conditionally include actions for sub-fields in images or other object types.
  • isType helper function for checking if a schemaType is of a certain type. Useful for conditionally including actions based on some parent type, for instance: isType(schemaType, 'image') or isType(schemaType, 'string')
  • useFieldActions is allowed to include undefined values in the returned array. This makes it easier to conditionally exclude actions as needed.

How-to-use

The repository now contains multiple copy/paste-able examples of integrating AI Assist with Agent Actions:


Custom field actions: Bring Agent Actions into AI Assist

v4.3.0

Custom field actions

a screen shows a custom field action in action

To incorporate Agent Actions or other custom actions into the AI Assist document and field action menus, you can now use the fieldActions plugin configuration in AI Assist. Get started with the custom field actions guide.