I am trying to give my LUIS the missing piece of information which it requires when the query has missing item. For example.
if someone says, i want to make an order. For this i need to know how many users. The LUIS on https://api.projectoxford.ai/luis/v2.0/apps/ automatically creates the context id when that ensures i am talking to this query.
How can i get or tell the same thing in Bot Framework when the LUIS Dialog Prompts the question for missing thing.
This is the code
[Serializable]
[LuisModel("something", "something")]
public class SimpleLUISDialog : LuisDialog<object>
{
[LuisIntent("GetQuote")]
public async Task GetQuote(IDialogContext context, LuisResult result)
{
PromptDialog.text(context, GetChildNumberAsync, "How many Users will you be adding ?", "Sorry please try again", 2);
}
}
private async Task GetUserNumberAsync(IDialogContext context, IAwaitable<string> result)
{
// send to LUIS again for checking the entity for number of users with Context ID
}
}
This is what is written is LUIS Dialog on API (JSON)
"dialog": {
"prompt": "How many users needed?",
"parameterName": "NumberOfLicenses",
"parameterType": "number",
"contextId": "746024ff-a4eb-4f58-b014-42605a3cb757",
"status": "Question"
}