The lab partner that does things right!
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.
- Sign into the AWS management console(how to create an account: http://docs.aws.amazon.com/lambda/latest/dg/setting-up.html)
- Click on 'Services' in the top left corner of the screen and choose Lambda
- Click 'Create a Lambda Function'
- Press skip when presented with example functions
- Set the trigger to 'Alexa Skills Kit'
- Name the Function and add a description where the space is provided and Set 'Runtime*' to 'python 2.7'
- Change 'Code entry type' to 'Upload a .zip'
- Clone this repository to your machine
- run the 'create_deployment.py' script. This should create a folder and .zip file in your deployments directory
- On the create Lambda function page under 'Code entry type' click 'upload' and upload the zip that 'create_deployment' created
- In the 'Handler*' box change 'lambda_function.lambda_handler' to 'main.lambda_handler'
- Set 'existing role' to 'lambda_basic_execution'
- Press 'Next' and then 'Create Function'
- On the 'Triggers' tab click 'Alexa Developer Portal'. (Copy the ARN in the top right corner)
- Press 'Alexa Skills Kit' then click 'Add a new Skill'
- Name the skill, then set the 'invocation name' to 'Jarvis'. Click Next
- In the 'Interaction_Model' folder open 'sample_utterances.txt','genie_intent_schema' and 'custom slot types'.
- Set the corresponding sections to the text in the files. Click Next
- 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!
In order to use Jarvis the user must first log in. Login can be done in two ways.
- Through a simple voice command: 'Alexa ask Jarvis, Login user {UserName}'
- Through the Bluetooth Login feature
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'