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

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions