How can I train an intent in Watson conversation t

2019-07-08 08:31发布

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条回答
在下西门庆
2楼-- · 2019-07-08 09:30

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.
查看更多
登录 后发表回答