You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai_actions/ai_actions.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,13 @@ page_type: landing_page
5
5
6
6
# AI Actions
7
7
8
-
Enhance the usability and flexibility of [[= product_name =]] by installing the AI Actions add-on that can automate various tasks, for example, generate alt text for images.
9
-
Potentially, you can use AI for transforming text passages, generating illustrations for your articles based on a prompt, and so on.
8
+
The AI Actions add-on enhances the usability and flexibility of [[= product_name =]] by automating various tasks.
9
+
After you configure it, it can generate alt text for images or transform text passages.
10
+
11
+
You can also extend it to perform other tasks or support additional AI engines.
Copy file name to clipboardExpand all lines: docs/ai_actions/ai_actions_guide.md
+60-60Lines changed: 60 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,91 +6,93 @@ description: AI Actions add-on helps editors by automating repetitive tasks.
6
6
7
7
## What are AI Actions
8
8
9
-
In the evolving landscape of digital experience, artificial intelligence becomes more and more important by enhancing user interaction and automating complex tasks.
10
-
[[= product_name =]] can be equipped with the AI Actions add-on, which harnesses AI's potential to automate various time-consuming tasks, for example, generating alt text for images.
9
+
In the evolving landscape of digital experience, artificial intelligence becomes more and more important by enhancing user interaction and automating complex processes.
10
+
[[= product_name =]] can be equipped with the AI Actions add-on, which harnesses AI's potential to automate time-consuming editorial tasks.
11
+
AI Actions is an extensible solution for integrating features provided by AI services into your workflows, all managed through a user-friendly interface.
11
12
12
13
Out-of-the-box, AI Actions includes two essential components: a framework package and an OpenAI connector package.
13
-
By default it comes with two action types preconfigured:
14
+
It comes pre-configured with the following action types:
14
15
15
-
-Generate alternative text: Generate alt text for accessibility purposes
16
-
-Refine text: Rewrite existing text according to parameters set in a prompt
16
+
-[Refine text](#refining-text): Rewrite existing text according to parameters set in a prompt
17
+
-[Generate alternative text](#generating-alternative-text): Generate alt text for accessibility purposes
You can extend its capabilities beyond the default setup by creating custom connector modules, allowing users to integrate additional AI services or customize the way data is processed and interpreted.
21
-
For example, it can transform text, or generate illustrations for your articles based on a prompt.
22
+
For example, it could transform images, or generate illustrations for your articles based on their contents.
22
23
The possibilities are endless and you're not limited to a specific AI service, avoiding vendor lock-in.
23
24
24
25
## Availability
25
26
26
-
The AI Actions feature is an opt-in capability available as an LTS Update to the v4.6.x version of [[= product_name =]], regardless of its edition.
27
-
To begin using AI Actions, you must first install the required packages and perform initial configuration.
27
+
AI Actions are an opt-in capability available as an LTS Update to the v4.6.x version of [[= product_name =]], regardless of its edition.
28
+
To begin using AI Actions, you must first [install the required packages and perform initial configuration](install_ai_actions.md).
28
29
29
30
!!! note "API Key"
30
31
31
-
The Open AI connector requires that you first [get an API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key).
32
+
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).
32
33
33
34
## How it works
34
35
35
-
Built upon the PHP framework, AI Actions offer an extensible solution for integrating features provided by AI services into your workflows, all managed through a user-friendly interface.
36
-
37
-
The framework package is responsible for gathering information from various sources, such as Action types, Action configurations, and contextual details like SiteAccess, user details, locale settings, and more.
36
+
AI Actions add-on is built upon the PHP framework.
37
+
The framework package is responsible for gathering information from various sources, such as AI action types, AI action configurations, and contextual details like SiteAccess, user details, locale settings, and more.
38
38
This data can then be combined with user input.
39
-
Then it's passed to a connector, such as the OpenAI connector, for final processing on [[= product_name =]] side.
40
-
The connector wraps the data into a prompt or another suitable format and sends it to an external AI service.
41
-
42
-
When the AI Service returns a response, the response goes through the connector and passes to the framework.
43
-
It can now be presented to the user in any way necessary.
39
+
It's then passed to a service connector, such as the default OpenAI connector, for final processing on [[= product_name =]] side.
40
+
The service connector wraps all data into a prompt or another suitable format and sends it to an external AI service.
44
41
45
-
AI Actions can also be extended beyond the default setup by creating custom connector modules, allowing users to integrate additional AI services or customize the way data is processed and interpreted.
42
+
When the AI Service returns a response, the response goes back through the service connector and passes to the framework.
43
+
It can then be presented to the user in any way necessary.
46
44
47
45
### Core concepts
48
46
47
+
#### AI service
48
+
49
+
AI service is a third party platform that provides access to artificial intelligence tools and capabilities.
50
+
It executes tasks that it receives through a service connector.
51
+
49
52
#### Action
50
53
51
-
Actions are tasks or functions that the AI is set to perform.
52
-
Each Action is a combination of an action type and an action configuration.
53
-
Action types define what kind of task the AI performs, while action configurations specify how the task should be executed.
54
+
Actions are tasks or functions that the AI service is set to perform.
55
+
Each action is a combination of an AI action type and an AI action configuration.
56
+
Action types define what kind of task the AI service performs, while AI action configurations specify how the task should be executed.
54
57
This clear separation allows for a flexible system where actions can be created, managed, and customized with minimal effort.
55
58
56
-
#### Action type
59
+
#### AI action type
57
60
58
-
Action types are predefined by developers.
59
-
Each action type defines the structure and nature of the task that the AI service performs.
60
-
Action types could be designedto generate alt text for images, summarize a passage of text, or even translate content into another language.
61
-
By defining action types, developers can create a wide range of functionalities that can be deployed within the application.
61
+
AI action types are templates predefined by developers.
62
+
Each AI action type defines the structure and nature of the task that the AI service performs.
63
+
AI action types could be designed, for example, to generate text based on an image, translate a passage of text, or generate a video clip based on a description.
64
+
By defining AI action types, developers can create a wide range of functionalities that can be deployed within the application.
62
65
63
-
#### Action configuration
66
+
#### AI action configuration
64
67
65
-
Website administrators use Action configurations to employ action types to generate actions.
66
-
Action configurations are managed in the [Admin Panel](admin_panel.md), and allow administrators to customize and fine-tune the behavior of each action.
67
-
Such tuning might involve setting specific parameters used the AI service, setting an expense limit, or configuring how the output should be handled.
68
-
By making such adjustments, administrators can ensure that the actions are tailored to meet their requirements.
68
+
AI action configurations store detailed parameters needed to generate AI actions based on AI action types.
69
+
Website administrators manage AI action configurations in the [**Admin** panel](admin_panel.md), where they customize and fine-tune the behavior of each AI action.
70
+
It might involve setting specific parameters used by the AI service, a response length, an expense limit, or configuring how the output should be handled.
71
+
By making such adjustments, administrators can ensure that the actions are tailored to meet the needs of your organization.
69
72
70
-
#### Handler
73
+
#### Models
71
74
72
-
Once an action is defined and configured, it must be executed, and this is where handlers come into play.
73
-
Handlers are pieces of PHP code that are responsible for resolving an action.
74
-
Each handler is designed to work with a specific AI service and action type pair.
75
-
Handlers may include hardcoded prompts for conversational AI services like ChatGPT.
76
-
They can also operate without prompts in the case of other types of AI.
77
-
Handlers take parameters defined in the action type and action configuration, combine it with user input and any predefined settings or prompts, and pass this information to the AI service for processing.
75
+
Once an AI action is defined and configured, it must be executed, and this is where models come into play.
76
+
Each model is designed to work with a specific AI service and AI action type pair.
77
+
Pieces of PHP code that are responsible for resolving a model are called handlers.
78
+
They may include hardcoded prompts for conversational AI services like ChatGPT, or operate without prompts in the case of other types of AI.
79
+
Handlers take parameters defined in the AI action type and configuration, combine it with user input and any predefined settings or prompts, and pass this information to the AI service for processing.
78
80
79
81
### Triggering actions from the UI
80
82
81
-
Among other elements, AI Actions package includes UI components for:
83
+
Among other elements, AI Actions add-on includes UI components for:
82
84
83
-
- action management in the Admin Panel,
84
-
- alt-text generation feature in image management
85
+
- AI action management in the **Admin** panel
85
86
- text modification in online editor
87
+
- alt-text generation feature in the image management modal
86
88
87
89
These areas are user-friendly and well integrated with the existing application’s UI.
88
-
Administrators can manage action configurations with ease, while end-users can trigger actions with a click of a button.
90
+
Administrators can manage action configurations with ease, while editors can trigger actions with a click of a button.
89
91
Procedures are straightforward and intuitive, ensuring that users can quickly achieve their desired outcomes.
90
92
91
93
### Triggering actions programmatically
92
94
93
-
AI Actions add-on exposes a REST API interface that allows for programmatic execution of actions.
95
+
AI Actions add-on exposes a REST API interface that allows for programmatic execution of AI actions.
94
96
With the API, developers can automate tasks and execute actions on batches of content by integrating them into workflows.
95
97
<!---By issuing commands through the API, developers can trigger actions based on external events:
96
98
...--->
@@ -99,42 +101,40 @@ With the API, developers can automate tasks and execute actions on batches of co
99
101
100
102
### Management
101
103
102
-
The AI Actions allows you to control the lifecycle of action configurations.
103
-
Users with the appropriate permissions, governed by role-based [policies](policies.md#ai-actions), can create, edit, execute, and delete action configurations.
104
-
Additionally, configurations can be enabled or disabled depending on the organization's needs.
104
+
Users with the appropriate permissions, governed by role-based [policies](policies.md#ai-actions), can control the lifecycle of AI actions by creating, editing, executing, and deleting them.
105
+
Additionally, AI action configurations can be enabled or disabled depending on the organization's needs.
An intuitive AI Actions interface within the Admin Panel displays a list of all available action configurations.
109
-
Here, you can search for specific configurations and filter them by type or status.
110
-
By accessing the detailed view of individual action configurations, it is possible to quickly review all the parameters.
109
+
An intuitive AI Actions interface within the **Admin** panel displays a list of all available AI actions.
110
+
Here, you can search for specific actions and filter them by type or status.
111
+
By accessing the detailed view of individual AI actions, you can quickly review all their parameters.
111
112
112
113
### Extensibility
113
114
114
-
Built-in action types offer a good starting point, but the real power of AI Actions lies in extensibility.
115
+
Built-in AI action types offer a good starting point, but the real power of the AI Actions add-on lies in extensibility.
115
116
Extending AI Actions opens up new possibilities for content management and editing.
116
-
Developers can extend the feature by adding new action types that use existing AI services or even integrating additional ones.
117
-
This involves defining a new action type, writing a handler that communicates with the new service, and creating a form for configuring the options that extends the default action configuration form shown in the Admin Panel.
118
-
For example, if this is your enterprise's requirement, a developer could write a handler that uses an AI service to generate complete articles based on a short description, or illustrations based on a body of an article.
117
+
Developers can define new models and AI action types that use the existing AI service or even integrate additional services.
118
+
The latter involves developing a new service connector, writing a handler that communicates with the new service, defining a new AI action type, and creating a form for configuring options, which extends the default action configuration form shown in the **Admin** panel.
119
+
For example, if this is your organization's requirement, a developer could write a handler that uses an AI service to <insert_a description and link to Marek's use case> generate complete articles based on a short description, or illustrations based on a body of an article.
119
120
120
121
## Use cases
121
122
122
-
Out of the box, the [[= product_name_base =]] AI Actions add-on comes with two action types that can help your oganization with the following tasks.
123
-
However, before you can start using these features, some preliminary setup is required, which includes configuring access to an AI service.
123
+
Out of the box, after you configure access to the OpenAI service, the [[= product_name_base =]] AI Actions add-on comes with two action types that can help your organization with the following tasks.
124
124
125
125
### Refining text
126
126
127
-
Content editors can benefit from using AI capabilities to enhance or modify text.
127
+
Content editors can benefit from using AI capabilities to [enhance or modify text]([[= user_doc =]]/content_management/create_edit_content_items/#ai-assistant).
128
128
With a few clicks, they can improve content quality or reduce the workload.
129
-
While working on content, editors can select a specific passage and request that AI performs specific actions such as: adjusting the length of the text, changing the tone, or correcting grammar and spelling errors.
129
+
While working on content, editors can select a specific passage and request that AI performs specific actions such as: adjusting the length of the text, changing the tone, or correcting linguistic errors.
130
130
131
131

132
132
133
133
With seamless with the content creation UI in mind, this functionality is available in content types that include a RichText field, and certain Page Builder blocks.
134
134
135
135
### Generating alternative text
136
136
137
-
Media managers and content editors can benefit from employing AI to generate alt text for images, which results in improved accessibility and SEO.
137
+
Media managers and content editors can benefit from employing AI to [generate alt text for images]([[= user_doc =]]/image_management/upload_images/#ai), which results in improved accessibility and SEO.
138
138
Once the feature is configured, editors can generate alt text for images they upload to the system by clicking one button.
0 commit comments