Vai
Vai

Reputation: 353

Using Alexa to query a database

How to query a database using ASK ? I want something like "Hey, Alexa get me the ID numbers of cars whose color is Red and type is Convertible" It should hit my database and get all the corresponding records. Is talking to database using Alexa possible ? If yes, than how ?

Upvotes: 0

Views: 1407

Answers (1)

timguy
timguy

Reputation: 2582

First of all you should understand that the skill consist of 2 parts.

  • The "amazon alexa skill service" which you configure with your intents and slots via the alexa developer console

  • your HTTP REST backend which consist of all the logic and responds to the users. Here you can also call external services (websites, databases) whatever you want.

    • to ease the usage for this defined interfaces Amazon developed some SDKs, eg. for python

    • you can run your python code on a webserver or as amazon lambda service. Here you can make your calls to the database. E.g. you could use the amazon dynamo db.

Best would be to read in general about custom skills and afterwards dig deeper with the links above.

Upvotes: 1

Related Questions