Mapping Conditions:

当在slot mapping中使用conditions时,那么slot的填充只会发生在这个form的上下文环境里。使用conditions中的active_loop来指定触发slot 填充的form。可以指定requested_slot,如果不指定,那么当相应的信息被提取时就会填充这个slot,而与form请求哪一个slot无关。

示例如下:

slots:

slot_name:

type: text

mappings:

- type: from_text

intent: intent_name

conditions:

- active_loop: your_form

requested_slot: slot_name

- active_loop: another_form