NLP Configuration
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
To configure this section you must have an app created in Wit.ai and get the "Server Access Token".
The configuration file for the NLP service is located at config/nlp.rb
Kogno::Application.configure do |config|
config.nlp.wit = {
enable: false,
api_version: "20210928",
apps: {
default: "WIT_APP_SERVER_TOKEN"
}
}
end
Kogno::Application.configure do |config|
config.nlp.wit = {
enable: true,
api_version: "20210928",
apps: {
default: "DEFAULT_WIT_APP_SERVER_TOKEN",
es: "SPANISH_WIT_APP_SERVER_TOKEN",
fr: "FRENCH_WIT_APP_SERVER_TOKEN"
}
}
end
enable
Pass true
to enable NLP engine service to your project.
api_version
The Wit.ai API version.
apps
The Wit.ai apps related to the project. One for each language the chatbot will talk.