AI Assist v4.3.0: Custom field actions: Bring Agent Actions into AI Assist

Custom field actions

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.

assist({
fieldActions: {
title: 'Custom actions',
useFieldActions: (props: AssistFieldActionProps) => {
return useMemo(() => [
defineAssistFieldAction({
title: 'Do something',
icon: ActionIcon,
onAction: async () => {
// perform an (async) action
// errors will be caught and displayed in a toast
// until the action completes or fails, AI Assist "presence" will show up on the top of the document
},
})], [])
}
}
})