|
| 1 | +--- |
| 2 | +description: AI Actions add-on helps editors by automating repetitive tasks. |
| 3 | +--- |
| 4 | + |
| 5 | +# AI Actions product guide |
| 6 | + |
| 7 | +## What are AI Actions |
| 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 | +To harness AI's potential, [[= product_name =]] introduces th AI Actions add-on, which you can install and use to automate various time-consuming tasks, for example, generating alt text for images. |
| 11 | + |
| 12 | +Built upon the PHP framework, AI Actions offer an extensible solution for integrating services provided by AI engines into your workflows, all managed through a user-friendly interface. |
| 13 | + |
| 14 | +You can extend the add-on and make it do different things, for example, transform text passages, or generate illustrations for your articles based on a prompt. |
| 15 | +The possibilities are endless. |
| 16 | + |
| 17 | +## Availability |
| 18 | + |
| 19 | +AI Actios are available as an add-on to the v.4.6.x version of [[= product_name =]], regardless of its edition. |
| 20 | +To use it's capabilities you must install the package and perform initial configuration. |
| 21 | + |
| 22 | +## How it works |
| 23 | + |
| 24 | +### The core concepts |
| 25 | + |
| 26 | +#### Actions |
| 27 | + |
| 28 | +Actions are tasks or functions that the AI is set to perform. |
| 29 | +Each Action is a combination of an action type and an action configuration. |
| 30 | +Action types define what kind of task the AI will perform, while the action configuration specifies how the task should be executed. |
| 31 | +This clear separation allows for a flexible system where actions can be easily created, managed, and customized. |
| 32 | + |
| 33 | +#### Action types |
| 34 | + |
| 35 | +Action types are predefined by developers within YAML configuration. |
| 36 | +Each action type defines the structure and nature of the task that the AI engine performs. |
| 37 | +Action types could be designed to generate alt text for images, summarize a passage of text, or even translate content into another language. |
| 38 | +By defining action types in YAML, developers can create a wide range of functionalities that can be easily deployed within the application. |
| 39 | + |
| 40 | +#### Action configurations |
| 41 | + |
| 42 | +AAction configurations let administrators employ action types to generate actions. |
| 43 | +Action configurations are managed in the [Admin Panel](admin_panel.md), and allow administrators to customize and fine-tune the behavior of each action. |
| 44 | +This might involve setting parameters for the AI, defining specific inputs, or configuring how the output should be handled. |
| 45 | +By adjusting these configurations, administrators can ensure that the actions are tailored to meet their requirements. |
| 46 | + |
| 47 | +#### Handlers |
| 48 | + |
| 49 | +Once an action is defined and configured, it must be executed, and this is where handlers come into play. |
| 50 | +Handlers are pieces of PHP code that are responsible for resolving an action. |
| 51 | +Each handler is designed to work with a specific AI engine and action type pair. |
| 52 | +Handlers may include hardcoded prompts for conversational AI engines like ChatGPT, or they may operate without prompts for other types of AI. |
| 53 | +Handlers take configurations 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 engine for processing. |
| 54 | + |
| 55 | +### Triggering actions from the UI |
| 56 | + |
| 57 | +Among other components, AI Actions add-on brings action management in Admin Panel and alt-text generation feature in image management UI. |
| 58 | +Both these areas are user-friendly and well integrated with the application’s UI. |
| 59 | +Administrators can manage atcion configurations with ease, while end-users can trigger actions by simply clicking a button. |
| 60 | +Processes are straightforward and intuitive, ensuring that users can quickly and easily achieve their desired outcomes. |
| 61 | + |
| 62 | +### Triggering actions programmatically |
| 63 | + |
| 64 | +AI Actions add-on exposes an API that allows for programmatic execution of actions. |
| 65 | +With the API, developers can automate tasks and execute actions on batches of content by integrating them into workflows. |
| 66 | +By issuing commands through the API, developers can trigger actions based on external events: |
| 67 | +... |
| 68 | + |
| 69 | +## Capabilities and use cases |
| 70 | + |
| 71 | +### Management |
| 72 | + |
| 73 | +... |
| 74 | + |
| 75 | +### Extensibility |
| 76 | + |
| 77 | +Built-in action types offer a good starting point, but the real power of AI Actions lies in extensibility. |
| 78 | +Extending AI Actions opens up new possibilities for content management and editing. |
| 79 | +Developers can extend the feature by adding new action types that use existing AI engines or even integrating additional AI services. |
| 80 | +This involves defining a new action type in YAML, writing a handler that communicates with the new service or engine, and creating a form for configuring the options that extends the action configuration form shown in the Admin Panel. |
| 81 | +For example, a developer could write a handler that uses an AI service to shorten or expand text passages, or generate illustrations based on a body of an article. |
| 82 | + |
| 83 | +### Use cases |
| 84 | + |
| 85 | +#### ... |
| 86 | + |
| 87 | +#### Generating Alt Text |
| 88 | + |
| 89 | +Out of the box, the [[= product_name_base =]] AI Actions add-on comes with the generating alt text for images capability. |
| 90 | +Organizations can benefit from it's use by improving accessibility and SEO. |
| 91 | +Once the feature is configured, editors can generate alt text for images they upload to the system by clicking one button, while administrators can use the API to run a batch process against a larger collection of illustrations. |
| 92 | +Before you can start generating alt text, some preliminary setup is required, which includes configuring access to an AI engine. |
0 commit comments