Reputation: 4685
I'm developing a skill where I want users to be able to fire up the skill by providing a slot value at invocation by telling
Alexa start [skill name] for the [slot value]
In the Alexa simulator, when I enter this as a text I only get <audio response only>
from the simulator.
When I do it in two steps it does work:
Me: Alexa start [skill name]
Alexa: For which election?
Me: For the [slot value]
Alexa: Okay here we go...
Is there something I've missed to setup for it to work?
This is the code:
var newSessionHandlers = {
NewSession: function() {
this.emit(
':ask',
'For which election?',
);
},
ChooseElection: function() {
this.emit(':tell', 'Here we go');
}
}
Upvotes: 2
Views: 1116
Reputation: 4387
There are set of supported phrases for invoking your skill with an intent. Most of them has <connecting words>
that has to be included while invoking a skill with a specific request.
In your case start has to be followed by an and followed by utterence.
ie,
Start <invocation name> and <some action>
Please refer this page for the supported phrases for invoking your skill with an intent.
Hope this helps.
Upvotes: 3