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:
- 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.
- 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...