In my Alexa-Skill I ask the user a Yes/No Question (Whether he likes to hear the news or not) - in the yes-part I would like to start the NewsIntent as if the user had invoced it manually.
The idea behind it came from Justin Jeffress: https://developer.amazon.com/de/blogs/alexa/post/9ffdbddb-948a-4eff-8408-7e210282ed38/intent-chaining-for-alexa-skill
handler_input.response_builder.add_directive(DelegateDirective('NewsIntent')).speak(speech_text)
return handler_input.response_builder.response
When I test it in the developer console I receive the speach_text but then I'm informed that an error occured.
This is the JSON-output of it:
{
"body": {
"version": "1.0",
"response": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>My pleasure!</speak>"
},
"directives": [
{
"type": "Dialog.Delegate",
"updatedIntent": {
"name": "NewsIntent",
"confirmationStatus": "NONE",
"slots": {}
}
}
],
"type": "_DEFAULT_RESPONSE"
},
"sessionAttributes": {
"IntentOrigin": null
},
"userAgent": "ask-python/1.13.0 Python/3.6.9 ask-webservice django-ask-sdk ask-webservice django-ask-sdk"
}
}
Has anybody any idea how to solve this? Python does not throw any exception in that case. (It is running under Django)
Thank you!