Alexa Skills Kit

Contains classes used by the Alexa Skills Kit.

License

License

GroupId

GroupId

com.amazon.alexa
ArtifactId

ArtifactId

alexa-skills-kit
Last Version

Last Version

1.8.1
Release Date

Release Date

Type

Type

jar
Description

Description

Alexa Skills Kit
Contains classes used by the Alexa Skills Kit.
Source Code Management

Source Code Management

https://github.com/amzn/alexa-skills-kit-java.git

Download alexa-skills-kit

How to add to project

<!-- https://jarcasting.com/artifacts/com.amazon.alexa/alexa-skills-kit/ -->
<dependency>
    <groupId>com.amazon.alexa</groupId>
    <artifactId>alexa-skills-kit</artifactId>
    <version>1.8.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.amazon.alexa/alexa-skills-kit/
implementation 'com.amazon.alexa:alexa-skills-kit:1.8.1'
// https://jarcasting.com/artifacts/com.amazon.alexa/alexa-skills-kit/
implementation ("com.amazon.alexa:alexa-skills-kit:1.8.1")
'com.amazon.alexa:alexa-skills-kit:jar:1.8.1'
<dependency org="com.amazon.alexa" name="alexa-skills-kit" rev="1.8.1">
  <artifact name="alexa-skills-kit" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.amazon.alexa', module='alexa-skills-kit', version='1.8.1')
)
libraryDependencies += "com.amazon.alexa" % "alexa-skills-kit" % "1.8.1"
[com.amazon.alexa/alexa-skills-kit "1.8.1"]

Dependencies

compile (12)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.0.1
com.fasterxml.jackson.core : jackson-annotations jar 2.6.2
com.fasterxml.jackson.core : jackson-core jar 2.6.7
com.fasterxml.jackson.core : jackson-databind jar 2.6.7
org.apache.commons : commons-lang3 jar 3.0
commons-codec : commons-codec jar 1.6
commons-io : commons-io jar 2.4
joda-time : joda-time jar 2.0
com.amazonaws : aws-lambda-java-core jar 1.0.0
log4j : log4j jar 1.2.17
org.slf4j : slf4j-api jar 1.7.0
org.slf4j : slf4j-log4j12 jar 1.7.0

test (11)

Group / Artifact Type Version
junit : junit jar 4.11
com.fasterxml.jackson.module : jackson-module-jsonSchema jar 2.9.1
org.bouncycastle : bcprov-jdk15on jar 1.58
com.google.guava : guava-testlib jar 18.0
org.skyscreamer : jsonassert jar 1.2.2
org.powermock : powermock-api-mockito jar 1.5.6
org.powermock : powermock-module-junit4 jar 1.7.3
org.hamcrest : hamcrest-library jar 1.3
org.powermock.tests : powermock-tests-utils jar 1.6.6
org.powermock : powermock-api-mockito-common jar 1.6.5
org.powermock : powermock-api-support jar 1.6.5

Project Modules

There are no modules declared in this project.


Alexa Skills Kit SDK for Java

The ASK SDK for Java makes it easier for you to build highly engaging skills, by allowing you to spend more time on implementing features and less on writing boiler-plate code.

Package Versions

Module Maven
ask-sdk Maven Central
ask-sdk-core Maven Central
ask-sdk-lambda-support Maven Central
ask-sdk-servlet-support Maven Central
ask-sdk-dynamodb-persistence-adapter Maven Central
ask-sdk-apache-client Maven Central
ask-sdk-freemarker Maven Central
ask-sdk-runtime Maven Central

Alexa Features Supported by SDK

Preview Features

The following features are released as public preview. The interfaces might change in future releases.

Technical Documentation

Models

The SDK works on model classes rather than native Alexa JSON requests and responses. These model classes are generated using the Request, Response JSON schemas from the developer docs. The source code for the model classes can be found here.

Samples

Hello World

This code sample will allow you to hear a response from Alexa when you trigger it. It is a minimal sample to get you familiarized with the Alexa Skills Kit and AWS Lambda.

Color Picker

This is a step-up in functionality from Hello World. It allows you to capture input from your user and demonstrates the use of Slots.

How To

This sample will walk first-time Alexa skill developers through all the required steps involved in creating a parameter-based skill using a template called ‘Minecraft Helper’. Ask how to craft an item in the game Minecraft, and this skill will give you instructions. The skill showcases:

  • Custom slot type: demonstrates using custom slot types to handle a finite set of known values
  • Dialog and Session state: Handles two models, both a one-shot ask and tell model, and a multi-turn dialog model.
  • Usage of ResourceBundle to handle internalization

City Guide

Template for a local recommendations skill. Alexa uses the data that you provide to offer recommendations according to the user stated preferences. This Skill showcases:

  • Custom slot type: demonstrates using custom slot types to handle a finite set of known values
  • Dialog and Session state: Handles two models, both a one-shot ask and tell model, and a multi-turn dialog model.
  • Usage of ResourceBundle to handle internalization
  • Calling external APIs from the skill.

Movie Quotes

This Alexa sample skill is a basic Movie Quotes Quiz skill that makes use of Template Resolver feature of the Java SDK. A user can open up the skill, select a movie from a list, and then hear partial quotes from the selected movie. Then, they have to complete the quote.

Pet Match

Pet Match matches the user with a pet. When launched, this Alexa Skill will prompt the user for the information it needs to determine a match. Once all of the required information is collected, it will send the data to an external web service which processes the data and returns the match. Through this workshop, you will learn how to use advanced Alexa Skills Kit features to create and configure an Alexa Skill and AWS Lambda. The skill showcases the usage of Request and Response interceptors.

Tutorials

States Quiz

This tutorial will guide you in building a fully-featured skill. The skill features Built-In and Custom slots, as well as state management. The skill you build with this tutorial can be customized to build your own game.

Airplane Facts

This tutorial will demonstrate how to write skills for Echo Show and Echo Spot in Java using the Alexa Skills Kit (ASK) SDK v2.

Pager Karaoke

This tutorial demonstrates 3 features of APL: the Pager Component, SpeakItem Command, and accessing device characteristics in the skill code.

Other Language Alexa Skills Kit SDKs

Alexa Skills Kit SDK for NodeJS

Alexa Skills Kit SDK for Python

Got Feedback?

Request and vote for Alexa features here!

com.amazon.alexa

Amazon

Versions

Version
1.8.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.1
1.4.0
1.3.1
1.3.0
1.2
1.1.3
1.1.2
1.1.1
1.1