tock / ai.tock.bot

Package ai.tock.bot

Utility methods to start a new bot

Types

BotIoc

Bot module configuration.

object BotIoc

Functions

getIntentsByNamespaceAndName

Export list of IntentDefinition

fun getIntentsByNamespaceAndName(namespace: String, name: String): List<IntentDefinition>?

importApplicationDump

Import a dump of a full application.

fun importApplicationDump(path: String): Unit

importI18nDump

Import a dump of all i18n labels.

fun importI18nDump(path: String, replaceAllLabels: Boolean = false): Unit

importNlpDump

Import a dump of a full nlp model.

fun importNlpDump(path: String): Unit

importNlpSentencesDump

Import a dump of a list of qualified sentences to a nlp model.

fun importNlpSentencesDump(path: String): Unit

registerAndInstallBot

Register and install a new bot.

fun registerAndInstallBot(botDefinition: BotDefinition, additionalModules: List<Module> = emptyList(), vararg routerHandlers: (Router) -> Unit): Unit
fun registerAndInstallBot(botProvider: BotProvider, additionalModules: List<Module> = emptyList(), vararg routerHandlers: (Router) -> Unit): Unit