NLP Configuration

The configuration file for the NLP service is located at config/nlp.rb

One Language

Kogno::Application.configure do |config|

  config.nlp.wit = {
    enable: false,
    api_version: "20210928",
    apps: {
      default: "WIT_APP_SERVER_TOKEN"     
    }
  }
  
end

Multi-Language

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

Field Description

Configuration
Description

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.

Last updated

Was this helpful?