This is an example how to build a simple Alexa skill using Claudia Bot Builder. Bot Builder will handle the parsing and response packaging for the most common scenarios, and you can use the full Alexa API for more advanced processing. To configure your bot with this new interface, use --configure-alexa-skill
while doing claudia update
.
This simple skill just spells out English language phrases, and shows how to use simple text requests/responses and more complex Alexa API features. See it in action
To try it out, follow these steps:
- Create a new Alexa Skills app at from the Amazon Developer Console
- On the Interaction Model screen of the app setup, create the intents and utterances
- On the Configuration screen of the app setup, select HTTPS integration
- run
npm run create
in this project to deploy the chat bot, and copy the endpoint URL it prints out, then paste to the HTTPS endpoint input box in the app setup screen in the Amazon Developer Console - add a name to your chatbot when NPM deployment asks, then complete the deployment process
- Complete the app setup in the Amazon Developer Console
- You can enable the skill for your Amazon account in the Test tab, and try it out. For example, say 'Alexa, ask Spelling Bee how do you spell Magic'
This bot keeps no user information.
The MIT License (MIT)
Copyright (c) 2016 Gojko Adzic, Alexander Simovic, Slobodan Stojanovic
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.