Skip to content

Commit 82d51cc

Browse files
committed
Mentioned custom properties for Ibexa Connect
1 parent 05bade9 commit 82d51cc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/ai_actions/extend_ai_actions.md

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

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

108+
When creating a 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.
109+
108110
### Register a custom Action Handler in the system.
109111

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

docs/ai_actions/install_ai_actions.md

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

162162
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.
163163

164+
Then, create the `Ibexa AI handler` custom property in [[= product_name_connect =]] to store the list of available action handlers for this integration.
165+
You can do it by running the following command:
166+
167+
``` bash
168+
php bin/console ibexa:connect:init-custom-property-structures <organization-id> <action handler identifiers>
169+
```
170+
171+
For example:
172+
173+
``` bash
174+
php bin/console ibexa:connect:init-custom-property-structures 4 connect-image-to-text connect-text-to-text
175+
```
176+
177+
The `Ibexa AI handler` property attaches to a Scenario to store information about the action handler associated with it.
178+
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.
179+
164180
### Customize templates
165181

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

0 commit comments

Comments
 (0)