< Previous Challenge - Home - Next Challenge>
We are going to build out a LUIS triggered dialog flow to help answer the current stock price, we'll implement returning the actual price in the next challenge. For now we are just going to recognize that the utterance is Stock based and pull out the Ticker Symbol entity that is included in the utterance. Below goes into more depth.
- This intent needs to recognize when a Stock Price question is asked. So it should recognize questions like
- What is the MSFT stock today?
- Get me the stock price of TSLA
- Provide me with more information on the stock opening price for AAPL
- We also want to pull out the entity information for the Ticker Symbol in each utterance, in the above examples the entities we would pull out would be: MSFT, TSLA, and AAPL
-
Add a new trigger by Intent for recognizing Stock Price questions
-
Train your LUIS model with trigger phrases to recognize the intent and entities.
-
Add dialog in this trigger action to print back out the stock that they are asking for, we will add additional functionality in future challenges. The flow of the Bot should essentially look like this to the user:
-
Bot: <Greeting and prompt for a question>
-
User: " What is the stock price of MSFT?"
-
Bot: "You want to know the stock price of MSFT?"
-
User: "TSLA stock price?"
-
Bot: "You want to know the stock price of TSLA?"
-
-
Test your bot locally with unknown phrases and entities