how to build a facebook messenger bot in glitch

source from http://baiaman.com/facebook-chatbot-tutorial
https://developers.facebook.com/docs/messenger-platform/getting-started/quick-start?locale=zh_TW
Messenger Bot

Introduce

The Glitch is free register and build a project website.Provide a free public service and many interested projects,you could test your project online,let’s becutiful feature I love it so much.

This short Facebook chatbot tutorial

will help you to create your own messenger chatbot in just 9 minutes. Your chatbot will be hosted in Glitch (free) and we will use Facebook’s Messenger Platform quick start page as a template.

Step 1. Go to Glitch and click on “Remix This”

Go here and click on the “Remix This” button to create a new Glitch project for you.
loading...

Step 2. Register as a Facebook Developer

Click here to open the Facebook for developers homepage, and follow their instructions to register your developer account.
loading...

Step 3. Create a New Facebook App

Once you register your developer account, you should be able to create an app.
loading...

Step 4. Add Messenger to your Facebook App

Inside of your Facebook app dashboard click on “+ Add Product” button and add Messenger, and link it to your Facebook page (click here to create a new page if you don’t have an existing page).
loading...

Step 5. Generate Your Page Access Token

We will use it in the next step.
loading...

Step 6. Add Your Page Access Token to your Glitch script

Copy your “Page Access Token” from your facebook app and paste it into the .env file in your Glitch project that we created in Step 1.
loading...

Step 7. Make your Glitch Project Private

By default your Glitch project will be visible to everyone. To make it private, click on the “Make Private” button from the “Advanced Options”.
loading...

Step 8. Verify and Save your Webhooks

Get your URL from your Clitch dashboard, add /webhook in the end, and paste it in Callback URL input field. For the Verify Token input field, you can use any token (just make sure the New Page Subscription Verify Token matches Glitch VERIFY_TOKEN).
loading...

Step 9. Subscribe your App to your Page

loading...

Step 10. Connect Your Chatbot to a Google Sheet

Copy this Google Sheet and add your Google Sheet ID to your env. file in your Glitch project.
But After I check ,I found it can’t generate anything ,because it need your google sheet api and credientals
But his code shows nothing about the feature of googlesheet api
loading...

Step 11. Test your Facebook ChatBot

Go to your Facebook page and chat with your bot. To customize your chatbot’s replies edit your Google Sheet from the Step 10.
loading...

If you have any questions related to this post, let me know in the comments below.And you could also do a simple messenger bot by Facebook offical developers’s tutorial.

The next step is developing a messenger bot with NLP