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

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