0

I see that this question explains how to call another intent : How to call Intent B from intent A in AWS lex?

However the confirmIntent responds with a text message that we pass to the function. How can I elicit a slot instead of the text message?

Im trying to call Intent B's response card to fill a slot value from Intent A. Is this possible?

Uchiha
  • 1
  • 3

1 Answers1

0

I've tested your scenario with a Lex V2 bot that has a Python Lambda function configured.

In my bot, IntentB uses the Lambda function as its fullfilment code hook.

The function returns the following response which instructs Lex to elicit the required slot in IntentA.

{
   "sessionState":{
      "dialogAction":{
         "slotToElicit":"Number",
         "type":"ElicitSlot"
      },
      "intent":{
         "confirmationState":"None",
         "name":"IntentA",
         "state":"InProgress"
      }
   }
}

My response is built using the formats as described in the Lex developer Guide - Lambda Response Format.

Reegz
  • 511
  • 1
  • 6
  • 13