Amazon Lex v2: After fulfilment, the next action "Closing Response" not working

0

Hello there!

I have trying to create a chatbot with Amazon Lex V2. Im was adjusting the behavior of the bot i encountered with a issue.

I have this flow => Initial Response → Confirmation → Fulfillment (Using a lambda) → Closing Response (X) → End conversation

The fulfillment works as expected, the lambda return the answer to the user/client. So, has next step, i put in Success Response in Fulfillment to redirect to Closing Response. It doens't work

This is the response that i send from the lambda in the fulfillment step:

    sessionState: {
        sessionAttributes: '...',
        dialogAction: {
            type: 'Close',
        },
        intent: {
            name: 'SendCVByEmail',
            state: 'Fulfilled'
        },
    },
    messages: [
        {
            contentType: 'PlainText',
            content: 'sending cv...'
        },
    ],

So.. what could be the reason of the behavior that i explain above? and how to solve it?

I tried to use in type of dialogAction: "Delegate" but still the same.

  • Can you try returning Delegate without messages from the lambda? If you provide DialogAction Close, it will override the next step in the fulfillment success and jump directly to close with the message provided in lambda response

没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则