SlideShare a Scribd company logo
1 of 26
Download to read offline
How to Make a FB
Messenger Chat Bot
In 1 Hour with Little or No Programing
Step by Step Video
Video Tutorial
Building a FB Messenger Chat Bot in 1hr
Part 1: Putting Bot on
in the Cloud
Part 2: Connecting your
Bot with FB Messenger
Part 3: Manipulating
Your Bot
What you’ll Need
Part 1: Putting Your
Bot on the Cloud
Download Node.js
We will be using JavaScript and Node.
js for this tutorial.
You do not need to know node.js or be
a coder. Sample code is provided.
Download Node.js: https:
//nodejs.org
Visual Studio IDE
Visual Studios is a very simple and
fund IDE that supports js.
Visual Studios is Free and you can
Download it from Microsoft.
Download: https://code.
visualstudio.com/Download
GitHub Repository
Github is a Great repository for your
code. You can also collaborate with
developers and get sample code.
You can download project sample
code here:
Sign up at: https://github.com/
1. Heroku Hosting
Heroku offers free accounts and is a
great place to host your chat bot.
Sign up at: https://www.heroku.
com
2. Heroku Toolbelt
Download Heroku toolbelt to be able to
launch, stop and monitor instances.
Download: https://toolbelt.
heroku.com
Setting up NPM & Dependencies
1. Open Up Terminal / Command
Line
Make Sure you have latest npm:
sudo npm install npm --global
3. In Command Line:
Install Node Dependency for sending and
requesting messages:
npm install express request body-parser --save
2. Create
Project
Folder
To Initialize npm in Project: npm init
Index.js
This is the main working file for your
app. If you don’t have an index.js file or
code you can do one of the following:
1. Use our Parrot Bot Code
2. Create own Bot App
3. Get Sample Bot Code from
online repository
Using Parrot Bot Index.js File
Step 1: Join FB Chat Bot Group:
https://www.facebook.com/groups/aichatbots
Step 2: Get Files from Group:
https://www.facebook.
com/groups/aichatbots/files/
Step 3: Copy & Past or Download File Named,
“Sample Code for Parrot Bot” and save it as an
index.js file in your Project Folder
OR Get Parrot index.js via email:
click here
Deploy Code to
Heroku
Procfile
Procfile lets Heroku know what files to
run. Creating a Procfile takes one line
of code:
web: node index.js
Save it as ‘Procfile’ in your project.
You can also use procfile sample in
https://www.facebook.
com/groups/aichatbots/files/
In Terminal type:
1. git status //this will show you all of the
files not yet committed to server
2. git add . //this will add new/updated files
3. git commit - -message ‘your message’
//this commits code
4. git push heroku master //this pushes your
code to heroku and deploys itOR Get Parrot Procfile via email:
click here
Congrats, Your App is Alive!!!
1. Go to your Heroku Dashboard
2. Select App then Open it
Part 2: Connecting
Your Bot with FB
FB Developer
Sign up to Facebook Developer
Program
Sign up: https://developers.
facebook.
com/products/messenger/
Creating App in FB
2. Select Basic Setup
3. Select: Messenger Get Started
1. Add
New
App
Save Page Token to
your index.js file
Select Page
Setting up Webhooks
Get Verify Token
from Index.js file
yourdomain.com/webhook/https://yourdomain.com/webhook/
Setting up NPM & Dependencies
1. Open Up Terminal / Command
Line
Trigger FB to Send Messages:
curl -X POST "https://graph.facebook.
com/v2.6/me/subscribed_apps?
access_token=<PAGE_ACCESS_TOKEN>"
2. In Command Line:
Quick Checklist
1. Added New FB App
2. Linked it to FB Page
3. Set up Webook
4. Input Access Token in
index file
5. Curl command?
6. Saved and Pushed changes
to Heroku?
It’s Alive!!!
Go to your Bot’s Corresponding FB Page and Send
your Bot a Message. Try typing ‘hi’ then type ‘yo’.
Part 3 Manipulating
Your Bot
Interactions
People can interact with you bot
via text and structured
messages.
Trigger words can be programed
so each time a trigger word is
used, your bot respond with a
specific type of message. For
example your bot can respond
with a text, photo, or structured
message.
Check out: wit.ai
FB Cards
FB provides templates so you
can create the Generic Cards.
This template is included in the
sample parrot bot.
You can easily manipulate the
Parrot Bot’s trigger words and
generic cards in the index.js file.
Here is a Video Tutorial That Can
Help: Video Tutorial
Bot Discovery
Discovery is currently a problem
for Chat bots. Here are a few
communities that can help with
this:
Reddit Community
Chat Bots Group on FB
Follow Chatbots on Twitter
Need More Help?
Get the Step by Step Video Tutorial
Thank You!

