How can I train an intent in Watson conversation to accept any number?

你离开我真会死。 提交于 2019-12-11 01:47:56

问题


How can we train an intent to accept numbers and identify it as that particular state? For example, I'm training an intent to accept a price.

If I type:

  • What about 560?

It accepts 560 but if I just type 560 it does not identify.


回答1:


If you wanna combine the intent and the entity, you can simply ADD one more condition, e.g:

if bot recognizes #yourIntent AND @sys-number 
response: "Do you want information about @sys-number?"

Or, if you want to identify the number even ONLY it is entered by the user, you can add one more node flow with the condition:

if bot recognizes @sys-number 
response: "Do you want information about @sys-number"?

If the user just types something about your Intent (You need to train the intent with questions like your example):

if bot recognizes #yourIntent
response: "Okay, but, what is the number that you want information?"

Obs.: You need to activate the System entity @sys-number for it works. And training your #Intent with examples to ask questions about. Like @data_henrik said, the #Intents are what do you want to do and the @entity is the objects.

  • See more about conditions and methods for conditions inside Watson Conversation Service Official Documentation.


来源:https://stackoverflow.com/questions/46172383/how-can-i-train-an-intent-in-watson-conversation-to-accept-any-number

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