Alexa, get skill from LaunchRequest Intent

Nidhin S G

I got 3 skills in my account, eg SkillA, SkillB and SkillC.

I am using an endpoint url to listen to these skills, and my server is common for all the 3 skills. So if I try to invoke a skill by saying open SkillA it invokes LaunchRequest. Same is the case with other 2 skills.

So how would I be able to know which Skill's LaunchRequest was invoked.

My server is ruby with Ralyxa Gem.

Cicil Thomas

For every skill there is a unique Skill ID known as applicationId. Making use of this applicationId from the request JSON you can easily determine from which skill the request came in.

You can find this applicationId under application object in every request from Alexa to your backend.

{
    "version": "1.0",
    "session": {
        "new": true,
        "sessionId": "amzn1.echo-api.session.xxxx-xxxx-xxxx-xxxx-xxxxxxx",
        "application": {
            "applicationId": "amzn1.ask.skill.xxxx-xxxx-xxxx-xxxx-xxxx"
        },
        "user": {
            "userId": "amzn1.ask.account.xxxxxxxxxxxxxx"
        }
    },

...

You can also view the Skill ID from Alexa developers console where your Alexa Skills are listed.

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Calling Another Alexa intent from within LaunchRequest

How to get and use confirmation 'yes' or 'no' for Alexa skill intent response

Alexa skill not sending the correct intent

Alexa Skill - Update Intent programmatically

Amazon Alexa Intent Skill Console

alexa handler syntax for launchRequest

Trigger Alexa notifications from Alexa skill lambda?

Submit intent schema for slots and utterances for an Alexa Skill in JSON form?

Customize slot values of amazon alexa skill intent per session or user

Alexa Skill: Get user location for "work"

Alexa Skill - Is possible to get what user said?

Alexa API skill - nodejs get request not executing

Navigate from one Intent to another Intent in Alexa

How can I delegate the LaunchRequest to an IntentRequest using the alexa-sdk from npm

Alexa Skill: is it possible to have Alexa play a .mp3 from Alexa Developer Console - Alexa Hosted?

Nodejs - Get the instance_url from salesforce oauth response in Amazon Alexa skill or an API to get the instance_url

How to get the account info of the user when the user uses an Alexa Skill

Amazon Alexa Skill Lambda Node JS - Http GET not working

How to get amazon user email with Java in Alexa Skill

Can you prevent users from reviewing your Alexa Skill?

Getting null responce from Alexa skill using Lambda

Alexa skill accessing data from inside the company network

Alexa skill that uses data from an external API with API-KEY

Using sessionAttributes in Alexa Skill

Amazon alexa skill development

Alexa smarthome skill routines

Simple Alexa skill with logging

Amazon Polly in Alexa Skill?

Alexa skill development