Reputation: 2913
I am building an alexa skill. But I do not like to say the skill name like "Alexa ask [Skill Name] to [Do Action]" everytime I want to use it. I know sessions help in overcoming this to some extent. I found after googling that a session can be kept open for 8 seconds of inactivity. Here are my questions:
Can we control the length of the session? I do not want the session to end after 8 seconds (or whatever time Amazon has set). I want to customize this time. Actually, it would be best if it closes after the user tells it to. Is there a way do it?
Is there a way to make alexa invoke a skill basing on intent? For e.g. If I say "Alexa, book a cab for me " it should directly start Uber skill without me requiring to tell it explicitly to use Uber.
Upvotes: 2
Views: 515
Reputation: 4387
No, we cannot configure the session-out
time. Its 8 seconds and if you have a reprompt
you will get few more seconds. However, you can try some hacks like playing a silent audio for sometime in the background. But you will have to use the wake-up word "Alexa" in between to give a command.
Yes, Name-free Interaction
can be enabled using CanFulfillIntentRequest
request type. This feature is currently available for English (U.S.) skills only and is offered as a public preview/beta and may improve or change.
More info on Name-free Interaction here
Upvotes: 4