Skip to content

LUIS is Microsofts's Natural Language Processing offering. It supports a wide variety of European and Asian languages. Full documentation is available on the LUIS site.

Integration Scope

LUIS has many features, but Stackchat's integration with LUIS takes advantage of the following features only: - intent detection - entity extraction - sentiment analysis

LUIS Setup

In order to connect LUIS to Stackchat, you will first need to create a LUIS account and then a new LUIS Agent.

Create your LUIS account, click My apps in the top navigation, and click Create New App to create your first agent.

LUIS Create Agent

The LUIS interface.

Give your agent a name that matches your Stackchat bot's name for ease of understanding. Once your bot has been created, you will need your LUIS Application ID, Authoring Key, and Endpoint URL found in your LUIS agent's Manage settings to connect your bot to Stackchat.

To find the Application ID, click Manage at the top right of the screen of your LUIS agent. This will open the Application Information tab.

LUIS Application ID

The Application ID is here. Copy it to somewhere convenient.

To find the Authoring Key and Endpoint URL, click Keys and Endpoints in the menu on the left.

LUIS Authoring Key and Endpoint URL

The Authoring Key and Endpoint URL can be copy and pasted as well.

Stackchat Setup

Select the bot you wish to add the Cloud Configuration to and select Integrations. Click Add Integration at the upper right.

Cloud Config Modal

This modal shows all available Integrations.

In the dialogue on the right, enter a name for your LUIS configuration and paste your Application ID, Authoring Key and Endpoint URL into their respective fields.

LUIS Configuration Modal

Paste all contents here and click Update Integration.

Your bot is now linked to a LUIS NLP Agent. These steps will need to be repeated for each LUIS Agent you wish to use in your bots.

Enabling Sentiment Analysis in Dialogflow

If you're using our Adobe Analytics Cloud Configuration, you may wish to enable sentiment analysis in LUIS so that you can report on your audience's sentiment.

Sentiment analysis allows Natural Language Processing to attempt to determine the user's attitude during interaction with your chatbot, and this feature is currently disabled by default in LUIS.

To enable it, return to Manage in your NLP agent and click Publish Settings in the menu on the left. Tick the box to enable sentiment analysis.

LUIS Sentiment Analysis

Simply tick the box.

Once beta features are enabled, sentiment analysis data will be able to flow into Adobe Analytics and will appear in your Adobe Analytics Report Suite as Prop 11 (Sentiment Score), Prop 12 (Sentiment Magnitude), and Prop 24 (Sentiment Score Range).

At this time, there is no reason to enable this feature unless you are also using Adobe Analytics.