How to store the data for the Alexa skill I am developing?

不想你离开。 提交于 2019-12-04 07:30:32

You'll likely need to set up account linking on your skill first. It can be a bit of a process, but check out this page here. I would suggest using Google or Amazon as your OAuth provider.

Account linking allows you to associate a particular user and their echo with an entry in a database you own. So after you have a user linked up with your database, you have two options.

Option 1 is (I believe) you can query your database directly from the Lambda service using any of the available languages.

Option 2, set up a web service that can get and set information in the database using some sort of RESTful service, and then make calls to that service instead.

It's not easy to get this kind of thing done, but It's very possible.

Edit: In addition, if you're looking to provide information on a lot of diseases, consider researching if there is an already available database of diseases, and if APIs exist to access it. This could save a lot of time for you.

DynamoDB seems to be the easiest way. Just add the aws-java-sdk-dynamodb dependency and interact with the database using AmazonDynamoDBClient if you are using Java. You can just define the tables that you want using @DynamoDBTable annotations. Go to https://console.aws.amazon.com/iam/home?#roles and create a role and add permission AmazonDynamoDBFullAccess permission and you are all set.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!