Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


A conversational bot along with GUI interactions which enables the user to learn a specific language by interacting with the bot. The project is built using Django framework for messenger platform.


  • A Facebook app and it's page
  • Django
  • Ngrok
  • googletrans

Set up

1. Install Django

$ pip install django==1.10

2. Install Ngrok

$ npm install ngrok

3. Clone the project

$ git clone

4. Install googletrans

$ pip install googletrans

5. Create a Facebook app and it's page

To do this, lets head to the Facebook developer site, create a new app and fill out the relevant details to get our App ID. You can select "Apps for Messenger" as its category.
Next, create a Facebook page for your app. Replace <page_access_token> in messengerBot/ with your Facebook page's access token (which will be given on your app's dashboard)

5. Set up Webhook

First, enter into the main project directory using:
$ cd LanguageBot
Now enter the languageBot directory using:
$ cd languageBot
Run the development server:
$ python runserver
Run ngrok using:
$ ngrok http 8000

Now any outside computer can reach your localhost server at (this can change everytime you run ngrok) which means so can Facebook.

So lets set up the webhook for Facebook. Go to your app dashboard and click on Messenger. Click on "Setup Webhooks" right below "Token Generation" and fill the details:

Callback URL:

Verify Token can be anything. Replace this Verify Token with <verify_token> in messengerBot/

Select messages, messaging_postbacks in Subscription Fields. Now click on "Verify and Save" and your webhook is setup. You should see the green tick. Next, select the page you want your app to be subscribed to and click on Subscribe. Also turn on Built-in NLP for your app. Now your bot is ready to talk! Go ahead and send a message to your Facebook page.


A language learning bot for messenger.



No releases published


No packages published