Skip to content

Commit

Permalink
Update 2017-07-25-How-I-Used-Deep-Learning-to-Train-a-Chatbot-to-Talk…
Browse files Browse the repository at this point in the history
…-Like-Me-&barryclark#40&#83orta&barryclark#41.html
  • Loading branch information
adeshpande3 authored Jun 13, 2018
1 parent 3f23d25 commit 967a0ee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ <h2><span style="text-decoration: underline;"><strong>Deploying our trained Tens
<p>You can check out the Flask server code <a href="https://github.com/adeshpande3/Chatbot-Flask-Server" target="_blank">here</a> and the chatbot&rsquo;s index.js file <a href="https://github.com/adeshpande3/Facebook-Messenger-Bot/blob/master/index.js" target="_blank">here</a>.</p>
<h2><strong><span style="text-decoration: underline;">Testing it Out!</span></strong></h2>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>If you&rsquo;d like to chat with this bot, just go ahead and go to this <a href="https://m.me/Adits-FB-Chatbot-822517037906771/">link</a></strong> <strong>or go to this <a href="https://www.facebook.com/Adits-FB-Chatbot-822517037906771/" target="_blank">Facebook page</a> and hit the Send Message button</strong>. It might take a while to respond for the first time, since the server needs to start up.</p>
<p style="color:#FF0000">UPDATE 6/13/18: FB changed some of their settings with bots so I am not sure if the Messenger bot works. However, you can also send POST requests to the server using CURL in your command prompt. Basically, go to your Terminal/Cmd Prompt and type in "curl -i -X POST -H 'Content-Type: application/json' -d '{"message": "INSERT YOUR MESSAGE HERE"}' https://flask-server-seq2seq-chatbot.herokuapp.com/prediction". The response will be the answer that my trained chatbot would send.</p>
<p style="color:#FF0000">UPDATE 6/13/18: FB changed some of their settings with bots so I am not sure if the Messenger bot works. However, you can also send POST requests to the server using CURL in your command prompt. Basically, go to your Terminal/Cmd Prompt and type in:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; curl -i -X POST -H 'Content-Type: application/json' -d '{"message": "INSERT YOUR MESSAGE HERE"}' https://flask-server-seq2seq-chatbot.herokuapp.com/prediction The response will be the answer that my trained chatbot would send.</p>
<p style="color:#FF0000">The response will be the answer that my trained chatbot would send.</p>
<p>&nbsp;It&rsquo;s probably difficult to judge whether or not the bot actually does talk like me (since not a lot of you have talked to me online LOL), but I&rsquo;d say it&rsquo;s doing alright! The grammar is passable, considering social media standards. You can cherry pick a couple good results, but most are pretty nonsensical. Here are some of the ones which help me sleep better at night because Skynet definitely isn&rsquo;t happening any time soon.</p>
<img src="/assets/Chatbot11.png">
<p>I thought the first one was especially funny because &ldquo;juju green&rdquo; actually seems to be a combination of <a href="https://en.wikipedia.org/wiki/Juju_Smith-Schuster" target="_blank">Juju Smith-Schuster</a>, a Steelers wide receiver, and <a href="https://en.wikipedia.org/wiki/Draymond_Green" target="_blank">Draymond Green</a> who is a forward for the Golden State Warriors. Interesting combination.</p>
Expand Down

0 comments on commit 967a0ee

Please sign in to comment.