from_intent:

这种mapping会在识别到定义的intent时,使用设定的值来填充slot。如果你不指定intent,那么只要任何不在not_intent里的intent都会导致这个slot的填充。

示例如下:

slots:

slot_name:

type: any

mappings:

- type: from_intent

value: my_value

intent: intent_name

not_intent: excluded_intent