Closed Dayjo closed 7 years ago
Hello,
I managed to get this working on our fork as I made a fix to allow slots() to return null when it's empty, Amazon was erroring when it was ; slots: []
(https://github.com/pallant/alexa-app/commit/1504615188d7b9956c989647e833ce8ebe54c335)
My code works like so;
// Confirm if you want to restart
if (!$request->getConfirmationStatus() || $request->getConfirmationStatus() == 'NONE') {
$speech = new Speech('Are you sure?');
return $response->setSpeech($speech)->withDirective(new ConfirmIntent())->endSession(false);
}
// restart the game
elseif ($request->getConfirmationStatus() == 'CONFIRMED') {
// Do the restarting
return $this->restartedResponse($request, $response);
}
// Don't restart thegame
return $response->setSpeech(new Speech("Ok, no problem, you can continue when you're ready."))->endSession(false);
Hello,
Thanks for the great library. I'm currently trying to get Confirm Intent to work, but Alexa seems to hate the syntax or something.
I'm doing the following;
Which gives the response;
This is how it's set up in the Skill Builder.
I just get the classic exception occurred session ended request back;
I've read through the Amazon docs on the Dialog Model etc but still struggling to grasp what I'm doing wrong.
Any assistance would be fantastic!