node.jsalexa-skills-kitalexa-slot

Grabbing what a user says without a carrier phrase. Is there an alternative to Amazon.SearchQuery?


For the skill I'm working on, I am able to grab what a user says. However, i need a "carrier phrase" with Amazon.SearchQuery. At a certain point in my skill, a Carrier Phrase is not exactly user friendly. It would be helpful for the user to just be able to say something rather than having a carrier phrase in front of it. Like "What's {term}" . I'd like to be able to put just "{term}" in that intent, but it's not possible.

I read that Amazon.LITERAL used to be a solution to this, but it's deprecated now and is only supported for current skills in production.


Solution

  • Just use a space as the carrier phrase with AMAZON.SearchQuery: " {term}".