Skip to content
The Alexa Skills Kit SDK for Python helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Branch: master
Clone or download
nikhilym Delete persistence attributes without checking setter (#99)
This commit fixes the delete persistence attributes method call in attributes manager
to call the delete item method even if the persistence attributes set boolean is not
available. Since delete item is idempotent and there might be cases where skill devs
might have to delete the attributes even before retrieving them, this needs to be
fixed.

The commit also adds the documentation for delete attributes call.
Latest commit 2ec659f Jun 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Adapt PR-Template to match other SDKs Mar 12, 2019
ask-sdk-core Delete persistence attributes without checking setter (#99) Jun 11, 2019
ask-sdk-dynamodb-persistence-adapter Release 1.10.1. For changelog, check CHANGELOG.rst May 30, 2019
ask-sdk-runtime Release 1.10.1. For changelog, check CHANGELOG.rst May 30, 2019
ask-sdk-webservice-support Update os specific verifier constant path (#94) Jun 5, 2019
ask-sdk Release 1.10.1. For changelog, check CHANGELOG.rst May 30, 2019
django-ask-sdk Release 0.1.1. For changelog, check CHANGELOG.rst Apr 30, 2019
docs Delete persistence attributes without checking setter (#99) Jun 11, 2019
flask-ask-sdk Release 0.1.1. For changelog, check CHANGELOG.rst Apr 30, 2019
samples Updating links in documentation. Mar 24, 2019
scripts/ci Set custom user agent correctly, run webservice tests on tox Apr 30, 2019
.gitignore Add japanese documentation for the SDK Aug 6, 2018
.travis.yml Add os specific builds in tox (#98) Jun 10, 2019
CHANGELOG.rst Release 1.10.1. For changelog, check CHANGELOG.rst May 30, 2019
CODE_OF_CONDUCT.md Creating initial file from template Apr 19, 2018
CONTRIBUTING.md Creating initial file from template Apr 19, 2018
LICENSE Creating initial file from template Apr 19, 2018
NOTICE Creating initial file from template Apr 19, 2018
README.ja.rst Update Japanese README doc with sample skills, webservice support and… May 29, 2019
README.rst Fix apl speak item command link to developer docs Apr 19, 2019
requirements.txt Initial commit of Alexa Skills Kit SDK for Python Jun 27, 2018
setup.cfg Initial commit of Alexa Skills Kit SDK for Python Jun 27, 2018
setup.py Add webservice support packages source code and documentation Apr 18, 2019
tox.ini Add os specific builds in tox (#98) Jun 10, 2019

README.rst


Alexa Skills Kit SDK for Python

English | 日本語

The ASK SDK for Python 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

Package Version
ask-sdk-runtime Version Downloads
ask-sdk-core Version Downloads
ask-sdk-dynamodb-persistence-adapter Version Downloads
ask-sdk Version Downloads
ask-sdk-webservice-support (Beta) Version Downloads
flask-ask-sdk (Beta) Version Downloads
django-ask-sdk (Beta) Version Downloads

Technical Documentation

Language Docs
English Read the docs english
日本語 Read the docs japanese

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 documentation for the model classes can be found here.

Samples

Hello World (using Classes)

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.

This sample shows how to create a skill using the Request Handler classes. For more information, check the Request Processing documentation.

Hello World (using Decorators)

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.

This sample shows how to create a skill using the Request Handler Decorators. For more information, check the Request Processing documentation.

Color Picker

This is a step-up in functionality from Hello World. When the user provides their favorite color, Alexa remembers it and tells the user their favorite color.

It allows you to capture input from your user and demonstrates the use of Slots. It also demonstrates use of session attributes and request, response interceptors.

Fact

Template for a basic fact skill. You’ll provide a list of interesting facts about a topic, Alexa will select a fact at random and tell it to the user when the skill is invoked.

Demonstrates use of multiple locales and internationalization in the skill.

Quiz Game

Template for a basic quiz game skill. Alexa quizzes the user with facts from a list you provide.

Demonstrates use of render template directives to support displays on Alexa-enabled devices with a screen.

Device Address

Sample skill that shows how to request and access the configured address in the user’s device settings.

Demonstrates how to use the alexa APIs using the SDK. For more information, check the documentation on Alexa Service Clients

Fact with In-Skill Purchases

Sample fact skill with in-skill purchase features, by offering different packs of facts behind a purchase, and a subscription to unlock all of the packs at once.

Demonstrates calling monetization alexa service and using ASK CLI to enable in-skill purchasing.

City Guide

Template for a local recommendations skill. Alexa uses the data that you provide to offer recommendations according to the user's stated preferences.

Demonstrates calling external APIs from the skill.

Pet Match

Sample skill that matches the user with a pet. Alexa prompts the user for the information it needs to determine a match. Once all of the required information is collected, the skill sends the data to an external web service that processes the data and returns the match.

Demonstrates how to prompt and parse multiple values from customers using Dialog Management and Entity Resolution.

High Low Game

Template for a basic high-low game skill. When the user guesses a number, Alexa tells the user whether the number she has in mind is higher or lower.

Demonstrates use of persistence attributes and the persistence adapter in the SDK.

Audio Player

Project that demonstrates how to use AudioPlayer interface and PlaybackController interface for building audioplayer skills in Alexa. The SingleStream skill sample demonstrates how to create a live radio skill, along with localization support. The MultiStream skill sample demonstrates how to create a basic podcast skill that can play multiple, pre-recorded audio streams.

Pager Karaoke

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

Alexa Capabilities supported by SDK

Preview

Hosting Skills on Non-Lambda Resources

SDK provides ask-sdk-webservice-support package, that allows hosting skills as custom web services. It also provides framework specific adapters under flask-ask-sdk and django-ask-sdk packages, to integrate skills on the respective frameworks and deploy as web service.

More information on how to use these packages can be found on this documentation link.

Warning

These features are currently in Beta. The interface might change when the features are released as stable.

Got Feedback?

  • We would like to hear about your bugs, feature requests, questions or quick feedback. Please search for existing issues before opening a new one. It would also be helpful if you follow the templates for issue and pull request creation. Please follow the contributing guidelines for pull requests!!
  • Request and vote for Alexa features! Remember to select the category as ASK SDK if your feature request is specific to SDK.

Additional Resources

Other Language Alexa Skills Kit SDKs

Community

Tutorials & Guides

  • Voice Design Guide - A great resource for learning conversational and voice user interface design.
You can’t perform that action at this time.