GithubHelp home page GithubHelp logo

alexa-samples / skill-sample-python-fact Goto Github PK

View Code? Open in Web Editor NEW
119.0 26.0 152.0 385 KB

An Alexa Skill Sample showing how to build a fact skill in Python.

License: Other

Python 58.55% PowerShell 20.71% Shell 20.74%
ask-sdk-for-python alexa-skill-sample beginner

skill-sample-python-fact's Introduction

Build an Alexa Fact Skill in ASK Python SDK

This Alexa sample skill is a template for a basic fact skill.

What Your Skill Will Do

A fact skill for Alexa is a "Hello, World" example. You provide a list of interesting facts about a topic, and Alexa will read one of those facts to your user when they start your skill. The purpose of building this skill is to teach you how the different pieces of the Alexa development process fit together, while still producing an interesting, useful skill that others can enjoy.

This Alexa skill template helps you create your first fact skill. Your users will be able to say things like:

"Alexa, ask Superhero Facts for a new fact."
"Alexa, start Baseball Facts."
"Alexa, ask Titanic Facts to give me another fact."

Alexa will respond to all of these requests with responses like these:

"Here's your superhero fact: Iron Man's armor used to include roller skates."
"Here's your baseball fact: Ralph Kiner is the only player ever to lead the league in homers for seven years in a row — his first seven years as a major league player."
"Here's your Titanic fact: The ship burned around 600 tons of coal a day – hand shoveled into its furnaces by a team of 176 men. Almost 100 tons of ash were ejected into the sea each day."

Get Started

Additional Resources

Community

Tutorials & Guides

  • Voice Design Guide - A great resource for learning conversational and voice user interface design.

Documentation

skill-sample-python-fact's People

Contributors

ajot avatar akersh-s avatar aszk avatar camiwilliams avatar franklin-lobb avatar hyandell avatar jbnunn avatar letmypeoplecode avatar nikhilym avatar reaganmcf avatar ronwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skill-sample-python-fact's Issues

Error in Lambda function using python 3.6

While following the Lambda Function tutorial I encountered an error. The LaunchRequest testevent response is this:

Response:
{
"errorMessage": "Unable to import module 'lambda_function'"
}
Function Logs:
Unable to import module 'lambda_function': No module named 'ask_sdk_core'

How do i fix this?

Code is not fact skill

Hi, Can you please upload correct code for fact similar to one in nodejs skill-sample-nodejs-fact?
The name of the repo is misguiding as the python file has sample code for quiz.

Thank you

Documentation Update

Please update the document that this sample will only work in N. Virginia region and not in other region

`dialogState` is not changing to `COMPLETED`

The dialogState always remains either "STARTED" or "IN_PROGRESS", it is never switched to "COMPLETED". There have been multiple reports of the same issue. See these (https://stackoverflow.com/questions/48897675/the-last-slot-in-an-alexa-skill-filled-by-the-dialog-model-always-throws-an-issu, alexa/alexa-skills-kit-sdk-for-nodejs#177)

Here is the JSON Input generated by my skill in the Skill Tester. Please see the section where even after confirming the slots the dialogState is still "IN_PROGRESS".

Here is my complete code. The issue may be in line 109 or 339 (If it's in my code).
Please tell me what should I do?

Zip only contents of folder (in WIndows)

Zip the contents of the skill_env folder. Remember to zip the contents of the folder and NOT the folder itself.

How do i do this? In windows? Because when I zip it, the whole directory is zipped to give skill_env.zip

Import Module Error

when I'm trying to run this code it shows unable to import module 'lambda'.

Certification not passed

I used the same procedure.
I only changed the data(facts)

I got the following feedback.

  1. After the skill completes a task, the session remains open with no prompt to the user. The skill must close the session after fulfilling requests if it does not prompt the user for any input.
  2. When invoking the skill with one or more of the intent(s) or sample utterances, the skill’s response is irrelevant to the request or contains an error.

Wrong tutorial - New Intends doesn't work

Following this tutorial results in these problems:

  • "open -invocation name-" --> Alexa speaks the first phrase
  • "Alexa, ask -invocation name- to -intent phrase-" -> Alexa speaks EXCEPTION_MESSAGE

Submitting it to publish gets refused with that comment:
The example phrases that you choose to present to users in the Alexa app must be selected from your sample utterances. For example: "Alexa, ask {your invocation name} to {sample utterance present in your intent}."Please see our documentation for more information on ensuring your sample utterances support invocation phrases. Please also see our blogpost for more guidance on creating example phrases.

documentation: Interaction Model

documentation: Interaction Model link not working
"
In the textfield provided, replace any existing code with the code provided in the Interaction Model, then click "Apply Changes" or "Save Model"."
hold an invalid link

I have created a custom skill, how can I invoke the Intent?

I have created a custom skill, and add a Intent, I want to invoke the Intent by speaking.
the custom skill name is : media center
the Sample Utterances of the Intent is : open video box

now, I say : alexa, open media center
the alexa response as I set in the Console;
then I say : open video box
then alexa will invoke the Intent. It works well.
But, I want to combine "skill name" and "Sample Utterances of the Intent" in a sentence, it does not work!
for example, I say : alexa, ask media center for open video box,
or I say : alexa, open video box in media center,
it does not work, alexa cannot undersdand what I speak, I want to know why, and how can I invoke the Intent in the second way.

Calling the Invoke API failed with message: Rate Exceeded.

Hi There,

I am fairly new to this, so apologies if this is a basic fix... I get stuck on section 2.8.

When I click the 'test' button, I get the error message:
"Calling the Invoke API failed with message: Rate Exceeded."

Is this a problem? Am I going to have problems later on if I don't resolve this? How can I resolve this?

Thanks for any help people can give! and please let me know if there is any more info you need.

Unrefrenced slot

when I try to build my bot im getting the following issue.
"The slot "ability" in intent "capability" is not referenced in any slot or intent sample."

multiple locales and internationalization in the skill ?

In the description it says this Fact Skill template

Demonstrates use of multiple locales and internationalization in the skill.

I find this lacking in the tutorial.
There are the data files for multiple languages,
but no instructions on how to access the locale and select the correct response accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.