问题
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