我如何向DialogFlow提供知识,以便它理解类似以下的查询:
Intent #1 : My name is Tim and I'm 36
Response #1 : I understand your name is Tim and you're 36
Intent #2 : My partner's name is Jane and she's 35
Response #2 : I understand your partner's name is Jane and she's 35
Intent #3 : How old am I?
Response #3 : You are 36
Intent #4 : How old is Jane?
Response #4 : Jane is 35
假定意图#1/2由Webhook处理,并且响应#1/2是Webhook可以识别并可以存储Tim
,Jane
,36
和{ {1}}。
为进行演示,意图#3由可检索35
的Webhook处理。
意图4可能与36
和How old is my partner
之类的东西匹配。但是DialogFlow如何理解解析输入时应将What's my partner's age
替换为Jane
?
我有点需要匹配partner
的方法。
答案 0 :(得分:0)
高层次: