How to handle out of domain utterances in Amazon Alexa
up vote
0
down vote
favorite
I had different intents in the skill, I am using php as service. Everything is working fine, but if the user ask utterances that are not configured in any of the intents, it must go to the else part. Eg code is as follows:- if($EchoReqObj->request->type=="LaunchRequest"){ $text = "Testing launch"; $array = array("version"=>"1.0","response"=>array("outputSpeech"=>array("type"=>"PlainText","text"=>$text),"shouldEndSession"=>false)); echo json_encode($array); } else if(getting the intent name){//Do something.} else{ $text = "In else part"; $array = array("version"=>"1.0","response"=>array("outputSpeech"=...