Start Crypto Price, and ask it for the price of either Bitcoin or Ethereum. Crypto Price will provide you with the latest price. You can ask for the price in either USD or EURO. Skill use Cryptonator API 'https://www.cryptonator.com/api' for getting current crypto price.
You can test this skill using an Amazon Echo device or at Echosim or reverb app on android and IOS. you can test this skill using:
-
You can open the skill by saying "Alexa, open Crypto Price."
-
the skill will be invoked with introduction and then it will ask you 'Which Crypto Price would you like to know? Bitcoin or Ether.'.
-
upon user request skill will fetch the data from cryptonator API and will give you the information.
-
Here are the things you can say.
Repeat/Say Again - To hear the last statement again. Help - To get detailed instructions.
- Create an Alexa Skill in the Alexa Skill Developer Console and define the interaction models as well as the intent schema. This sets up the framework for the behavior of the skill.
- Create an AWS Lambda function that interfaces with the skill and translates the various intents into requests that connects to your service. This lambda function is written in Node.js.
Open Your developer account or click on the link given Amazon developer console.
-
Create a new skill. name it
Crypto Price
. under the model for skill select custom and click on create skill. -
Choose template
start from scratch
and click on choose.
Give the invocation name as Crypto Price
. under the invocation headline from the right side list.
-
Click on the "JSON Editor" item under Dashboard on the left side of the skill builder.
-
In the textfield provided, replace any existing code with the code provided in the
Speech Assets/intentSchema.json
and click on "Save Model". -
Click on the Save Model button, and then click on the Build Model button.
-
Go to http://aws.amazon.com and sign in to the console and choose the Lambda service from the search box. AWS Lambda only works with the Alexa Skills Kit in two regions: US East (N. Virginia) and EU (Ireland).I have choosed Ireland but you can Choose any one of them.
-
Click on the "Create function" button. Select "Blueprints", then choose the blueprint named "alexa-skill-kit-sdk-factskill". And give your function a name.
-
Set up your Lambda function role to "lambda_basic_execution" and click on Create Function.
-
Configure your trigger. Look at the column on the left called "Add triggers", and select Alexa Skills Kit from the list.
-
After you create the function, the ARN value appears in the top right corner.
-
Scroll down to the field called "Function code", and replace any existing code with the code provided in the
src/index.js
. -
Copy the ARN value. The ARN value should be in the top right corner.
-
Go back to the Amazon Developer Portal and select your skill from the list.
-
Open the "Endpoint" tab on the left side and select the "AWS Lambda ARN" option for your endpoint.
-
copy the skill ID and paste it in the trigger section in your AWS Lammbda and paste the ARN copied to the default region just below your skill ID in the endpoint.
-
Click Save endpoints