https://chatbotnewsdaily.com/build-a-facebook-messenger-chat-bot-in-10-minutes-5f28fe0312cd
build Facebook chatbot
Build a Facebook Messenger chat-bot in 10 minutes
Let’s build a chat-bot using FB Messenger, API.ai and PythonAnywhere in about 10 minutes. No server setup, 60 lines of code — easy.
Ingredients we’ll need:
an api.ai account
a PythonAnywhere account
your Facebook account
Once you’ve registered for these, we can begin.
Please follow the steps in order as the FB Messenger setup requires our webApp to respond.
Create an ‘agent’ on api.ai, call it ‘MyAgent’
Click ‘Domains’ to import a few conversational domains: “Small Talk” and “Wisdom”.
Click on “Intents” and let’s create a simple intent:
and its response: 42
Click “Save” then test it by using “Try it now…” in the upper right.
We now have a simple chat-bot.
To call it from our code we’ll need its “Client access token”. To see this information, click on the gear to the right of ‘MyAgent’ in the upper-left.
The next step is to run a WebApp (our ‘webHook) using Python and Flask on pythonanywhere. This will be the back-end to our chat-bot.
Add a new WebApp.
Provide a prefix for your WebApp: some-name.pythonanywhere.com
Select ‘Flask’ for a framework, on Python 3.5
You should see a default flask_app.py in your WebApp files directory. Click to edit it.
Here’s our 60 lines of code to handle the flow between FB messenger and api.ai:
use your FB and api.ai credentials
You will need to pip install packages (eg. apiai) in your pythonanywhere Bash console, as follows:
installing apiai in Bash console
Also remember to restart your pythonanywhere web app anytime you alter the code. Click on the circular button in the upper-right, as shown below:
pythonanywhere shortcuts
If everything is in place you should be able to ping your new Flask app:
be sure to use your URL prefix instead of ‘gk.’
Now we can setup a FB page and messenger setup.
This will take 5 quick steps.
Step 1: create a new FB page
(click on the link above to create a new page) Give it a name, like ‘BuildBot10mins’, or something less idiotic.
Step 2: create a FB App
Click “Skip and Create App ID” at the top right. Then create a new Facebook App for your bot and give your app a name, category and contact email.
Step 3: create a new access token
Create a new token (for the FB page created in step 1):
Copy this new Access Token and Paste it in your pythonanywhere code (line 4: under # FB messenger credentials)
Step 4: create our WebHook, click “Setup Webhooks”
Provide your Callback URL (be sure to use https://)
Use the same verify token specified in your pythonanywhere code.
be sure to specify https:// for the Callback URL
Step 5: subscribe to our WebHook
Select your newly created FB page and click ‘Subscribe’, this connects our FB Page with the FB Messenger App we just setup.
don’t forget this last step
What did we just do? Let’s review our steps:
1 (handling responses)
In the first step we created a really simple chat-bot on api.ai, it has some basic conversational abilities, and knows the meaning of life. You can use whatever chat-bot framework you like.
2 (the back-end)
In the second step we built a Python Flask app on pythonanywhere, this allows us to host a WebApp without building a server. You can use other serverless platforms such as Amazon Lambda.
3 (the front-end)
Our third step was setting up FB Messenger and connecting a WebHook between it and our WebApp. You can also build the same bot using SMS.
The WebApp is the broker between incoming messages, the chat-bot interface and outgoing responses.
Makes sense? Good. Now you can chat with your bot, find it by searching for its name:
then scroll down the page to ‘Message Now’
There you have it — a FB Messenger chat-bot in 10min
CDC banned words
CDC banned words
diversity," "fetus," "transgender," "vulnerable," "entitlement," "science-based" and "evidence-based."
Start MINING Bitcoin
Cryptocurrency Developers
tech
Cryptocurrency gig
Check out this great gig I’ve got from #fiverr http://www.fiverr.com/s2/6038f86669?utm_source=com.google.android.gm_Mobile
Facebook https://m.facebook.com/?soft=bookmarks
NewsPages see if links are okay

Guam News8
Wyoming news6

Wisconsin news6

West Virginia news8

Washington news12

Virginia news7

Vermont News15

Utah News8

Texas News15

Tennessee News13

South Dakota News18

South Carolina News7

Rhode Island News9

Oregon News9

Oklahoma News9
Ohio news6

North Dakota News18

North Carolina News8

New York News10

New Jersey News16

New Hampshire News16

Nevada News

Nebraska News8

Montana News8

Missouri News8

Mississippi News7

Minnesota News12

News in Michigan20+

Maryland News20+

GuamFix8

Louisiana news20+

Kentucky News11

Kansas news20+

Iowa news10

Indiana news9

Illinois news3

Idaho news20

Georgia news8

Florida News8

Delaware News

Connecticut News

California News8

Arkansas News11

Alabama News6

Hawaii News20+

Alaska News12
News Arizona20+
News NewMexico7
Colorado news18
NewsPages
ADA Against Food Store – Americans With Disabilities Act – Jury Demand
Americans With Disabilities Act Jury Demand
On Dec 14, 2017 7:33 AM, "Ray Hackett" <3659745> wrote:
https://www.uslegalforms.com/prodpages/US-000266.htm%7Cfdlaw