diff --git a/docs/ai_actions/configure_ai_actions.md b/docs/ai_actions/configure_ai_actions.md index c14aa87233..13f57e7e32 100644 --- a/docs/ai_actions/configure_ai_actions.md +++ b/docs/ai_actions/configure_ai_actions.md @@ -104,6 +104,22 @@ php bin/console ibexa:connect:init-connect-ai 2 en connect-image-to-text connect The [`language` attribute](https://developers.make.com/api-documentation/api-reference/templates#templates-1) determines the language in which template details such as module names will be displayed in [[= product_name_connect =]]'s UI. +Then, create the `Ibexa AI handler` custom property in [[= product_name_connect =]] to store the list of available action handlers for this integration. +You can do it by running the following command: + +``` bash +php bin/console ibexa:connect:init-custom-property-structures +``` + +For example: + +``` bash +php bin/console ibexa:connect:init-custom-property-structures 4 connect-image-to-text connect-text-to-text +``` + +The `Ibexa AI handler` property attaches to a scenario to store information about the action handler associated with it. +When creating a new [[= product_name_connect =]]-based AI action, the back office of [[= product_name =]] shows only the existing scenarios that work with selected action handler. + ### Customize templates Return to the [[= product_name_connect =]] dashboard and modify the **Template for connect...handler** [templates]([[= connect_doc =]]/scenarios/scenario_templates/) by defining the logic needed to process the data. diff --git a/docs/ai_actions/extend_ai_actions.md b/docs/ai_actions/extend_ai_actions.md index 26bbb810cf..3cc95c5816 100644 --- a/docs/ai_actions/extend_ai_actions.md +++ b/docs/ai_actions/extend_ai_actions.md @@ -104,6 +104,8 @@ The `ActionServiceInterface` service extracts the configuration options from the The following example adds a new Action Handler connecting to a local AI run using [the llamafile project](https://github.com/Mozilla-Ocho/llamafile) which you can use to execute Text-To-Text Actions, such as the built-in "Refine Text" Action. +When creating an Action Handler for [[= product_name_connect =]], add the new handler identifier to the [`Ibexa AI handler` custom property](install_ai_actions.md#initiate-integration) in [[= product_name_connect =]] user interface. + ### Register a custom Action Handler in the system. Create a class implementing the [ActionHandlerInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-Action-ActionHandlerInterface.html) and register it as a service: