Image for post
Image for post
Photo by Tyler Nix on Unsplash

Since March 4, Facebook Messenger has put chatbots in trouble. Why ?

  • It is more difficult to send a delayed message after 24 hours. You have to go through tags which cannot be used in all cases of use.
  • Chat bots were central to Facebook Messenger’s strategy three years ago. Now they’re being hidden from view in the app along with games and businesses. Facebook Messenger is now removing the Discover tab as it focuses on speed and simplicity instead of broad utility like China’s WeChat. [Techcrunch]

How to Build a Twitter Text-Generating AI Bot With GPT-2

Turing-NLG: A 17-billion-parameter language model by Microsoft

Towards a Conversational Agent that Can Chat About…Anything

CoVoST: A Diverse Multilingual Speech-To-Text Translation Corpus


Image for post
Image for post
Photo by Austin Distel on Unsplash

Prerequisites

  • Have NodeJS and NPM installed on your machine
  • Knowledge of Javascript

Purpose

The goal is to build a chatbot with an NLP system. We will use a system native to the NewBot Framework but we will see how to add its own

Compatibility

All platforms, i.e.

  • Facebook Messenger
  • Google Assistant
  • Amazon Alexa
  • Slack
  • Telegram
  • Viber
  • Skype
  • etc.

and directly in your browser (offline)

Start a new project

  1. Install NewBot CLI :
npm install -g newbot-cli

2. Create a new project :

newbot new superbot

superbot is the name of your file

3. Go to this project:

cd superbot

4. Start a local server :

newbot serve

5. Go to…


Image for post
Image for post

Prerequisites

  • Have NodeJS and NPM installed on your machine
  • Knowledge of Javascript

We use NewBot Framework. Read the following tutorial to familiarize yourself with it :

Purpose

We create a chatbot / voicebot that allows us to play a mini-quiz with him

Demonstration

You can test this chatbot on the following link:

Compatibility

All platforms (NodeJS, Browser, Messenger, Google Asssitant, etc.)

Start a new project

  1. Install NewBot CLI :
npm install -g newbot-cli

2. Create a new project :

newbot new quiz

quiz is the name of your project (directory)

3. Go to this project:

cd quiz

4. Start a local server :

newbot serve

5. Go to…


Image for post
Image for post

How to create an universal chatbot or voice, easily? I suggest you use NewBot Framework. Here is a quick overview:

Prerequisites

  • Have NodeJS and NPM installed on your machine
  • Knowledge of Javascript

Purpose

We will create a simple chatbot that can work on all possible platforms. In our case, the chatbot will ask for the user’s first name and can trigger an intention with an NLP system.

Compatibility

All platforms, i.e.

  • Facebook Messenger
  • Google Assistant
  • Amazon Alexa
  • Slack
  • Telegram
  • Viber
  • Skype
  • etc.

and directly in your browser (offline)

Start a new project

  1. Install NewBot CLI :
npm install -g newbot-cli

2. Create a new project :

newbot new…


(for Messenger, Alexa, Google Assistant, etc.)

Image for post
Image for post

Prerequisites

  • Have NodeJS and NPM installed on your machine
  • Knowledge of Javascript

Purpose

We will create a simple chatbot or voicebot to tell a joke. This is a common skill but we add internatiolization. The chatbot can tell the joke in the language of the user

Compatibility

All platforms, i.e.

  • Facebook Messenger
  • Google Assistant
  • Amazon Alexa
  • Slack
  • Telegram
  • Viber
  • Skype
  • etc.

and directly in your browser (offline)

Above all

Install NewBot CLI to take advantage of command lines

npm install -g newbot-cli

Create a project

newbot new <your directory name>

Go to the generated folder

You can test the chatbot with the command newbot serve.


Image for post
Image for post

Before November 12, 2019. Enter the Alexa Skills Challenge: In-Skill Purchasing to Compete for Over $120,000 in Prizes : https://alexaisp.devpost.com

Prerequisites

Purpose

We will create a skill that allows you to make a purchase or cancel a purchase in Amazon Alexa

in-skill purchasing lets you sell premium content such as game features and interactive stories in skills with a custom interaction model. Buying these products in a skill is seamless to a user. They may ask to shop products, buy products by name, or agree to purchase suggestions you make while they interact with a skill. …


Image for post
Image for post
Photo by Tim Bennett on Unsplash

In the family of frameworks to create chatbots, we find Microsoft BotFramework, Botkit and ChatterBot

Here we are talking about a new framework: NewBot Framework. Why use it? What does it offer more than the frameworks mentioned above?

Here are 5 good reasons to use NewBot Framework!

1) To create conversational sites and PWA

Most frameworks direct development to specific platforms. NewBot Framework gives full attention to the conversation, no matter the platform. Since it’s a Javascript framework, we can run the chatbot directly in the browser

Is it possible to create an offline conversational site? Like a Progressive Web App?

  • MS BotFramework: No
  • Botkit: No
  • ChatterBot…

Image for post
Image for post

Prerequisites

  • Have NodeJS and NPM installed on your machine
  • Knowledge of Javascript
  • Get Nasa Api Token on https://api.nasa.gov/index.html
  • You must have a Facebook account
  • You must have a Facebook page

For simple tests on the NASA API, you can just recover this token: NNKOjkoul8n1CH18TWA9gwngW1s1SmjESPjNoUFo

Purpose

We will create a chatbot for Facebook Messenger that displays a picture of the space

Demonstration

Compatibility

All platforms, i.e.

  • Facebook Messenger
  • Google Assistant
  • Amazon Alexa
  • Slack
  • Telegram
  • Viber
  • Skype
  • etc.

Above all

Install NewBot CLI to take advantage of command lines

npm install -g newbot-cli

Create a project

newbot new <your directory name>

Go to the generated folder

You can test the chatbot with the command newbot serve. See…


(bonus : add units tests)

Image for post
Image for post

Prerequisites

Purpose

In a few lines of code, we will create a conversation for Alexa. You will see, it’s very simple and fast!

Compatibility

Amazon Alexa but also other platforms (Google Assistant, Messenger, etc. and even on your website!)

Above all

Install NewBot CLI to take advantage of command lines

npm install -g newbot-cli

Create a project

newbot new <your directory name>

Go to the generated folder

You can test the chatbot with the command newbot serve. See below

Create Alexa Skill

  1. Go to Amazon Developer Console

2. Click to Create Skill…


Image for post
Image for post

Prerequisites

  • Have NodeJS and NPM installed on your machine
  • Knowledge of Javascript

Purpose

We want to create a chatbot quickly while benefiting from NLP (natural Language Processing). The conversation is shown in the picture above

Compatibility

All platforms, i.e.

  • Facebook Messenger
  • Google Assistant
  • Amazon Alexa
  • Slack
  • Telegram
  • Viber
  • Skype
  • etc.

and directly in your browser (offline)

Above all

Install NewBot CLI to take advantage of command lines

npm install -g newbot-cli

Create a project

newbot new <your directory name>

Go to the generated folder

You can test the chatbot with the command newbot serve. See below

Create main skill

main.converse is the conversational script of the main skill. …

About

NewBot

Next generation to create chatbots in Javascript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store