# Connect wit.ai NLP

{% hint style="info" %}
You need to be —

* An Admin on MyAlice to access **Integrations**.
* The owner or admin of a Facebook page.
  {% endhint %}

## Use Cases of [Wit.ai](https://wit.ai/) on MyAlice

Integrating Wit.ai with Alice will allow you to:

* Create NLP modules and connect them to your chatbots.
* Help your bots understand human intents and keywords.
* Create advanced user journeys and automate repetitive queries.
* Deliver customer support in multiple languages.

## Connect Wit.ai NLP App to MyAlice

### Step 1: Create an App

Go to [wit.ai](https://wit.ai) and log in with your Facebook ID. Create a new NLP app for your specific use case. Get started on this guide if you are a non-technical person reading this and don't know how to create an NLP app.

{% embed url="<https://wit.ai/getting-started>" %}

### Step 2: Connect a Wit.ai App to MyAlice

![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/Pg98zg9vbbYZERWVrD47/Integrations%20tab.png)

<figure><img src="https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/XmzThyR2vnSu3yTjs0xw/Screenshot%202023-10-09%20at%205.59.51%20PM.png" alt=""><figcaption></figcaption></figure>

1. Go to **Integration** from the left navigation bar.
2. Under **Available Integrations > NLP**, select **Wit.ai**.
3. A connection window will appear from the right. Click on **Next**.
4. Set a title for your wit NLP connection.
5. Paste your App ID and Server Access Token in the next fields.
6. Set a confidence level for your app and click **Finish**.&#x20;

### Step 3: Connect wit.ai to a Channel

From **Integration** on the left navigation bar, select **Integrated**. Choose the channel with which you want to connect the NLP app. Click on the triple-dot icon **(...)** on the selected channel and select **Edit**.

![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/UjmQaH0M98jNygicJSHR/Screenshot%202022-02-01%20at%207.01.35%20PM.png)

A pop-up window will appear from the right. From the drop-down menu under **Select NLP App**, select your desired NLP app.

![](https://content.gitbook.com/content/ZlunlE4rHhMzJq9M0MQx/blobs/FNevEoqw9jAaWYmtcts8/Screenshot%202022-02-01%20at%207.04.30%20PM.png)

{% content-ref url="connect-intents-to-sequences" %}
[connect-intents-to-sequences](https://docs.myalice.ai/myalice-guide-arabic/chatbot-and-automation/create-rules-to-trigger-a-sequence/user-intent-by-nlp-wise-automation/connect-intents-to-sequences)
{% endcontent-ref %}

## Video Tutorial

Please check the video below to get a video walkthrough of everything mentioned above:&#x20;

<https://drive.google.com/file/d/1VD-W18QgwsDeFPQ_AfAvEB59dO8ubHKy/view?usp=drive_link>

## FAQs and Troubleshooting

<details>

<summary>What is a Confidence Level?</summary>

The Confidence Level indicates how certain the NLP app is that the correct intent has been assigned.

If you are confident that your NLP app is trained adequately, you can set a higher score (>0.5) for it. In that case, the bot will try to understand intents outside its training. However, if you do not want your bot to interpret more than what it has learned and act strictly on how it's trained, you can set a lower confidence score (<0.5).

</details>

<details>

<summary>Where do I find the App ID and Server Access Token?</summary>

On your wit.ai dashboard, go to Settings. You will find your App ID and Server Access Token there.​ The ID numbers and tokens have been hidden due to privacy concerns.

</details>

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgzCdF2XNgHNO9_KQDe%2Fuploads%2F7EEZZdzuhzTxQ3T3sBjL%2Fwit.ai%20nlp.png?alt=media\&token=84937cb9-0f24-4f34-b916-2f3f1c4bef86)

<details>

<summary>My NLP app is taking some time to function properly on MyAlice.</summary>

Due to API limitations, the wit.ai NLP app takes more than 30 minutes to connect with MyAlice and function properly. However, if your app is still inactive after an hour, feel free to [contact us](https://myalice.ai/support/).

</details>


---

# 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.myalice.ai/myalice-guide-arabic/chatbot-and-automation/create-rules-to-trigger-a-sequence/user-intent-by-nlp-wise-automation/connect-wit-nlp.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.
