Creating an Alexa Skill This page will step you through creating an Alexa skill that can be used with the ASC application on your PC. First of all you need to go to the correct Amazon webpage. https://developer.amazon.com/alexa You may need to register before you can get to all of the screens below.
Click ‘Alexa Skills Kit’
Click ‘Start a Skill’
Alexa Skill Building
Stage 1: Alexa Skill - Complete The skill that you’ve created can’t do much at the moment but there are a few default questions you can ask, what else can you do (random responses) how are you (random responses) how do I create phrases how do I create responses how do I launch webpages how do I launch applications how do I control applications how do I set up ports Please note: The above questions are hard coded into the server itself and are not passed to your PC. If you ask your Invocation name anything else then this should appear in light blue text in your PC application provided you have port forwarding set up correctly (Stage 2 & 3). Stage 2: Port Forwarding You need to set up port forwarding on your routers main admin page. Port forwarding is usually found under ‘Advanced’. The ‘Start’ and ‘End’ port should be set to 54656 and the LAN IP address should be to the PC running the application, Select TCP as the protocol. The LAN IP of your PC can be found by going to File | Setup in the application and reading this from the bottom left hand corner of the setup screen. Your WAN address is automatically updated on the server as this may change when or if you reboot your router. When Port forwarding is set up correctly you should see light blue text on the application main window reflecting what you just asked your new skill through any of your Alexa devices. Stage 3: Linking PC command uploads to server Provided that your skill is all working and you have the ASC application installed and running, you should now ask any of your Alexa devices, ‘Alexa ask [Invocation name] for a new activation code’ where this should then appear in your Alexa app on the home page screen. You can wipe across this and copy it, then in the ASC app go to File | Setup and right click-n-paste it into the ‘Activation code’ input box. The code is only used once and will then not appear again. Fill in your email address in the top input box and click ‘Send’. This should then link everything together and you should be ready to create your own phrases, responses and PC control routines. Trouble shooting This area will be constantly updated to offer tips for getting the whole system up and running when users have a few problems. Typing into Amazon test page works but Asking Alexa devices does not: Usually caused if you have set the wrong language for your skill. This should match whatever language is set up in your Alexa app. e.g. English (U.K.) as opposed to English (U.S.). Router rebooted and now nothing works: Check your LAN IP address in File | Setup screen matches what you have set in Port forwarding Ask ‘Alexa ask [Invocation name] for a new activation code’ then copy this from the Alexa app home page and paste this into the File | Setup screen, Click send.
5 mins
1: Name your skill This is simply the name of your skill and not the words used to invoke it into action. e.g. “Home Control Center”
2: Select your language Your Alexa devices will not work in test mode unless you select the correct language the same as is set in your Alexa app
3: Next Click ‘Next’ to continue
1: Select Custom This will and must be a ‘Custom’ skill
2: Create Skill Click ‘Create skill’ button to continue
1: JSON Editor Right click, then ‘Select all’ and then click the delete key to empty this panel out completely.
2: New JSON code Click into the box below, then right click copy. Move into the panel and right click paste.
3: Invocation name After pasting type your own invocation name that will be used to summon your skill between the two double quote marks e.g. “control center” Do not use Alexa command words in your invocation name, open, ask, tell etc.
4: Save & Build Click the ‘Save model’ link at the top then, when saving is completed click ‘Build’. This may take a minute or two.
End Point Click this link to take you directly to the ‘End Point’ page
1: HTTPS Click this link
2: Region URL’s Click into the box below, then right click copy. Move into the URL box and right click paste. Then select ‘from a trusted certificate authority’ in the drop-down list below the URL box. This would be the same for any of the other region settings too.
3: SAVE + JSON Editor Click save at the top and then click the JSON Editor link
1: Test Click the ‘Test’ link to open the test page
2: Enabled Ensure the ‘Enabled’ switch is on
2: Testing Type in here ‘Open [Invocation name]’ e.g. ‘Open control center’ and press return. Alternatively, if you have a mic attached to your PC, click and hold the mic whilst asking ‘Open [invocation name]’. You should get a default welcome message from the server as text and verbally from the built in Alexa simulator. Try asking your Alexa devices, ‘Alexa open [Invocation name]’ Whilst the blue light is still on your Alexa device, try, ‘How are you’ ‘What else can you do’ If the blue light goes off you will need to use your invocation  name e.g. ‘Alexa ask [Invocation name] how are you’ To force Alexa to drop the connection early just ask her to ‘Exit’ when prompted.