Course Webpage: EE596 -- Conversational Artificial Intelligence
- Please follow the Getting Start for a quick walkthrough on DynamoDB.
- Create a DynamoDB table for storing conversation logs
- Table Name: EE596Lab3ChatData
- Partition Key: sessionId (String)
- Sort Key: turnIdx (Number)
- Create another DynamoDB table for storing user information
- Table Name: EE596Lab3UserData
- Partition Key: userId (String)
- Clone the repository
$ git clone https://github.com/hao-fang/ee596_spr2018_lab3.git - Create a new Alexa Lambda function
ee596_spr2018_lab3and upload the zip file to this Lambda function. (see Lab 1 -- Task 2 for steps).You may also use the script$ cd lambdaFunc $ zip -r ../lambdaFunc.zip *upload_lambda_func.sh. - You need to grant DynamoDB access to your Lambda function.
- In your AWS Management Console, go to
IAMdashboard. - In the section
Roles, you can find the role you created for your lambda function (lambda_basic_execution). If you don't know which role you used for your lambda function, go to your lambda function page foree596_spr2018_lab3and go the sectionExecution role. - Click the
lambda_basic_executionrole, and chooseAttach policy. - Search for
AmazonDynamoDBFullAccess, and attach it to the role. - This allows your lambda function to access your DynamoDB tables.
- In your AWS Management Console, go to
- Change your Lab 2 Alexa Skill's Endpoint ARN to this new Lambda Function.
- Now talk to your Alexa Skill and monitor the two DynamoDB tables.
In this task, you will create DynamoDB tables for your project based on what you learned from Task 1 and Task 2. Explain how you plan to save data and query the tables.
- Task 1:
- Show the DynamoDB table you created.
- Search for a data entry using the query operation.
- Task 2:
- Show the DynamoDB tables you created.
- Explain the
saveSessionTurn,saveUserData,getUserDatafunctions inlambdaFunc/index.js. - Make sure you know how to use corresponding APIs in Python.
- Task 3 (Optional):
- Explain your plan about using DynamoDB tables for your project.
- Create these DynamoDB tables.
- Explain the
saveSessionTurn,saveUserData,getUserDatafunctions inlambdaFunc/index.js. - Explain the DynamoDB tables you plan to use for your project. Describe the partion key, the sort key (if any), and individual attributes.