Steps to build Alexa Chatbot from scratch

  1. Sign up for an Amazon developer account, if you don’t have one
No alt text provided for this image

2. Click on Amazon Alexa highlighted below.

No alt text provided for this image

3. Upon clicking Amazon Alexa, you will land on below page

No alt text provided for this image

4. Click on Create Alexa Skills

No alt text provided for this image

5. You will land to below-shown page. Click on Start a Skill 

No alt text provided for this image

You will land on the below-mentioned page. Another way is escaping the last step, you can reach tho this step by click on this URL Alexa console

No alt text provided for this image

7. Since I have a new Amazon account, I have to Create Skill for the Alexa as highlighted below

No alt text provided for this image

. I am dividing this step into four sub-steps to make it simpler.

i> Create a new skill

Give a name to the skill, I have named mine Test_Skill 

No alt text provided for this image

ii> Choose a model to add to your skill

There are many ways to start building a skill. You can design your own custom model or start with a pre-built model. Pre-built models are interaction models that contain a package of intents and utterances that you can add to your skill.

No alt text provided for this image

iii> Choose a method to host your skill's backend resources

I am going with default method “Provision your own”

No alt text provided for this image

iv> Scroll to the top and click on Create skill

No alt text provided for this image

9. Choose a template

Select a quick start template to get started with a predefined skill or simply "Start from scratch" and click on Choose.

No alt text provided for this image

10. This way you reach to the Alexa developer console dashboard

No alt text provided for this image

11. Click on Invocation

No alt text provided for this image

By default, it will take the skill name as Skill Invocation name. I have changed that to father of deep learning. Then click on Save Model

No alt text provided for this image

12. Click on the Endpoint

No alt text provided for this image

Now, we need to provide the endpoint to Alexa console but first we need to setup an endpoint.

13. Creating a node server

Create a server which can accept POST requests on default location i.e. “/”.

There are so many techniques for creating a server, I personally prefer node

I assume that you’ve node, npm and Visual studio code already installed

For the specific requirements of this tutorial, we will create a Hello World node app following the steps below:

●       Run npm init on a terminal and when asked for the package name Alexa

●       Follow the terminal wizard

●       Run cd Alexa

●       In the package.jsonfile

●       Run npm i express http -save and this will add the following entry in the package.json file:

No alt text provided for this image

●       Set value to index.js of the main key in the package.json file

●       Add a file index.js on the same level

●       àdd the following code to the index.js file:

No alt text provided for this image

●       Set value of scripts to { “start”: “node index.js” }

●       Run npm start on the terminal

●       If everything is fine, you must see the following prompt:

No alt text provided for this image

Copy the SSL enabled forwarded link, in the above screen https://6d0d6e60.ngrok.io is the SSL link and provide the link in the Enter URL link

Select HTTPS, and under SSL certificate type drop down select the 2nd option:

My development endpoint is a sub-domain of a domain that has a wildcard certificate from a certificate authority

Click Save Endpoints

No alt text provided for this image

Click on JSON editor and provide the following model:

No alt text provided for this image

Click on Save Model and click on Build Model

No alt text provided for this image

Save and build the model

Once, the skill model is built - we need to test it. Click on the Test tab and toggle ON the “Test is enabled for this skill”.

No alt text provided for this image

Testing Alexa skill

That’s it, you’ve created an Alexa bot connected to your locally running node project.

References: https://developer.amazon.com





Sumit Jha

Building ElintData AI high performance Datacenter Deep Tech Crypto Quantum Cyber Security AI safety platforms and NLP genAI RAG LORA SFT PEFT RLHF ML/AI Data Products Visiting Prof. and Industry Expert at IIT IIM SPJIMR

5 年

要查看或添加评论,请登录

Ashish Chandra Jha的更多文章

  • ABC of Marketing

    ABC of Marketing

    Marketing is a huge word starting from Data Mining to product or service sell. In other words, Marketing is the step by…

    4 条评论
  • Strategy for Designing E-Commerce Website

    Strategy for Designing E-Commerce Website

    People used to do lots of Market research before launching an E-Commerce website. They use Google, Bing, Yahoo etc…

  • Payment Gateways for E-commerce in India

    Payment Gateways for E-commerce in India

    As more Indians step up to make online payments, there is a proliferation of payment gateways and mobile wallets these…

    4 条评论
  • E-Commerce in India

    E-Commerce in India

    E-Commerce in India According to the survey, India's e-commerce market, which stood at $2.5 billion in 2009, reached $8.

    5 条评论

社区洞察

其他会员也浏览了