How to create open-ended slot in lex

最后都变了- 提交于 2019-12-01 07:33:56

In my case, feeding random data to the slot did not work. It used to capture only a part of input for the slot or most of the time it assigns NULL to the slot.

To solve this problem, I just made a slot without any data and in the DialogCodeHook I assigned the inputTranscript data into the slot.

slots = intent_request['currentIntent']['slots']
slots['your_slot'] = intent_request['inputTranscript']

Please comment/answer if you find a better way to do this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!