Skip to content

Commit a2afb5b

Browse files
Mentioned custom properties for Ibexa Connect (#2746)
* Mentioned custom properties for Ibexa Connect * Applied suggestions from code review Co-authored-by: julitafalcondusza <[email protected]> --------- Co-authored-by: julitafalcondusza <[email protected]>
1 parent 7fa5cd2 commit a2afb5b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/ai_actions/configure_ai_actions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,22 @@ php bin/console ibexa:connect:init-connect-ai 2 en connect-image-to-text connect
104104

105105
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.
106106

107+
Then, create the `Ibexa AI handler` custom property in [[= product_name_connect =]] to store the list of available action handlers for this integration.
108+
You can do it by running the following command:
109+
110+
``` bash
111+
php bin/console ibexa:connect:init-custom-property-structures <organization-id> <action handler identifiers>
112+
```
113+
114+
For example:
115+
116+
``` bash
117+
php bin/console ibexa:connect:init-custom-property-structures 4 connect-image-to-text connect-text-to-text
118+
```
119+
120+
The `Ibexa AI handler` property attaches to a scenario to store information about the action handler associated with it.
121+
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.
122+
107123
### Customize templates
108124

109125
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.

docs/ai_actions/extend_ai_actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ The `ActionServiceInterface` service extracts the configuration options from the
104104

105105
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.
106106

107+
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.
108+
107109
### Register a custom Action Handler in the system.
108110

109111
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:

0 commit comments

Comments
 (0)