Documentation

AI Assistant

Description

AI Assistant is an addon that allows you to configure an AI chatbot that the user can talk to. AI API key needs to be configured in mAuthor/mCourser for this addon to function correctly.

Properties

The list starts with the common properties, learn more about them by visiting the Modules description section. The other available properties are described below.

Property name Description
Chat name The name of the chat, which will be displayed at the top of the addon.
Welcome text The initial text which will be displayed by the addon.
Hidden prompt This will be the first message that will be sent to the AI assistant automatically after it has been initialized. The content of the Hidden prompt will not be displayed for the user.
Suggestions These suggestions will be displayed for the user as a prompt under the Welcome text.
Instructions This property allows you to define the instructions for the AI Assistant. Instructions serve to guide its responses and behaviour.
Draggable When checked, the addon becomes draggable.
Hide header When checked, the addon's header will not be displayed.
Mute voice If checked, the addon will not read the contents of the Assistant's messages. This property does not affect the TTS functionality in the WCAG mode.
Voice language Defines the language which will be used to read the contents of the Assistant's messages. The default value is 'en'. This property does not affect the TTS functionality in the WCAG mode.
Voice type Defines the voice type which will be used to read the contents of the Assistant's messages. The default value is 'onyx'. This property does not affect the TTS functionality in the WCAG mode.
Reading speed Defines the speed at which the contents of the Assistant's messages will be read. Te value must be greater than 0.25 and lesser than 4. The default value is '1'. This property does not affect the TTS functionality in the WCAG mode.
Translation languages Defines the languages which will be available for translating the Assistant's messages. Each code should be separated by a semicolon.
Class names The specified classes will be used in place of 'display: none' when using the hide and show methods. This enables the author to define the exact behaviour when hiding/showing the addon, such as by adding css for animations. If the property is left empty, 'display: none' will be used.
Lang attribute Defines the language that will be used by TTS in the WCAG mode.
Speech texts List of speech texts: Message sent, Recording, Finished Recording, Last message, Assistant message number:, User message number:, Text input, Record button, Send button, Disabled, Active. These texts will be read while using the addon in the WCAG mode.

Supported commands

Command name Params Description
show Displays the addon. If Class names property has been set, the classes specified in that property will be used.
hide Hides the addon. If Class names property has been set, the classes specified in that property will be used.
showAnimated Displays the addon by assigning it either the class specified in the class names property, or the 'open' class if the Class names property is empty.
hideAnimated Hides the addon by assigning it either the class specified in the class names property, or the 'close' class if the Class names property is empty.