More Related Content

Viewers also liked

2016署假宅學營 Google Analytics & FaceBook Messenger BOT
2016署假宅學營 Google Analytics  & FaceBook Messenger  BOT2016署假宅學營 Google Analytics  & FaceBook Messenger  BOT
2016署假宅學營 Google Analytics & FaceBook Messenger BOT舜博 許
 
What Startup Execs Need to Know About SEO in 2017
What Startup Execs Need to Know About SEO in 2017What Startup Execs Need to Know About SEO in 2017
What Startup Execs Need to Know About SEO in 2017Rand Fishkin
 
Why We Can't Do SEO WIthout CRO
Why We Can't Do SEO WIthout CROWhy We Can't Do SEO WIthout CRO
Why We Can't Do SEO WIthout CRORand Fishkin
 
Introduction to Chatbots
Introduction to ChatbotsIntroduction to Chatbots
Introduction to ChatbotsDaden Limited
 
How to Survive Google's Trojan Horsing of the Web
How to Survive Google's Trojan Horsing of the WebHow to Survive Google's Trojan Horsing of the Web
How to Survive Google's Trojan Horsing of the WebRand Fishkin
 
Chatbot Artificial Intelligence
Chatbot Artificial IntelligenceChatbot Artificial Intelligence
Chatbot Artificial IntelligenceMd. Mahedi Mahfuj
 
The Invisible Giant that Mucks Up Our Marketing
The Invisible Giant that Mucks Up Our MarketingThe Invisible Giant that Mucks Up Our Marketing
The Invisible Giant that Mucks Up Our MarketingRand Fishkin
 
The Chatbots Are Coming: A Guide to Chatbots, AI and Conversational Interfaces
The Chatbots Are Coming: A Guide to Chatbots, AI and Conversational InterfacesThe Chatbots Are Coming: A Guide to Chatbots, AI and Conversational Interfaces
The Chatbots Are Coming: A Guide to Chatbots, AI and Conversational InterfacesTWG
 
AI Agent and Chatbot Trends For Enterprises
AI Agent and Chatbot Trends For EnterprisesAI Agent and Chatbot Trends For Enterprises
AI Agent and Chatbot Trends For EnterprisesTeewee Ang
 
Why Startups Suck at Marketing
Why Startups Suck at MarketingWhy Startups Suck at Marketing
Why Startups Suck at MarketingRand Fishkin
 
Inlight media - agency credentials 2012 - full service digital agency
Inlight media - agency credentials 2012 - full service digital agencyInlight media - agency credentials 2012 - full service digital agency
Inlight media - agency credentials 2012 - full service digital agencyBen Howden
 

Viewers also liked (19)

2016署假宅學營 Google Analytics & FaceBook Messenger BOT
2016署假宅學營 Google Analytics  & FaceBook Messenger  BOT2016署假宅學營 Google Analytics  & FaceBook Messenger  BOT
2016署假宅學營 Google Analytics & FaceBook Messenger BOT
 
What Startup Execs Need to Know About SEO in 2017
What Startup Execs Need to Know About SEO in 2017What Startup Execs Need to Know About SEO in 2017
What Startup Execs Need to Know About SEO in 2017
 
Why We Can't Do SEO WIthout CRO
Why We Can't Do SEO WIthout CROWhy We Can't Do SEO WIthout CRO
Why We Can't Do SEO WIthout CRO
 
