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

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

MEssengerX.io
MessengerX.io Graphic

In this tutorial, I am going to show you how you can get a Free API Token for creating and deploying chat app on MessengerX.io Marketplace.

Before starting the tutorial, I would like to talk about MessengerX.io. It is a marketplace for chat apps with more than hundreds of thousand of users and growing where you can create, deploy and earn from your chat apps.

Log onto MessengerX.io

Visit and Log onto MessengerX.io Portal.

MessengerX.io Portal Login

Create New App

Click on New App, to create a chat app.

MessengerX.io Portal Create App

Fill in the details

Fill the details of your chat app, then click Create.

Copy the API Token

Click Settings then copy your API Token.

In a few minutes, you have got your API Token for deploying your chat app and start earning from your chat apps.

Here are some 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

Check out some of our chat apps.

  1. Bello News – A Personal News Assistant
  2. MedBot (Beta) – Ask questions about 1000+ diseases
  3. CricBuddy – A Personal Cricket Assistant
  4. Muscle & Fitness – An ultimate source for full workout plans
  5. Witty – A meme bot