WordAI module

Edition

Incubator (services)

Issues

Git

Git

Latest

1.0.1

Compatible with Magnolia 6.2.

The WordAI module is used for rewrite text in your dialogs or apps, WordAi uses advanced machine learning models to provide high quality rewriting that is indistinguishable from human content. One you have the text rewritten, the module provides different options (from 1 to 10) to select and adapt your input.

This module is at the INCUBATOR level.

Installing with Maven

Maven is the easiest way to install the module. Add the following to your bundle:

<dependency>
  <groupId>info.magnolia.ai</groupId>
  <artifactId>magnolia-wordai</artifactId>
  <version>1.0.1</version>
</dependency>
Also, you need to modify the server@defaultBaseUrl to point to your instance.

Usage

Configuration

You only need a light module with a decoration to wordai-widget/config.yaml.

url: (1)
key: (2)
email: (3)
uniqueness: (4)
rewrites: (5)
1 The API URL from WordAI.
2 The secret key provided by WordAI.
3 The email registered in WordAI.
4 Depend on how conservative vs adventurous you want your rewrite to be, you can set uniqueness as an integer ranging from 1 to 3, where 1 stands for More Conservative, 2 stands for Regular, and 3 stands for More Adventurous. Default is 1.
5 The number of rewrites you’d like WordAi to create for your original text. Rewrite must be an integer ranging from 1 to 10. Default is 1.

Include in a dialog

To include the new field in a dialog, you will need this dialog configuration, where you need to include in your form the implementationClass and the field called description (or the name of your election):

form:
   implementationClass: info.magnolia.ui.javascript.form.FormViewWithChangeListener
   properties:
       description:
          $type: javascriptField
          fieldScript: /wordai-widget/webresources/wordai/wordai.html
          height: 150
          defaultValue: "#00ff00"

The result will be a text field with a button to rewrite your text before you include it in the page. Once you push the Rewrite button you can select different rewrites to insert one:

page 1

page 2

Changelog

Version Notes

1.0

Initial release of the module.

Feedback

Incubators

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the WordAI module docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules