从单个单词中提取2个实体:dialogflow

时间:2019-03-11 07:06:30

标签: dialogflow

我有两个实体:1.产品列表,2.价格列表, 用户何时搜索产品?我想从一个词中提取两个实体的产品和价格。如何实现呢?

例如.....我有一个产品清单(笔记本电脑,LCD,显示器),另一个价格(50美元,44美元,300美元)

当用户搜索“您是否有笔记本电脑”时,我要提取值“是的,我们有50美元的笔记本电脑”

Here is both entity picture

This is price entity picture

This is product entity picture

This is intent picture

Expected Response picture

Getting This reponse picture

2 个答案:

答案 0 :(得分:0)

您收到此回复,是因为您已为价格分配了产品价值。 This is where you are doing wrong

答案 1 :(得分:0)

您的价格实体有误。如上图Refer this image

所述,dialogflow中有一条规则