LUIS: Action Parameter cannot be passed (with Dialog Execution)

血红的双手。 提交于 2019-12-08 08:34:51

问题


By using LUIS and it's "Dialog Execution" under Action Binding, i'm expecting to be able to provide the required parameter (of an Action). (So that the Action can be triggered, or the Dialog can be continued.)

As far as i understand, once the Parameter has been asked to provide, we should provide it in the follow-up query call. For example:

First query:

https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/...?subscription-key=...&q=what are the available items

Then, it asks me "Under what category?" (expecting me to provide the required parameter), like:

Then i provided it in the follow-up query:

https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/...?subscription-key=...&q=electronics&contextId=d754ce3...

But then, seems like i still don't get the value accepted, and therefore it is still showing as null. Like this:

So the Parameter is not captured. So that Action can ever be triggered, yet. (Or i cannot reach to next Parameter, if there any)

Am i doing something wrong with it, or what seems to be the problem please?

(Below is the screenshot of that Intent with the "Action Parameters")


回答1:


I have experienced this before. (In fact it still happens). Even in the Microsoft's Official LUIS API Example DEMOS, it still happens.


For example, in their Weather Bot there, just try something like:

You: What will the weather be tomorrow?
Bot: Where would you like the weather?
You: Singapore
Bot:

{
  "name": "location",
  "required": true,
  "value": null
}

Then now try again, like:

You: What will the weather be tomorrow?
Bot: Where would you like the weather?
You: in Singapore
Bot:

{
  "name": "location",
  "required": true,
  "value": [
    {
      "entity": "singapore",
      "type": "builtin.geography.country"
    }
  ]
}

Conclusion?

Prepositions! (in, at, on, by, under, ...) LUIS still doesn't understand the Entity input without the proper preposition provided, sometimes, in some cases.

I'm pretty sure this is the reason for your case. Try again with a preposition.

( This problem took me like 1~2 weeks to realise. Hope Microsoft can improve LUIS better in all this aspects asap. )



来源:https://stackoverflow.com/questions/42273447/luis-action-parameter-cannot-be-passed-with-dialog-execution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!