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

Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas