Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Alexa Skills Projects

You're reading from   Alexa Skills Projects Build exciting projects with Amazon Alexa and integrate it with Internet of Things

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781788997256
Length 250 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Madhur Bhargava Madhur Bhargava
Author Profile Icon Madhur Bhargava
Madhur Bhargava
Arrow right icon
View More author details
Toc

Designing the CryptoOracle skill

Now that we know what cryptocurrencies are and why are they are getting all the attention lately, we can design the CryptoOracle skill.

CryptoOracle will work via the following steps:

  1. A user launches the skill:
Figure 5.1: Launching the CryptoOracle skill

The launch response is fetched from the Lambda and played to the user, as shown in the preceding diagram.

  1. A user asks Alexa about the price of any cryptocurrency:
Figure 5.2: Querying the cryptocurrency price via the CryptoOracle skill

This request will do in the following:

    • Launch an intent to fetch the price with the cryptocurrency name as a parameter
    • The Lambda receives the intent and extracts the cryptocurrency name
    • The Lambda fetches the cryptocurrency price via the coinmarketcap API using the currency name
To know more about the coinmarketcap API, navigate to https://coinmarketcap...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image