amazon web services - AWS Lex Fulfillment with Lambda does not work in android when I configure Lex with AWS Mobile Hub, How to fix? -
hi i'm new in aws , i'm working aws lex bot, problem configured lex bot fulfillment through lambda function, works on lex test bot when configure lex on aws mobile hub , download android source code , run on android device lex intents works fulfillment lambda function not response anything.
how can resolve thanks
the return flow lambda fulfillment little different in lambda function responsible fulfillment once slots satisfied rather passing client fulfillment. if you'd see message come can change promptusertorespond in conversationalbottextfragment.java (mysampleapp/demo/bots/conversationalbottextfragment) following:
public void promptusertorespond(response response, lexservicecontinuation continuation) { if(!dialogstate.readyforfulfillment.tostring().equals(response.getdialogstate()) && !dialogstate.fulfilled.tostring().equals(response.getdialogstate())) { addmessage(new textmessage(response.gettextresponse(), "rx", getcurrenttimestamp())); readusertext(continuation); } else if(dialogstate.fulfilled.tostring().equals(response.getdialogstate())) { addmessage(new textmessage(response.gettextresponse(), "rx", getcurrenttimestamp())); inconversation = false; } }
Comments
Post a Comment