Echo Dot (3rd Gen) - Smart speaker with Alexa - Charcoal

Use your voice to play a song, artist, or genre through Amazon Music, Apple Music, Spotify, Pandora, and others. With compatible Echo devices in different rooms, you can fill your whole home with music.

Buy Now

Wireless Rechargeable Battery Powered WiFi Camera.

Wireless Rechargeable Battery Powered WiFi Camera is home security camera system lets you listen in and talk back through the built in speaker and microphone that work directly through your iPhone or Android Mic.

Buy Now

A quick start tutorial to setting up an AI chatbot using for Android & Mobile Web for GoLang Programmers


Abhishek Raj
  • Golang — Basic
  • Ngrok (local tunnel to your laptop for development purposes)
  • MessengerX Wit template
  • Platform API Token / Key
  • GNU Screen / Terminal
  • Javascript Enabled Browser (Google Chrome)

Today, we will learn how to set up a conversational AI Chatbot using and Machaao Chatbot Template on platform.

So, assuming we have all the above covered — Let’s get started!

Visit then login or signup on the platform. Login

Fill out the form shown below and create a new chat bot, place None in webhook URL and image URL and then press create.

MessengerX Create App

Click on Settings and copy the API Key, you will need it later.

Now, we need API Token from So, sign up on Create App

Image Source

Click on Create > Your App > Settings then copy the server access token, that is your Wit API Token.

1. Conversational AI: Code/No Code

2. Chatbots 2.0: Simplifying Customer Service with RPA and AI

3. Question Answering on Medical conversation

4. Automating WhatsApp with NLP: Complete guide

git clone messenger-wit-gols

You can download ngrok from ngrok — download

Download & Install the Go-Lang stable version from here:

go get get

ngrok allows you to expose a web server running on your local machine to the internet.

We will be setting & API token as environment variable.

# For Linux and Mac OSexport MachaaoApiToken=<YOUR-MESSENGERX-API-TOKEN>export WitApiToken=<YOUR-WIT-API-TOKEN># For Windows (PowerShell)$env:MachaaoApiToken = '<YOUR-MESSENGERX-API-TOKEN>'$env:WitApiToken = '<YOUR-WIT-API-TOKEN>'


You can even directly set the respective API Token in the main.go file.

Now, navigate to the working directory messenger-wit-go

Open bot.js in an editor and at line 17 place your API-KEY, copied from portal.

screengo run main.go

Press ‘Ctrl+a’ then ‘d’ to detach from the screen.

Note: If you are using VPS then just add PORT 3000 to inbound rules and skip the below step.

screenngrok http 4747

Note: Copy the forwarding url. You will need this.

Press ‘Ctrl+a’ then ‘d’ to detach from the screen.

Log on to and click on settings to update the chatbot webhook URL.

Paste <FORWARDING-URL>/machaao_hook or paste the VPS domain:4747 and save it.

That’s it.

The Chatbot will also be available on the web.

If everything went well you can see your chatbot at<chatbot_name> OR<chatbot_name>

To integrate the chatbot into your website use iframe.

<iframe src=”<chatbot_name>”width=”400″ height=”600″></iframe>

We will now use to train our chatbot to understand the input and extract useful information from the user input message. We have to input sample input text and define what type of data we want.

Type the sample text, highlight the sample data you want to capture then select from the entity or create one, then click on Train and Validate.

Entity detects the similar data and captures it.

After training few data headover to settings to test the AI, if it is getting desired value or not.

In the HTTP API section enter your query then send a GET request to the API.

You would get result similar to this.

Curl output

After getting desired entity value, you are good to go.

With and, you can create and deploy your scalable ChatBot in no time, as we already know the scalability and performance of GoLang.

Github Repo: MessengerX-Wit-Go


Checkout my other tutorials too

Read More


Please enter your comment!
Please enter your name here