The Internet of Things and Future Shock: Too Much Change Too Fast?
The Internet of Things and Future Shock: Too Much Change Too Fast?The Internet of Things and Future Shock: Too Much Change Too Fast?
The Internet of Things and Future Shock: Too Much Change Too Fast?
 
Introduction to Chatbots
Introduction to ChatbotsIntroduction to Chatbots
Introduction to Chatbots
 
Chatbot interfaces
Chatbot interfacesChatbot interfaces
Chatbot interfaces
 
How to Survive Google's Trojan Horsing of the Web
How to Survive Google's Trojan Horsing of the WebHow to Survive Google's Trojan Horsing of the Web
How to Survive Google's Trojan Horsing of the Web
 
Chatbot ppt
Chatbot pptChatbot ppt
Chatbot ppt
 
Chatbot Artificial Intelligence
Chatbot Artificial IntelligenceChatbot Artificial Intelligence
Chatbot Artificial Intelligence
 
Education in the age of fake news and disputed facts
Education in the age of fake news and disputed factsEducation in the age of fake news and disputed facts
Education in the age of fake news and disputed facts
 
The Invisible Giant that Mucks Up Our Marketing
The Invisible Giant that Mucks Up Our MarketingThe Invisible Giant that Mucks Up Our Marketing
The Invisible Giant that Mucks Up Our Marketing
 
The Chatbots Are Coming: A Guide to Chatbots, AI and Conversational Interfaces
The Chatbots Are Coming: A Guide to Chatbots, AI and Conversational InterfacesThe Chatbots Are Coming: A Guide to Chatbots, AI and Conversational Interfaces
The Chatbots Are Coming: A Guide to Chatbots, AI and Conversational Interfaces
 
AI Agent and Chatbot Trends For Enterprises
AI Agent and Chatbot Trends For EnterprisesAI Agent and Chatbot Trends For Enterprises
AI Agent and Chatbot Trends For Enterprises
 
B2B SEO in 2017
B2B SEO in 2017B2B SEO in 2017
B2B SEO in 2017
 
Why Startups Suck at Marketing
Why Startups Suck at MarketingWhy Startups Suck at Marketing
Why Startups Suck at Marketing
 
Bot Trends 2017
Bot Trends 2017Bot Trends 2017
Bot Trends 2017
 
Emerald Credentials 2014
Emerald Credentials 2014Emerald Credentials 2014
Emerald Credentials 2014
 
Relive360 company profile
Relive360 company profileRelive360 company profile
Relive360 company profile
 
Inlight media - agency credentials 2012 - full service digital agency
Inlight media - agency credentials 2012 - full service digital agencyInlight media - agency credentials 2012 - full service digital agency
Inlight media - agency credentials 2012 - full service digital agency
 

More from Stefan Kojouharov

How VOICE is automating Sales & Marketing from the Chatbot Conference
How VOICE is automating Sales & Marketing from the Chatbot ConferenceHow VOICE is automating Sales & Marketing from the Chatbot Conference
How VOICE is automating Sales & Marketing from the Chatbot ConferenceStefan Kojouharov
 
5 Level of AI Assistants from the Chatbot Conference
5 Level of AI Assistants from the Chatbot Conference5 Level of AI Assistants from the Chatbot Conference
5 Level of AI Assistants from the Chatbot ConferenceStefan Kojouharov
 
Using Chatbots to Capture Leads & Sell from the Chatbot Conference
Using Chatbots to Capture Leads & Sell from the Chatbot ConferenceUsing Chatbots to Capture Leads & Sell from the Chatbot Conference
Using Chatbots to Capture Leads & Sell from the Chatbot ConferenceStefan Kojouharov
 
Keys to Great Conversational Design from the Chatbot Conference
Keys to Great Conversational Design from the Chatbot ConferenceKeys to Great Conversational Design from the Chatbot Conference
Keys to Great Conversational Design from the Chatbot ConferenceStefan Kojouharov
 
