How to create open-ended slot in lex

前端 未结 1 928
执笔经年
执笔经年 2021-01-13 16:35

I\'d like to create a notes/feedback field in my Lex bot, but it appears difficult to do.

It seems like AMAZON.LITERAL used to do this, and current suggestions are t

相关标签:
1条回答
  • 2021-01-13 17:02

    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.

    0 讨论(0)
提交回复
热议问题