# NLP Configuration

{% hint style="warning" %}
To configure this section you must have an app created in [Wit.ai ](https://wit.ai)and get the "Server Access Token".
{% endhint %}

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

### One Language

```ruby
Kogno::Application.configure do |config|

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

### Multi-Language

```ruby
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 <mark style="color:green;">`true`</mark> 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.        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kogno.io/getting-started/nlp-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
