'Can I add a reprompt to an ongoing Alexa skill

Can I add a reprompt to an ongoing Alexa skill...I am trying to extend the life of the session since it dies before I get a response...

This is my code...

function getDeliveryDateEnquiry(intent, session, fnCallback ) {

                var speechOutput = "";
                var intentSlots = intent.slots
                var bShouldEndSession = undefined

var oDeliverlyDateObject =
{
    DeliveryDate: intentSlots.DeliveryDate.value,
    ArticleNumber: intentSlots.ArticleNumber.value,
    ProductionQuantity: intentSlots.ProductionQuantity.value

}

var deliverlyDateInquiryResponse = Promise.resolve(instance.post(`api/SO/DeliverlyDateInquiry`, oDeliverlyDateObject));

deliverlyDateInquiryResponse.then(onfullfilled => {

    console.log("Work Order data =>", onfullfilled.data)

    speechOutput = "Your order will be delivered on " + onfullfilled.data.DeliveryDate.DemandDate;
    bShouldEndSession = undefined;
    

    fnCallback(intent,
        buildSpeechletResponse(intent.name, speechOutput, "What my Other command", bShouldEndSession)
    );
},
    onrejected => { 

        speechOutPut = "Error occured ";

        bShouldEndSession = undefined;

        fnCallback(intent,
            buildSpeechletResponse(intent.name, speechOutPut, "What my Other command", bShouldEndSession)
        );
    }
)

}



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source