This is the Core Violet Module - it returns the conversation engine that
voice scripts can take advantage of.
Voice scripts can be grouped into a single app and multiple apps can be made available on a single server. Currently Violet supports registering intents for Amazon's Alexa Skills Kit and Google's Dialogflow platform.
Voice scripts can be grouped into a single app and multiple apps can be made available on a single server. Currently Violet supports registering intents for Amazon's Alexa Skills Kit and Google's Dialogflow platform.
- Source:
Methods
(static) clearAppInfo(appName)
Violet intentionally groups scripts into an app. The method clears any
previous script information for the specified app. This
method is primarily used by the test suite as it uses the same app repeatedly.
Parameters:
Name | Type | Description |
---|---|---|
appName |
App name to reset script information. |
(static) script(cfg) → {ConversationEngine}
Instantiates and returns the Violet Conversation Engine. Most violet scripts
start by making this call.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfg |
Object | script config
Properties
|
Returns:
- The primary
ConversationEngine object that Voice Apps will use to define
scripts, intents, goals, etc.
- Type
- ConversationEngine
(static) server()
Assists with the loading of scripts by a Server. Primarily enables
apps to have multiple scripts.