To achieve content that perfectly matches your brand’s values, while also being optimized for the right audience and for search engines, simple prompts won’t cut it.
Hyper Prompt offers a flexible engine to create tone perfect, SEO optimized and scalable content in a breeze.
The prompt picker field allows developers to integrate Hyper Prompts, created using Hyper Prompt app into their own dialogs and custom AI workflows.
RAG-references to content apps
From version 1.1.1, we support Retrieval-Augmented Generation (RAG) to improve the relevance and accuracy of AI-generated content.
RAG combines the power of prompt-based generation with information retrieved from external sources, ensuring that the generated content is not only coherent but also enriched with up-to-date and contextually relevant information from Magnolia content apps.
This feature is currently in the developer preview state.
The feature will be further enhanced in the near future to make it more convenient to use as a prompt engineer.
References to Magnolia content apps can be enabled using a special syntax variable name: Note fro version 1.2.0 these special reference templates can be configured (see smartInjectTemplatesConfiguration)
Ensure you have the info.magnolia.ui.javascript.form.FormViewWithChangeListener implementation class.
2
The prompt picker.
The value is propagated in formFields in with the name <fieldName>.prompt (e.g promptPicker.prompt) and has the following format.
{
"@id": "<prompt id>",
"@name": "<prompt jcr name>",
"@nodeType": "prompt",
"@path": "<prompt prat>",
"name": "<prompt name>",
"promptTemplate": "${Title}\n${Article}", # The defined prompt template including variables in the form ${<variableName>}
"variables": { # Contains the resolved variables from the picker
"Title": "test",
"Article": "when iaa"
}
}Copy
Authors can use the ready-made prompts to create new content pieces, as well as to fine-tune or improve existing content.
Authors can also test and iterate on the prompts without the need of switching to other apps within Magnolia.
DALL-E integration
DALL-E integration is available from version 1.0.7.
The DALL-E integration makes DALL-E’s public API accessible and usable through Magnolia.
The following functions are provided:
Generating and storing images based on text (DALL-E 3)
Creating image variants (DALL-E 2)
Creating modified images (DALL-E 2)
Developers
Authors
To activate the feature:
Go to the <light-module-folder>/<light-module-name>/decorations/assets/apps/dam.yaml file in your project.
Once activated, you can go to the Generate asset subapp and enter the values you want in the prompt fields to generate amazing images.
AI powered textField
AI-powered text fields are available from version 1.0.5.
You can generate text in a textField based on a self-defined translatable prompt which you can enrich with variable content from the dialog properties.
Example definition
form:implementationClass:info.magnolia.ui.javascript.form.FormViewWithChangeListenerproperties:#....description:$type:aiTextFieldprompt:"My wonderful ${paramName} description of what the AI should generate."(1)words:100(2)rows:6(3)properties:(4)tags:tags#...Copy
Callout
Parameter
Description
1
prompt
required
The prompt field defines the instruction given to the AI to generate the text value.
It can be either fixed in the field definition or defined by the i18n property key.
Variable substitutions are available.
In addition to self-definable variables via the property properties, the ${lang} variable is also available.
This variable inserts the language currently being edited at the position used.
2
words
optional, default is `50`
Defines the maximum words returned.
3
rows
optional, default is `2`
Defines the initial height of the textarea.
4
properties
optional
Defines properties for variable substitution in the prompt.
The key is used as name for the variable. The value defines the name of the field from the form definition e.g. of the dialog.
AI powered component generation
Generate page components in a flash with the AI Accelerator module.
Developers
Authors
To activate the feature:
Go to the <light-module-folder>/<light-module-name>/decorations/pages-app/apps/pages-app.yaml file in your project.
Once activated, you can generate variants by clicking Generate component variation and selecting a segment.
AI powered stories generation
Generate compelling stories with the click of a button.
Story-Gen allows you to generate complete story outlines followed by a refining step in which the outlines are refined.
Developers
Authors
To activate the feature:
Go to the <light-module-folder>/<light-module-name>/decorations/stories/apps/stories.yaml file in your project.
Once activated, you can provide a Story outline and then further refine your story using OpenAI straight from the dialog prompt.
AI powered SEO Metadata Field
Automatically generates SEO and OG metadata, including page title, description, and keywords, based on the page content for search engine optimization and social media sharing.
Supports multilingual sites.
Developers
Authors
To activate the feature:
Go to the <light-module-folder>/<light-module-name>/dialogs/pages/<dialog>.yaml file in your project.
form:implementationClass:info.magnolia.ui.javascript.form.FormViewWithChangeListener(1)properties:#....seoGenerator:(2)$type:aiSeoMetadataGeneratorlabel:AISeoMetadataasseawadsparameters:titleField:title# value is the property name of the field in the dialogmetaDescriptionField:metaDescriptionogDescriptionField:ogDescriptionmetaKeywordsField:metaKeywords# ogTitleField: ogTitle# ogDescriptionField: ogDescriptionmetaDataFields:# note all fields here need to have a corresponding parametertitle:TitlemetaDescription:Description# ogTitle: ogTitle# ogDescription: ogDescriptionmetaKeywords:MetakeywordsexcludedProperties:# Name of a property that should not be taken into account for metadata creationnoIndexPage:noIndexPagenavigation:navigationhideHero:hideHeroseoGenerator:seoGeneratorfooter:footer#...Copy
1
Ensure you’re using the info.magnolia.ui.javascript.form.FormViewWithChangeListener implementation class.
2
The SEO generator.
Once activated, go to the Meta tab in your Pages app to and click Generate SEO Metadata.
AI powered page generation
Generate full pages based on your template sets.
Only components and templates that are enabled using availableTemplates and availableComponents can be used for generating pages.
Developers
Authors
To activate the feature:
Go to the <light-module-folder>/<light-module-name>/decorations/pages-app/apps/pages-app.yaml file in your project.
Once activated, go to Generate page and choose from the available templates.
AI assisted text fields
AI-assisted text fields are available from version 1.1.1.
AI-powered forms feature allows developers to easily transform any existing text fields in a Magnolia dialog into AI enhanced text fields.
Use the AI assisted text field in your forms or turn textField into an AI-powered textField.
There are two options to enable aiAssistedTextField in your forms.
Using implementationClass: info.magnolia.ai.automations.ui.AiAssistedFormView converts all traditional textField fields to aiAssistedTextField fields.
2
Optional, allows to limit the number of characters. Generated text will be truncated if the number of characters exceeds the limit.
Configure extension tools for AI assisted text field
From version 2.1.0
By default, all enabled default extensions of the ai-accelerator-ui module (see defaultExtensions) are available in the aiAssistedTextField.
If different extensions should be used in a aiAssistedTextField this can be achieved with the optional property extensions.
Only enabled extensions will be displayed.
Using extensions requires the type explicitly to be set to aiAssistedTextField.
2
Optional, generated text will be truncated if the number of characters exceeds the limit.
3
Just a key, the name does not matter
4
Has to be a name of an enabled ai-accelerator extension
5
Config depends on the used extension
The following configuration for the default tools are available for decoration.
Config
Extension
Description
numWords
Desired approximate number of words. Default is 50.
SummarizeTool
SummarizeBlockTool
Desired approximate number of words. Default is 50.
numWords
ExpandTool
ExpandBlockTool
Desired number of words. Default is 100.
showDialog
ExpandTool
ExpandBlockTool
If true dialog is shown where the user can specify the desired number of words. Default is false.
prompt
Prompt instructions.
Some extensions make use of extension dialogs that must also be available. Below a list is given showing the extensions and required dialogs. Required dialogs that are not present will result in an error.
Extension
Dialog
ChangeToneTool
ChangeToneBlockTool
ChangeToneDialog
ExpandTool
ExpandBlockTool
ExpandDialog
HyperPromptTool
HyperPromptBlockTool
HyperPromptDialog
SEO Metadata generation
From version 2.1.0
The following extensions are available for seo metadata generation:
SeoMetadataDescriptionBlockTool
SeoMetadataKeywordsBlockTool
SeoMetadataTitleBlockTool
The extensions for generation of SEO metadata description and title approximate maxLength if defined on the aiAssistedTextField.
The following specific configurations are available for decoration:
Config
Description
Available for
excludedProperties
Properties to exclude for metadata generation.
It is a good idea to include meta-data fields manually to prevent existing bias for the AI.
SeoMetadataDescriptionBlockTool
SeoMetadataKeywordsBlockTool
SeoMetadataTitleBlockTool
numWords
Amount of words to be generated.
For description this number is approximate.
For the title this is the maximum.
SeoMetadataDescriptionBlockTool
SeoMetadataTitleBlockTool
numKeywords
Number of keywords to be generated.
SeoMetadataKeywordsBlockTool
AI Image generation
From version 2.1.0 Generate images using configured AI models.