# Custom field actions: Bring Agent Actions into AI Assist

**Version:** v4.3.0

**Published:** June 12, 2025

## Custom field actions

![a screen shows a custom field action in action](https://cdn.sanity.io/images/3do82whm/next/a168ebfd6080a42a5f5a9d6b00911a12a8efe194-800x281.gif)

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](https://www.sanity.io/docs/studio/ai-assist-field-actions).

**plugin.ts**

```
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
          },
        })], [])
    }
  }
})
```