#1 Way to Achieve Explosive Growth: The Chatbot Conference
#1 Way to Achieve Explosive Growth: The Chatbot Conference#1 Way to Achieve Explosive Growth: The Chatbot Conference
#1 Way to Achieve Explosive Growth: The Chatbot ConferenceStefan Kojouharov
 
Conversational Design & Copywriting Tips from the Chatbot Conference
Conversational Design & Copywriting Tips from the Chatbot Conference Conversational Design & Copywriting Tips from the Chatbot Conference
Conversational Design & Copywriting Tips from the Chatbot Conference Stefan Kojouharov
 
Future of Bots & Voice in Retail from the Chatbot Conference
Future of Bots & Voice in Retail from the Chatbot ConferenceFuture of Bots & Voice in Retail from the Chatbot Conference
Future of Bots & Voice in Retail from the Chatbot ConferenceStefan Kojouharov
 
Chatbot Revolution: Exploring Opportunities, Use Cases, & Bot Design
Chatbot Revolution: Exploring Opportunities, Use Cases, & Bot DesignChatbot Revolution: Exploring Opportunities, Use Cases, & Bot Design
Chatbot Revolution: Exploring Opportunities, Use Cases, & Bot DesignStefan Kojouharov
 

More from Stefan Kojouharov (8)

How VOICE is automating Sales & Marketing from the Chatbot Conference
How VOICE is automating Sales & Marketing from the Chatbot ConferenceHow VOICE is automating Sales & Marketing from the Chatbot Conference
How VOICE is automating Sales & Marketing from the Chatbot Conference
 
5 Level of AI Assistants from the Chatbot Conference
5 Level of AI Assistants from the Chatbot Conference5 Level of AI Assistants from the Chatbot Conference
5 Level of AI Assistants from the Chatbot Conference
 
Using Chatbots to Capture Leads & Sell from the Chatbot Conference
Using Chatbots to Capture Leads & Sell from the Chatbot ConferenceUsing Chatbots to Capture Leads & Sell from the Chatbot Conference
Using Chatbots to Capture Leads & Sell from the Chatbot Conference
 
Keys to Great Conversational Design from the Chatbot Conference
Keys to Great Conversational Design from the Chatbot ConferenceKeys to Great Conversational Design from the Chatbot Conference
Keys to Great Conversational Design from the Chatbot Conference
 
#1 Way to Achieve Explosive Growth: The Chatbot Conference
#1 Way to Achieve Explosive Growth: The Chatbot Conference#1 Way to Achieve Explosive Growth: The Chatbot Conference
#1 Way to Achieve Explosive Growth: The Chatbot Conference
 
Conversational Design & Copywriting Tips from the Chatbot Conference
Conversational Design & Copywriting Tips from the Chatbot Conference Conversational Design & Copywriting Tips from the Chatbot Conference
Conversational Design & Copywriting Tips from the Chatbot Conference
 
Future of Bots & Voice in Retail from the Chatbot Conference
Future of Bots & Voice in Retail from the Chatbot ConferenceFuture of Bots & Voice in Retail from the Chatbot Conference
Future of Bots & Voice in Retail from the Chatbot Conference
 
Chatbot Revolution: Exploring Opportunities, Use Cases, & Bot Design
Chatbot Revolution: Exploring Opportunities, Use Cases, & Bot DesignChatbot Revolution: Exploring Opportunities, Use Cases, & Bot Design
Chatbot Revolution: Exploring Opportunities, Use Cases, & Bot Design
 

