Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Certification fail feedback] Understanding reprompt usage #353

Open
StErMi opened this issue Jun 6, 2018 · 2 comments
Open

[Certification fail feedback] Understanding reprompt usage #353

StErMi opened this issue Jun 6, 2018 · 2 comments
Labels

Comments

@StErMi
Copy link

StErMi commented Jun 6, 2018

I just received the certification feedback.
Their saying that: "The skill prompts users for an input then immediately closes the session. Make sure the session remains open anytime users are prompted for inputs."

This is my actual code:

response.say(message).reprompt(messageLead).shouldEndSession(false);

and this is the JSON Output:

{
	"body": {
		"version": "1.0",
		"response": {
			"outputSpeech": {
				"type": "SSML",
				"ssml": "<speak>Hi there! Welcome to the Crypto Manager. I can tell you the price and volume of every crypto on more than 115 exchanges and convert them in FIAT or other crypto. Just ask me \"Tell me the BTC price on Kraken\" or \"What's the ETH price in EUR on GDAX\" or even \"What's the LTC volume on Kraken\".</speak>"
			},
			"directives": [],
			"reprompt": {
				"outputSpeech": {
					"type": "SSML",
					"ssml": "<speak>What else would you like to know?</speak>"
				}
			},
			"shouldEndSession": false
		},
		"sessionAttributes": {}
	}
}

And this is what I see in the Skill Test page.

image

Should I see also the reprompt message?
Should I see something that tell me that the session is not ended?

I've no way to test on a real device because in Italy Alexa is still not available.

Thanks!

@tejashah88
Copy link
Member

Generally the reprompt message plays after about 5 seconds of not receiving user input. The general way to verify that it's working is checking the JSON responses and seeing that shouldEndSession is set to false. Also, you can check out echosim.io for testing against a virtual Alexa. Try it out and let us know if the feedback is consistent with what you've experienced.

@trogmaniac
Copy link

Do you add a display directive (for Echo Show) by any chance? In that case the response must not contain a shouldEndSession. IOW, it can't be either true or false, it must be deleted from the response object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants