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

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