I bought an Amazon Echo, so I used the time of the year-end and New Year holidays to try out skills. I'm used to Java, so I wrote it in Java to give it a quick try.
In order to learn the basics, I first made it while reading the Amazon document and looking at the information of those who have already posted. https://developer.amazon.com/ja/alexa-skills-kit
Anyway, I can see that it looks like this if you look at the sample source, so while looking at the document and source. https://github.com/amzn/alexa-skills-kit-java
The one I made is posted on github. https://github.com/ewai/amazon-echo-ask-sample
Skills that tell you information about the site called Oisix (Maybe only the members can understand it ...) If you tell me, it will scrape and read out useful information from the site.
① Alexa! Open "Oisix"! ② Call out the function
It is a simple flow.
Calling a function | Reacting keywords | Processing content |
---|---|---|
Tell us about this week's feature! | Special feature | It scrapes the list of special pages of this week from the menu and reads it aloud. |
Tell us about this week's sale items! | Sale, discount | It scrapes the sale page and reads out products with a 30% discount or more. |
Tell us about this week's VIP products! | VIP | It reads out the products on the VIP page. |
The first call seems to take more than 10 seconds. From the second time, it will react immediately. Over time, the startup will slow down again. It may be good if the skill is used very often, but it is not so, so it seems that some measures are necessary. Call it regularly.
If the design changes and the id or class changes, it needs to be repaired. ..
If you make it a little more general and make a WEB maintenance screen, it seems that you can use it at any store. I don't understand the necessity and I can't put any effort into it.
Recommended Posts