Skip to content

Repository files navigation

Jarvis lab assistant: Alexa/Amazon Echo Skill

The lab partner that does things right!

What is Jarvis?

Jarvis is an Alexa/Amazon Echo Skill that can walk you through the Gel Electrophoresis experiment and store data for your retrieval in the future.

Installation

  1. Sign into the AWS management console(how to create an account: http://docs.aws.amazon.com/lambda/latest/dg/setting-up.html)
  2. Click on 'Services' in the top left corner of the screen and choose Lambda
  3. Click 'Create a Lambda Function'
  4. Press skip when presented with example functions
  5. Set the trigger to 'Alexa Skills Kit'
  6. Name the Function and add a description where the space is provided and Set 'Runtime*' to 'python 2.7'
  7. Change 'Code entry type' to 'Upload a .zip'
  8. Clone this repository to your machine
  9. run the 'create_deployment.py' script. This should create a folder and .zip file in your deployments directory
  10. On the create Lambda function page under 'Code entry type' click 'upload' and upload the zip that 'create_deployment' created
  11. In the 'Handler*' box change 'lambda_function.lambda_handler' to 'main.lambda_handler'
  12. Set 'existing role' to 'lambda_basic_execution'
  13. Press 'Next' and then 'Create Function'
  14. On the 'Triggers' tab click 'Alexa Developer Portal'. (Copy the ARN in the top right corner)
  15. Press 'Alexa Skills Kit' then click 'Add a new Skill'
  16. Name the skill, then set the 'invocation name' to 'Jarvis'. Click Next
  17. In the 'Interaction_Model' folder open 'sample_utterances.txt','genie_intent_schema' and 'custom slot types'.
  18. Set the corresponding sections to the text in the files. Click Next
  19. Chose 'Lambda ARN' for 'endpoint*' and paste your functions ARN in the space provided. Click Next

Now the skill should be set up for use on your account!

Using Jarvis

In order to use Jarvis the user must first log in. Login can be done in two ways.

Once the session has started, the user can do a few things.

  • Open an old experiment for data retrieval or continuation(Experiment ID is required)
  • Start a new experiment.
  • Ask who the current user is
  • Logout

Voice Commands

  • All voice commands Jarvis understands can be found in the 'sample_utterances.txt' file. (in 'Interaction_Model' folder)
  • Any word enclosed in {} are key words that the user must provides.
  • The text presented before the phrase is not be said. It is their only for the Lambda functions use. (signifies intent)
    • Example: 'ExperimentIntent this is an experiment intent'. The phrase is 'This is an experiment intent' not 'ExperimentIntent'

Documentation

About

Code pertaining to Amazon Echo based lab assistant.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages