A set of e-health workshops to apply AWS technologies for health improving. During this workshop we will show how to develop a Nursing Skill for Alexa to ask about your health data and store into DynamoDB tables.
The conversation will be like this:
- You>> Open nursing skill
- Alexa>> Welcome to Alexa Nursing Skill, please tell me your name
- You>> My name is <>
- Alexa>> Welcome <>, you can ask me about your health
- You>> Blood Pressure Input
- Alexa>> What is your sistolic pressure <>
- My sistolic pressure is 115
- Alexa>> What is your diastolic pressure <>
- You>> My diastolic poressure is 75
- Alexa>> Thanks <>
You will learn how to build your own Alexa Skills that can be applied for e-health proposal by taking your health data. As example we provide a complete interaction to ask your name and also your blood pressure. But you will learn how to extend and create your own input interactions for:
- Glucose
- Emotional State
- Weight
- Blood Exam
- User [email protected]
- Password BuildOnAWS
- Start the lab and get your credentials!
- 1. Create Alexa "Nursing Skill" using pre-configured Lambda
- 2. Create your own Lambda Function for Nursing Skill
- 3. Create your own DynamoDB table
- 4. Customizing Nursing Skill
This first part you will learn how to create, configure and test a new Alexa Skill using a pre-existing Lambda function as back-end. After this step you will have your first Healthcare Skill working and then you can create your own Lambda function to customize or extend this skill to store different types of biometric data.
Step #11: We need to provide the Lambda Function ARN in Global Fields. ARN is the address of some existing Lambda function.
Step #12: Let's use our existing Lambda Function with this ARN. This ARN points to our Lambda in our account.
- You>> Open nursing skill
- Alexa>> Welcome to Alexa Nursing Skill, please tell me your name
- You>> My name is <>
- Alexa>> Welcome <>, you can ask me about your health
- You>> Blood Pressure Input
- Alexa>> What is your sistolic pressure <>
- My sistolic pressure is 115
- Alexa>> What is your diastolic pressure <>
- You>> My diastolic poressure is 75
- Alexa>> Thanks <>
Now that we have our own skill using a pre-existing Lambda function that allows any skill to use it, you will learn how to create your own lambda function copying our code and then replace the Lambda ARN in your Alexa Nursing Skill.
- Name: NursingSkill
- Runtime: NodeJS 6.10
- Role: Custom Role
- It will open IAM console to create the role
- IAM Role: lambda_basic_execution
- Policy Name: Create new Role Policy
- Click Allow
- This way any skill can use trigger this Lambda. If you want to restrict you can pick you Alexa Nursing Skill ID and limit the execution for only one skill.
To finish your Nursing Skill using youtr own Lambda Function you must create a DynamoDB table and make sure that Lambda Function has the right permissions.
- Table Name: healthdata
- Primary key: id String
Step #4: Open IAM console to allow your Lambda to access DynamoDB, click Roles and select lambda_basic_execution
You can also create your own Alexa commands by adding new Intents and Utterances: