Code Monkey home page Code Monkey logo

alexa-wolfram-alpha's Introduction

alexa-wolfram-alpha

An example Alexa Skill to query Wolfram Alpha, written in Python.

Dependencies

Quick Start

  1. Create an AWS Lambda function using alexa-wolfram-alpha.py as the code
    • You can follow the official Amazon instructions to give you a hand
    • Put your Wolfram Alpha AppID into an environment variable called "WOLFRAM_ID" and also put your Alexa Skill Identifier in an environement variable called "SKILL_ID". For help view the documentation
    • You can use test_event.json as your test template
    • Consider extending the timeout beyond the default of 3 seconds (I raised mine to 10, which is likely excessive, but eliminated some sporadic errors e.g. #1)
  2. Create a new Alexa Skill using intent_schema.json and sample_utterances.txt
  3. Test that it's working from the web interface during the creation of the skill
  4. Test that it's working with your Echo

Development

Feel free to fork and hack on this.

The setup.cfg file is just in case you have a homebrew installed python2 and want to include other 3rd party libraries in your code, in which case you have to upload a zip of your code as the lambda function. To do so, from your root directory do something like:

  1. pip2 install LIBRARY_NAME -t .
  2. zip -r $(date +%s)-alexa-wolfram-alpha.zip .

Also, take a look at Amazon's official sample code for a lambda-based Alexa Skill in Python, named alexa-skills-kit-color-expert-python. (I found it very helpful to reference but couldn't find an easy way to view the source online, so I copied it to a GitHub Gist.)

Acknowledgements

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.