Recently uploaded

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Recently uploaded (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

How to Make a Facebook Messenger Chat Bot in 1Hr

  • 1. How to Make a FB Messenger Chat Bot In 1 Hour with Little or No Programing
  • 2. Step by Step Video Video Tutorial
  • 3. Building a FB Messenger Chat Bot in 1hr Part 1: Putting Bot on in the Cloud Part 2: Connecting your Bot with FB Messenger Part 3: Manipulating Your Bot
  • 5. Part 1: Putting Your Bot on the Cloud
  • 6. Download Node.js We will be using JavaScript and Node. js for this tutorial. You do not need to know node.js or be a coder. Sample code is provided. Download Node.js: https: //nodejs.org
  • 7. Visual Studio IDE Visual Studios is a very simple and fund IDE that supports js. Visual Studios is Free and you can Download it from Microsoft. Download: https://code. visualstudio.com/Download
  • 8. GitHub Repository Github is a Great repository for your code. You can also collaborate with developers and get sample code. You can download project sample code here: Sign up at: https://github.com/
  • 9. 1. Heroku Hosting Heroku offers free accounts and is a great place to host your chat bot. Sign up at: https://www.heroku. com 2. Heroku Toolbelt Download Heroku toolbelt to be able to launch, stop and monitor instances. Download: https://toolbelt. heroku.com
  • 10. Setting up NPM & Dependencies 1. Open Up Terminal / Command Line Make Sure you have latest npm: sudo npm install npm --global 3. In Command Line: Install Node Dependency for sending and requesting messages: npm install express request body-parser --save 2. Create Project Folder To Initialize npm in Project: npm init
  • 11. Index.js This is the main working file for your app. If you don’t have an index.js file or code you can do one of the following: 1. Use our Parrot Bot Code 2. Create own Bot App 3. Get Sample Bot Code from online repository Using Parrot Bot Index.js File Step 1: Join FB Chat Bot Group: https://www.facebook.com/groups/aichatbots Step 2: Get Files from Group: https://www.facebook. com/groups/aichatbots/files/ Step 3: Copy & Past or Download File Named, “Sample Code for Parrot Bot” and save it as an index.js file in your Project Folder OR Get Parrot index.js via email: click here
  • 12. Deploy Code to Heroku Procfile Procfile lets Heroku know what files to run. Creating a Procfile takes one line of code: web: node index.js Save it as ‘Procfile’ in your project. You can also use procfile sample in https://www.facebook. com/groups/aichatbots/files/ In Terminal type: 1. git status //this will show you all of the files not yet committed to server 2. git add . //this will add new/updated files 3. git commit - -message ‘your message’ //this commits code 4. git push heroku master //this pushes your code to heroku and deploys itOR Get Parrot Procfile via email: click here
  • 13. Congrats, Your App is Alive!!! 1. Go to your Heroku Dashboard 2. Select App then Open it
  • 14. Part 2: Connecting Your Bot with FB
  • 15. FB Developer Sign up to Facebook Developer Program Sign up: https://developers. facebook. com/products/messenger/
  • 16. Creating App in FB 2. Select Basic Setup 3. Select: Messenger Get Started 1. Add New App
  • 17. Save Page Token to your index.js file Select Page
  • 18. Setting up Webhooks Get Verify Token from Index.js file yourdomain.com/webhook/https://yourdomain.com/webhook/
  • 19. Setting up NPM & Dependencies 1. Open Up Terminal / Command Line Trigger FB to Send Messages: curl -X POST "https://graph.facebook. com/v2.6/me/subscribed_apps? access_token=<PAGE_ACCESS_TOKEN>" 2. In Command Line:
  • 20. Quick Checklist 1. Added New FB App 2. Linked it to FB Page 3. Set up Webook 4. Input Access Token in index file 5. Curl command? 6. Saved and Pushed changes to Heroku? It’s Alive!!! Go to your Bot’s Corresponding FB Page and Send your Bot a Message. Try typing ‘hi’ then type ‘yo’.
  • 22. Interactions People can interact with you bot via text and structured messages. Trigger words can be programed so each time a trigger word is used, your bot respond with a specific type of message. For example your bot can respond with a text, photo, or structured message. Check out: wit.ai
  • 23. FB Cards FB provides templates so you can create the Generic Cards. This template is included in the sample parrot bot. You can easily manipulate the Parrot Bot’s trigger words and generic cards in the index.js file. Here is a Video Tutorial That Can Help: Video Tutorial
  • 24. Bot Discovery Discovery is currently a problem for Chat bots. Here are a few communities that can help with this: Reddit Community Chat Bots Group on FB Follow Chatbots on Twitter
  • 25. Need More Help? Get the Step by Step Video Tutorial