question

John Schettino avatar image
John Schettino asked

ask, tell launch phrases and the meaning of "specific command"

Among the launch phrases shown here https://developer.amazon.com/public/solutions/devices/echo/alexa-app-kit/docs/getting-started-with-the-alexa-appkit#available-launch-phrases Ask and Tell are the most natural phrases for kicking off stuff, but each includes this note: [i]note that this phrase must always be used with a specific command [/i] It seems like I can ask/tell using utterances that include Slots, so I'm not sure what's meant by specific command?
alexa skills kit
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

James Chivers avatar image
James Chivers answered
Hi John, You can mentally replace 'command' with 'action', or at least I do :) As I understand it - if you're using Open, Launch, Start or Talk To - you can initiate your app without providing an action for it, e.g.: "Launch Awesome App" ...and then have your backend respond with something like: "Go ahead, how can I help?" ...and so the flow starts. But, Ask and Tell phrases must be used along with an action for your app to take, e.g.: "Ask Awesome App to tell me a joke" ...or... "Tell Awesome App to put the kettle on" You cannot say a phrase like: "Ask Awesome App" ...without completing the sentence with an action to invoke. Hope that makes sense :)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
I figure that's how it works, James. But, lacking the hardware, I'm uncertain how it works at the protocol level. When Echo starts your app in this mode, do you get a LaunchRequest followed by an IntentRequest, or does it just dive in and send an IntentRequest?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

R. Labanca avatar image
R. Labanca answered
Intent alone. It's mentioned somewhere in the docs and I observed that's how it works.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

John Schettino avatar image
John Schettino answered
Ah gotcha. Didn't notice that was the differentiator, makes sense. I'm still finding the launch word phrasing to be a little stilted, wish we had a bit more flexibility in defining the whole phrase or the lead-in wording. It's really the pair of words that is the "launch word" ASK {app name} TO TELL {app name} TO so your stuff always follows "to" The other 4 need "AND" to reliably match too, at least in my experience.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

James Chivers avatar image
James Chivers answered
Yes, you've got it. The AND matching in the other app invocation phrases is definitely a must too. It's a little clumsy, but it works - at least for now until maybe they re-jiggle how apps are started to improve the UX. Here's some ideas from R. Labanca on keyword and suffix app invocation that you might find interesting: https://forums.developer.amazon.com/forums/thread.jspa?threadID=5449&tstart=0
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.