Build an AI based chatbot for your website or app using Wit.ai

Messengerx.io Wit Demo

In this tutorial, We will show you how you can create a simple chat app (chatbot) using Python , Wit.ai and MessengerX.io.

Requirements

  1. Python
  2. Flask
  3. Wit.ai Server Access Token
  4. MessengerX.io Free Chatbot Token

Clone the wit.ai sample template repository

Here you will need to clone the template repository.

git clone https://github.com/machaao/machaao-wit-template.git
cd machaao-wit-template
pip install -r requirements.txt

Basic Training with Wit.ai

  1. Log on to Wit.ai
  2. Create a new app
  3. Open the chatbot
  4. Open Traits from left sidebar
  5. Click on Add Train
  1. Select “Add built-in traits”
  1. Select “wit/bye” and “wit/greetings”
  1. Open Settings
  2. Copy “Server Access Token”

Creating a Chat App on MessengerX.io

To host the chat app on your website, will need to get a token from MessengerX.io.

Follow this below tutorial to create the same and get an API token.

How to get API Token for MessengerX.io Chat App Marketplace?

Configuring your chat app server

  1. Create “.env” file in root directory of the project
WIT_ACCESS_TOKEN=<YOU-WIT-ACCESS-TOKEN>
MESSENGERX_API_TOKEN=<YOU-MESSENGERX-API-KEY>
MESSENGERX_BASE_URL=https://ganglia-dev.machaao.com
  1. machaao run -p 5000 -t <MESSENGERX API TOKEN>

If every this went good, you chat app will be accessible at https://dev.messengerx.io/<chat-app-name>

Here are some other articles on creating and deploying chat apps on MessengerX.io

  1. AI Chatbot using RASA and MessengerX.io
  2. Create a trivia chatbot with Node.js and Heroku
  3. Build deeply personalized chatbots at production scale

Leave a Reply Cancel reply