<commit_before># Facebook Chat Bot Demo

This demo shows the manual integration with [Facebook Messenger](https://developers.facebook.com/),
[API.ai](https://console.api.ai), and [Open Weather Map API](http://openweathermap.org/).

This bot allows you to have a small talk on Facebook Messenger.
If you ask about weather, the bot returns with the current condition in a certain city.

![Facebook scan code](https://github.com/girliemac/fb-apiai-bot-demo/blob/master/public/images/fb-bot.gif)<commit_msg>add readme<commit_after># Facebook Chat Bot Demo

This demo shows the manual integration with [Facebook Messenger](https://developers.facebook.com/) and 
[API.ai](https://console.api.ai) using webhook.

This bot allows you to create, join, or leave a group on Facebook Messenger.
However, to use it, you'll have to open a server. (It's closed now. I used [ngrok](https://ngrok.com) to open one)
Also, change the urls in both facebook messenger and api.ai. (as shown below)



![alt tag](http://giphy.com/embed/ejf3B2gPKOaJ2)
![alt text](//images/gif/demo1.gif "Demo1")
![alt text](//images/gif/demo2.gif "Demo2")

<iframe src="//giphy.com/embed/rlSoFIsDJcQM" width="480" height="528" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
{'fraction_non_alphanumeric': 0.1362179487179487, 'fraction_numerical': 0.011217948717948718, 'mean_word_length': 4.863849765258216, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6449864', 'n_tokens_mistral': 422, 'n_tokens_neox': 396, 'n_words': 130}