Skip to content

Commit f4c6a29

Browse files
committed
Implement changes from review
1 parent 5e8afbd commit f4c6a29

File tree

8 files changed

+81
-77
lines changed

8 files changed

+81
-77
lines changed

docs/administration/project_organization/bundles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ To remove a bundle (either one you created yourself, or an out-of-the-box one th
7171
|---------|-----------|
7272
|ibexa/oss|Core packages|
7373
|ibexa/content-tree|content tree functionality|
74-
|ibexa/connect|[[[= product_name_connect =]]](https://doc.ibexa.co/projects/connect/en/latest/)|
74+
|ibexa/connect|[[[= product_name_connect =]]]([[= connect_doc =]]/)|
7575
|ibexa/calendar|Calendar tab with a calendar widget|
7676
|ibexa/connector-dam|Connector for DAM (Digital Asset Management) systems|
7777
|ibexa/elasticsearch|Integration with Elasticsearch search engine|

docs/ai_actions/ai_actions_guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ AI Actions is an extensible solution for integrating features provided by AI ser
1313

1414
Out-of-the-box, AI Actions solution includes two essential components: a framework package and an OpenAI connector package.
1515

16-
As of version v4.6.19, AI Actions can integrate with [[[= product_name_connect =]]](https://doc.ibexa.co/projects/connect/en/latest/general/ibexa_connect/), to give you an opportunity to build complex data transformation workflows without having to rely on custom code.
16+
As of version v4.6.19, AI Actions can integrate with [[[= product_name_connect =]]]([[= connect_doc =]]/general/ibexa_connect/), to give you an opportunity to build complex data transformation workflows without having to rely on custom code.
1717
From the developer's perspective, the integration removes the burden of maintaining third-party AI handlers, and accelerates the deployment of AI-based solutions.
1818

1919
AI Actions solution comes pre-configured with the following action types:
@@ -37,7 +37,7 @@ To begin using AI Actions, you must first [install the required packages and per
3737

3838
The OpenAI connector requires that you first [get an API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key) and make sure that you [set up a billing method](https://help.openai.com/en/articles/9038407-how-can-i-set-up-billing-for-my-account).
3939

40-
Integration with [[= product_name_connect =]] requires that you first [get the credentials](https://doc.ibexa.co/projects/connect/en/latest/general/ibexa_connect/#access-ibexa-connect) to your account, and the [API token](install_ai_actions.md#token).
40+
Integration with [[= product_name_connect =]] requires that you first [get the credentials]([[= connect_doc =]]/general/ibexa_connect/#access-ibexa-connect) to your account, and the [API token](install_ai_actions.md#token).
4141

4242
!!! note "[[= product_name_connect =]] Availability"
4343

docs/ai_actions/install_ai_actions.md

Lines changed: 71 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,63 @@ month_change: false
66
# Install AI Actions
77

88
AI Actions are available as an LTS update to [[= product_name =]] starting with version v4.6.12 or higher, regardless of its edition.
9-
To use this feature you must first install the packages and configure them.
9+
To use this feature you must first install the package.
10+
You can then install and configure the service connectors or build your onw ones.
1011

11-
## Install packages
12-
13-
Run the following commands to install the packages:
12+
Run the following command to install the package:
1413

1514
``` bash
1615
composer require ibexa/connector-ai
17-
composer require ibexa/connector-openai
1816
```
1917

20-
This command adds the framework code, a service connector with the OpenAI service, service handlers, Twig templates, and configurations required for using AI Actions.
18+
This command adds the framework code, service handlers, Twig templates, and configurations required for using AI Actions.
2119
It also modifies the permission system to account for the new functionality.
2220

23-
## Configure AI Actions
21+
## Modify the database schema
22+
23+
Create the `add_ai_actions.sql` file that contains the following code.
24+
25+
=== "MySQL"
26+
27+
``` sql
28+
[[= include_file('code_samples/ai_actions/config/mysql/add_ai_actions.sql', 0, None, ' ') =]]
29+
```
30+
31+
=== "PostgreSQL"
32+
33+
``` sql
34+
[[= include_file('code_samples/ai_actions/config/postgresql/add_ai_actions.sql', 0, None, ' ') =]]
35+
```
36+
37+
Run the following command, where `<database_name>` is the same name that you defined when you [installed [[= product_name =]]](../getting_started/install_ibexa_dxp.md#change-installation-parameters).
38+
39+
=== "MySQL"
2440

25-
Once the packages are installed, before you can start using AI Actions, you must enable them by following these instructions.
41+
```bash
42+
mysql -u <username> -p <password> <database_name> < add_ai_actions.sql
43+
```
2644

27-
### Configure access to OpenAI
45+
=== "PostgreSQL"
46+
47+
```bash
48+
psql <database_name> < add_ai_actions.sql
49+
```
50+
51+
This command modifies the existing database schema by adding database configuration required for using AI Actions.
52+
53+
!! note "Next steps"
54+
55+
Once the framework is installed and configured, before you can start using AI Actions, you can configure access to [[ = product_name_base = ]]-made service connectors by following the instructions below, or [create your own](extend_ai_actions.md#create-custom-action-handler).
56+
57+
Only then you can restart you application and start [working with the AI Actions feature]([[= user_doc =]]/ai_actions/work_with_ai_actions/).
58+
59+
## Configure access to OpenAI
60+
61+
Run the following command to install the service connector with the OpenAI service:
62+
63+
``` bash
64+
composer require ibexa/connector-openai
65+
```
2866

2967
Create an OpenAI account, [get an API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key), and make sure that you [set up a billing method](https://help.openai.com/en/articles/9038407-how-can-i-set-up-billing-for-my-account).
3068

@@ -36,28 +74,40 @@ OPENAI_API_KEY=<your_api_key>
3674
###< ibexa/connector-openai ###
3775
```
3876

39-
### Configure access to [[= product_name_connect =]]
77+
### Install sample OpenAI action configurations (optional)
78+
79+
By installing a collection of sample AI action configurations you can quickly start using the feature.
80+
You do it by following a standard [data migration](importing_data.md) procedure:
81+
82+
```bash
83+
php bin/console ibexa:migrations:import vendor/ibexa/connector-openai/src/bundle/Resources/migrations/action_configurations.yaml
84+
php bin/console ibexa:migrations:migrate
85+
```
86+
87+
Based on these examples, which reflect the most common use cases, you can learn to configure your own AI actions with greater ease.
88+
89+
## Configure access to [[= product_name_connect =]]
4090

4191
First, get the credentials by contacting [Ibexa Support](https://support.ibexa.co).
4292

43-
#### Create team
93+
### Create team
4494

45-
In [[= product_name_connect =]], set up the account, and [create a team](https://doc.ibexa.co/projects/connect/en/latest/access_management/teams/#creating-teams).
95+
In [[= product_name_connect =]], set up the account, and [create a team]([[= connect_doc =]]/access_management/teams/#creating-teams).
4696
Navigate to the team details page and note down the numerical value of the **Team id** variable.
4797

48-
Creating a team matters, because [scenarios](https://doc.ibexa.co/projects/connect/en/latest/scenarios/creating_a_scenario/) that process data coming from your AI action are associated with a team.
49-
This way, if your organization has more than one application, each application can be linked to a different team and so can be scenarios coming from those applications.
98+
Creating a team matters, because [scenarios]([[= connect_doc =]]/scenarios/creating_a_scenario/) that process data coming from your AI action are associated with a team.
99+
This way, if your organization has more than one [[= product_name =]] project, each project can be linked to a different team and so can be scenarios used in those projects.
50100

51-
If specific users from the team are supposed to modify scenario settings, you must [assign the right roles](https://doc.ibexa.co/projects/connect/en/latest/access_management/teams/#managing-teams) to them.
101+
If specific users from the team are supposed to modify scenario settings, you must [assign the right roles]([[= connect_doc =]]/access_management/teams/#managing-teams) to them.
52102

53-
#### Create token
103+
### Create token
54104

55105
Navigate to your [[= product_name_connect =]] user's profile, and on the **API ACCESS** tab, create a new token.
56106
Copy the token code that appears next to the label.
57107

58108
![Creating an API token](img/connect_api_token.png)
59109

60-
#### Set up credentials
110+
### Set up credentials
61111

62112
In the root folder of your project, modify the `.env` file.
63113
Replace a placeholder value of the `IBEXA_CONNECT_TOKEN` variable with the token that you got from [[= product_name_connect =]] and provide a value of the `IBEXA_CONNECT_TEAM_ID` variable.
@@ -74,12 +124,12 @@ IBEXA_CONNECT_TEAM_ID=2
74124
###< ibexa/connect ###
75125
```
76126

77-
#### Initiate integration
127+
### Initiate integration
78128

79129
Initiate the models provided by the handler by issuing the following command:
80130

81131
```bash
82-
php bin/console ibexa:connect:init-connect-ai <team_id> <language> <model list>
132+
php bin/console ibexa:connect:init-connect-ai <team_id> <language> <action handler identifiers>
83133
```
84134

85135
For example:
@@ -92,54 +142,8 @@ php bin/console ibexa:connect:init-connect-ai 2 en connect-image-to-text connect
92142

93143
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.
94144

95-
#### Customize templates
145+
### Customize templates
96146

97-
Return to the [[= product_name_connect =]] dashboard and modify the **Template for connect...handler** [templates](https://doc.ibexa.co/projects/connect/en/latest/scenarios/scenario_templates/) by defining the logic needed to process the data.
147+
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.
98148

99149
Once the templates are ready, you can build scenarios from them, either directly in [[= product_name_connect =]] or in [[[= product_name =]]'s user interface]([[= user_doc =]]/ai_actions/work_with_ai_actions/#create-new-ai-actions).
100-
101-
### Modify the database schema
102-
103-
Create the `add_ai_actions.sql` file that contains the following code.
104-
105-
=== "MySQL"
106-
107-
``` sql
108-
[[= include_file('code_samples/ai_actions/config/mysql/add_ai_actions.sql', 0, None, ' ') =]]
109-
```
110-
111-
=== "PostgreSQL"
112-
113-
``` sql
114-
[[= include_file('code_samples/ai_actions/config/postgresql/add_ai_actions.sql', 0, None, ' ') =]]
115-
```
116-
117-
Run the following command, where `<database_name>` is the same name that you defined when you [installed [[= product_name =]]](../getting_started/install_ibexa_dxp.md#change-installation-parameters).
118-
119-
=== "MySQL"
120-
121-
```bash
122-
mysql -u <username> -p <password> <database_name> < add_ai_actions.sql
123-
```
124-
125-
=== "PostgreSQL"
126-
127-
```bash
128-
psql <database_name> < add_ai_actions.sql
129-
```
130-
131-
This command modifies the existing database schema by adding database configuration required for using AI Actions.
132-
133-
You can now restart you application and start [working with the AI Actions feature]([[= user_doc =]]/ai_actions/work_with_ai_actions/).
134-
135-
### Install sample AI action configurations (optional)
136-
137-
By installing a collection of sample AI action configurations you can quickly start using the feature.
138-
You do it by following a standard [data migration](importing_data.md) procedure:
139-
140-
```bash
141-
php bin/console ibexa:migrations:import vendor/ibexa/connector-openai/src/bundle/Resources/migrations/action_configurations.yaml
142-
php bin/console ibexa:migrations:migrate
143-
```
144-
145-
Based on these examples, which reflect the most common use cases, you can learn to configure your own AI actions with greater ease.

docs/ibexa_engage/integrate_ibexa_connect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ edition: experience
55

66
# Use Ibexa Connect
77

8-
You can use [[[= product_name_connect =]]](https://doc.ibexa.co/projects/connect/en/latest/general/ibexa_connect/) to create workflows.
8+
You can use [[[= product_name_connect =]]]([[= connect_doc =]]/general/ibexa_connect/) to create workflows.
99
[[= product_name_engage =]] collects user data and passes it directly to [[= product_name_connect =]].
1010
With this data, you can create scenarios, for example, to add a user to newsletter, or to specific user segment group.
1111

12-
For more information, see [[[= product_name_connect =]] documentation](https://doc.ibexa.co/projects/connect/en/latest/).
12+
For more information, see [[[= product_name_connect =]] documentation]([[= connect_doc =]]/).
1313

1414
## Integrate [[= product_name_engage =]] with [[= product_name_connect =]]
1515

@@ -55,4 +55,4 @@ To do it, perform the following actions::
5555
![Configure Ibexa Engage](configure_ibexa_engage.png "Configure Ibexa Engage")
5656

5757
4\. Then, go to **Engage** -> **Integrations** -> **Push rules** to define the default or specific rules for new campaign or website.
58-
Select the created webhook.
58+
Select the created webhook.

docs/personalization/integrate_recommendation_service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ To let your visitors receive emails with recommendations:
167167
1\. With the [User API](api_reference/user_api.md#post-requests), add the `e-mail` attribute (or another identifier) to the user record.
168168

169169
2\. Prepare an endpoint to intercept push messages and pass them on, for example, to your mailing system.
170-
Out of many options, it could be an [[= product_name_connect =]] [webhook](https://doc.ibexa.co/projects/connect/en/latest/tools/webhooks/).
170+
Out of many options, it could be an [[= product_name_connect =]] [webhook]([[= connect_doc =]]/tools/webhooks/).
171171
The endpoint must meet the following requirements:
172172

173173
- must support POST requests

docs/release_notes/ibexa_dxp_v4.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ You can now take advantage of [[[= product_name_connect =]]](https://www.ibexa.c
8989
an iPaaS (integration platform-as-a-service) which allows you to connect [[= product_name =]] with third-party applications.
9090
[[= product_name_connect =]] features a low-code drag-and-drop interface and hundreds of connectors to different services that help you automate business processes.
9191

92-
See [[[= product_name_connect =]] documentation](https://doc.ibexa.co/projects/connect/en/latest/).
92+
See [[[= product_name_connect =]] documentation]([[= connect_doc =]]/).
9393

9494
![Example of an Ibexa Connect scenario](4.4_connect_scenario_example.png)
9595

docs/release_notes/ibexa_dxp_v4.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ For more information, see [Breached passwords](https://doc.ibexa.co/en/4.5/users
211211

212212
### [[= product_name_connect =]]
213213

214-
For list of changes in [[= product_name_connect =]], see [Ibexa app release notes](https://doc.ibexa.co/projects/connect/en/latest/general/ibexa_app_release_notes/).
214+
For list of changes in [[= product_name_connect =]], see [Ibexa app release notes]([[= connect_doc =]]/general/ibexa_app_release_notes/).
215215

216216
### Deprecations
217217

docs/release_notes/ibexa_dxp_v4.6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ A new helper method `ibexa.helpers.contentType.getContentTypeDataByHref` has bee
873873

874874
#### [[= product_name_connect =]]
875875

876-
For a list of changes in [[= product_name_connect =]], see [Ibexa app release notes](https://doc.ibexa.co/projects/connect/en/latest/general/ibexa_app_release_notes/).
876+
For a list of changes in [[= product_name_connect =]], see [Ibexa app release notes]([[= connect_doc =]]/general/ibexa_app_release_notes/).
877877

878878
##### Scenario block
879879

0 commit comments

Comments
 (0)