Send Messages to Your Skill
Note: Sign in to the developer console to build or publish your skill.
For out-of-session requests, your app or service can use the Skill Messaging API to send message events to your skill. To use the API, your app must have an access token that gives your app access to your skill on behalf of the customer.
Out-of-Session interaction
Complete the following steps to access the skill outside of a voice request from your app or service.
- Use the Get access token with skill credentials operation to retrieve an LWA access token. In the request body, set the scope to
scope=alexa:skill_messaging
.Note: If you manage your skill with the CLI or REST API, you can still see the skill ID, client ID, and client secret values in the Alexa developer console. - Your app or service can make an asynchronous call to your skill by using the Skill Messaging API. Include the access token from the previous step and the
userId
value obtained from an earlier customer voice interaction. The Skill Messaging API calls the skill back with the customer consent token.
Related topics
Last updated: Aug 07, 2024