Chatbot facebook tutorial

Chatbot facebook tutorial DEFAULT

Facebook Messenger Bots: How to Set Up a Chatbot in 30 Minutes or Less.

Four years after Mark Zuckerberg announced the arrival of Facebook Messenger bots, the technology has established its value for brands many times over.

However, they remain an underused channel with there “only” being around 400k Facebook Messenger chatbots in active service.

It appears there are plenty of companies who are yet to discover how Facebook Messenger bots can boost their bottom line and customer experience through automation.

Also see: How to Leverage Facebook Messenger Ads in 2019 and look into The Future of Chatbots for Social Media.

What is a Facebook Messenger bot?

Facebook messenger bots

At the most fundamental level, chatbots offer a way for organizations to automate many low-level customer service functions.

Instead of waiting on hold to speak to a service agent, customers can chat with a bot to answer basic pre-purchase questions, or to complete the early stages of an RMA returns request.

Chatbots are supported by a range of different platforms, but Facebook Messenger is probably the most important when it comes to dealing with shoppers.

After all, Facebook Messenger use now far exceeds that of the social network itself among consumers.

Facebook messenger chatbot
In fact, the top 4 messaging apps now have more active users than the top 4 social networks. Source: Business Insider

Customers simply click the “Message” button on your Facebook page (or website) and a Messenger session is launched automatically, allowing them to type a question and begin chatting with your bot.

With the right chatbot in place, virtually any customer interaction can be initiated and automated using Messenger.

The importance of bots

facebook chat bot
With a well-staffed customer service department, bots may seem like a pointless extravagance—but they offer all businesses significant benefits, including:

  • Reducing the workload for frontline staff, allowing them to focus on more complicated customer issues
  • Being available 24/7/365—even when your staffed service desk is not
  • Letting customers access basic information quickly and easily, increasing the convenience of your offering

What effect will these benefits have on your bottom line? Prepare to have your mind blown.

Juniper Research estimates chatbots will cut global business costs by $8 billion a year by 2022.

How to make a Facebook Messenger bot

how to make a facebook botParade of Books showcases some of the awesome features you can add to your Facebook Messenger bot. Source: Facebook via Mashable

Dominos messenger bot GIFsDomino’s Pizza messenger bots are a great example of service chatbots in action. The bot knows the questions that customers most frequently ask on their Facebook page and, thanks to AI, they address these quickly and clearly.

These are some of the chatbot examples which you can learn from and implement for your own brand.

Considering the power of Facebook chatbots, you’ll probably be surprised to hear that they can be built by anyone.

With tools like Chatfuel you can build and deploy a bot in just 7 minutes—and you don’t have to be an experienced developer, either.

In fact, there is no coding required at all.

If you already have a Facebook page in place, the basic bot building process looks like this:

1. Sign up for a Chatfuel account

how to create a facebook bot with chatfuel
Chatfuel’s homepage. 

Visit and click the Get Started for Free button on the homepage. You will be prompted to log in to your Facebook account and grant Chatfuel permission to access your public profile and email address.

2. Link your Facebook page

With your Facebook login confirmed, you will be redirected to your Chatfuel account dashboard. Click “Connect” to add your Facebook page. Chatfuel will show a welcome message to confirm the page has been linked successfully.

3. Create a Messenger greeting

The next step is to create a welcome message that will be shown to your customers when they launch a Messenger chatbot session. This message is extremely important because it tells users what to do and what to expect.

  • Go back to your Facebook page and click Settings -> Messaging
  • Set the Show a Messenger Greeting switch to Yes
  • Click Change
  • Enter your welcome message into the box, and click Save

Now when a customer clicks the Message button (see stage 6) on your Facebook page, this message will be displayed first.

facebook chatbots
Product Hunt showcases a chatbot built with Chatfuel.

4. Create a welcome message

When a chatbot session is launched, your user is shown a ‘welcome message’.

This is where you can greet the customer by name and provide further hints about how to get the most from their chatbot session.

  • In your Chatfuel dashboard, click Welcome Message
  • Add your desired copy to the box—for example, “Hi {{first name}}, how can I help you?”

And that’s it—the changes are saved automatically. You can test the welcome message yourself by visiting your Facebook page and clicking the Message button.

5. Create a default reply

Sometimes a user will ask a question that the Facebook Messenger chatbot cannot answer. When this happens, you will need a default reply to tell them what to do next (email support, reword their question, call your helpdesk, etc.).

  • In your Chatfuel dashboard, click the Default Answer button.
  • Change the placeholder text to something more friendly (“Sorry, I’m still learning the ropes. Please try again!”)

Again, your changes are saved automatically.

6. Unleash the AI

chatfuel facebook messenger bot keywords
Setting up an AI Rule in Chatfuel is fairly simple. Source: Chatfuel blog

The true power of chatbots comes from their use of Artificial Intelligence (AI) to fully understand what your customers are asking. Chatfuel uses keywords to train the AI system, so you will need to give your chatbot some to work with.

  • From the Chatfuel dashboard, select Set Up AI -> Add AI Rule
  • Enter a keyword that you expect your customers to use like ‘Shipping’ in the If User Says Something Similar To box
  • In the accompanying Bot Replies with Text box, enter a useful reply like “All orders over $10 qualify for free shipping. You can find out more about our shipping policies here,” along with a link to your shipping info page.
  • Keep repeating this process for as many keywords as you like. Because these changes are made in real time, you can test chatbot responses as you go.

It is worth speaking to your customer service department to find out the most common questions they are asked and use those to set up your AI.

7. Add a Message button to your Facebook page

Unfortunately, the Message button mentioned above does not magically appear on your Facebook page—you have to add it yourself. Here’s how:

  • Go back to Facebook and click Add a Button
  • In the popup window, select Contact You and Send Message
  • When asked where the button should send people, select Messenger
  • The Send Message button is now displayed on your page—try clicking it to launch your Facebook Messenger chatbot.

Just the beginning

There is much, much more that can be done with Facebook Messenger chatbots, including creating galleries and other ‘visual’ elements to make the customer experience more pleasant.

facebook messenger chat bot examples
Facebook Messenger bots can use swipeable galleries to display a variety of links and images to users. Source: Chatbot Academy

And using Chatfuel, you can also carry out Messenger-based marketing activities, like embedding a live chat widget on your website, acquiring users from comments on your Facebook page and sending messages to anyone who has subscribed to your chatbot.

If you want to know more about configuring and improving your first Facebook Messenger chatbot, take a look at the comprehensive Chatfuel tutorials and documentation on their website.

If you’ve followed this quick guide, you now know how to make a Facebook Messenger bot—and you’re well on your way to improving the experience customers have when they try to contact your brand.

That means you’re also on the way to providing more efficient, lower cost support to clients without compromising the quality of service. Cheers!


Quick Start Tutorial

Build the experience

In this tutorial we will build a simple Messenger experience that does the following:

Parses the message and sender's page-scoped ID from an incoming webhook event.

Handles and webhook events.

Sends messages via the Send API.

Responds to text messages with a text message.

Responds to an image attachment with a generic template that uses the received image.

Responds conditionally to a postback payload.


Stub out handler functions

To start, we will stub out three functions that will handle the incoming webhook event types we want to support, as well as responding via the send API. To do this, append the following to your file:


Get the sender's page-scoped ID

To respond to people on Messenger, the first thing we need is to know who they are. In Messenger this is accomplished by getting the message sender's page-scoped ID (PSID) from the incoming webhook event.

What is a PSID?

A person is assigned a unique page-scoped ID (PSID) for each Facebook Page they start a conversation with. The PSID is used to identify a person when sending messages.

If you completed one of the options in the Requirements section above, you should have a basic endpoint that accepts requests and logs the body of received webhook events that looks like this:

To get the sender's PSID, update the block with the following code to extract the PSID from the property of the event:

Test It!

Open Messenger and send a message to the Facebook Page associated with your Messenger experience. You will not receive a response in Messenger, but you should see a message with the your PSID logged to the console where your webhook is running:


Parse the webhook event type

We want our experience to be able to handle two types of webhook events: and . The name of the event type is not included in the event body, but we can determine it by checking for certain object properties.

What are webhook events?

The Messenger Platform sends webhook events to notify you of actions that occur in Messenger. Events are sent in JSON format as requests to your webhook. For more information, see Webhook Events.

To do this, update the block of your webhook with a conditional that checks whether the received event contains a or property. We will also add calls to the and functions that we stubbed out earlier:


Handle text messages

Now that our incoming messages are being routed to the appropriate handler function, we will update to handle and respond to basic text messages. To do this, update the code to define the message payload of our response, then pass that payload to . We want to respond with a basic text message, so we define a JSON object with a property:


Send a message with the Send API

Time to send your first message with the Messenger Platform's Send API!

In , we are calling so now we need to update it to construct the full request body and send it to the Messenger Platform. A request to the Send API has two properties:

  • : Sets the intended message recipient. In this case, we identify the person by their PSID.
  • : Sets the details of the message to be sent. Here, we will set it to the message object we passed in from our function.

To construct the request body, update the stub for to the following:

Now all we have to do is send our message by submitting a request to the Send API at .

Note that you must append your in the parameter of the URL query string.

Making HTTP Requests

In this quick start, we are using the Node.js request module for sending HTTP requests back to the Messenger Platform, but you can use any HTTP client you like.

To install the request module, run from the command line, then import it by adding the following to the top of :

Test It!

In Messenger, send another text message to your Facebook Page. You should receive an automated response from your Messenger experience that echoes back your message and prompts you to send an image.


Handle attachments

Since our response prompts the message recipient to send an image, our next step is to update our code to handle an attachment. Sent attachments are automatically saved by the Messenger Platform and made available via a URL in the property of each index in the array, so we will also extract this from the event.

What attachment types are supported?

Your Messenger experience can send and receive most asset types, including images, audio, video, and files. Media is displayed and is even playable in the conversation, allowing you to create media-rich experiences.

To determine if the message is an attachment, update the conditional in your function to check the for an property, then extract the URL for it. In a real-world bot we would iterate the array to check for multiple attachments, but for the purpose of this quick start, we will just get the first attachment.


Send a structured message

Next, we will respond to the image with a generic template message. The generic template is the most commonly used structured message type, and allows you to send an image, text, and buttons in one message.

Are other message templates available?

Yes! The Messenger Platform provides a set of useful message templates, each designed to support a different, common message structure, including lists, receipts, buttons, and more. For complete details, see Templates.

Message templates are defined in the property of the message, which contains and properties. The is where we set the details of our generic template in the following properties:

  • : Sets the type of template used for the message. We are using the generic template, so the value is 'generic'.

  • : Sets the custom properties of our template. For the generic template we will specify a title, subtitle, image, and two postback buttons.

For our structured message, we will use the that was sent to us as the to display in our template, and include a couple postback buttons to allow the message recipient to respond. To construct the message payload and send the generic template, update to the following:

Test It!

In Messenger, send an image to your Facebook Page. Your Messenger experience should respond with a generic template.


Handle postbacks

Our last step is to handle the webhook event that will be sent when the message recipient taps one of the postback buttons in our generic template.

What can I do with postbacks?

The postback button sends a webhook event to your webhook that includes a custom string of up to 1,000 character in the property. This allows you to easily implement different postback payloads that you can parse and respond to with specific behaviors.

Since our generic template allows the message recipient to choose from two postback buttons, we will respond based on the value of the property of the postback event. To do this, update your stub to the following:

Test It!

In Messenger, tap each of the postback buttons on the generic template. You should receive a different text response for each button.


If everything went well, you just finished building your first Messenger experience!

  1. Walmart slide hammer
  2. Floral svg
  3. Threaded stem furniture glides
  4. Modified c3 corvette

Hartley Brody

First there were desktop software products, then everything moved to the web. Then there were email-based products and even SMS-based ones. The latest craze in software interfaces is messenger bots, and Facebook has the largest chat platform by a long shot.


In this tutorial, I’ll show you how to build your own Facebook Messenger Chat Bot in python. We’ll use Flask for some basic web request handling, and we’ll deploy the app to Heroku.

Let’s get started.

Step #1: Create a Working Webhook Endpoint

We’ll get into the meat of sending and receiving messages in a bit, but first you need to have a working endpoint that returns a 200 response code and echoes back some information in order to verify your bot with Facebook.


First, the Github repository that I set up for this project:

Then, into it and install python dependencies:

For simplicity, we’ll deploy this to Heroku, but you could also deploy this Flask web app to any server you have access to.

Assuming you already have the Heroku CLI Toolbelt installed, you can run

to get your new application setup.

We’re also using Heroku’s convention for the Procfile to tell it how to run the app, but you could set this up on your own server with something like nginx in front of one or more gunicorn processes.

To verify that Heroku can run things locally on your machine, start your local server with:

Then, in your browser, visit http://localhost:5000/ and you should see “Hello world”.


Kill the local server with . To deploy this endpoint to Heroku

And to open it in your browser

Now you’ve got a “working” webhook URL that you can use to setup your bot. Make sure you grab the full URL from your browser since we’ll need it in a bit.

Step #2: Create a Facebook Page

If you don’t already have one, you need to create a Facebook Page. The Facebook Page is the “identity” of your bot, including the name and image that appears when someone chats with it inside Facebook Messenger.

If you’re just creating a dummy one for your chatbot, it doesn’t really matter what you name it or how you categorize it. You can skip through most of the setup steps.

In order to communicate with your bot, people will need to go through your Page, which we’ll look at in a bit.

Step #3: Create a Facebook App

Go to the Facebook Developer’s Quickstart Page and 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.


You’ll see your new App ID at the top right on the next page. Scroll down and click “Get Started” next to Messenger.


Step #4: Setup Your Messaging App

Now you’re in the Messenger settings for your Facebook App. There are a few things in here you’ll need to fill out in order to get your chatbot wired up to the Heroku endpoint we setup earlier.

Generate a Page Access Token
Using the Page you created earlier (or an existing Page), click through the auth flow and you’ll receive a Page Access Token for your app.


Click on the Page Access Token to copy it to your clipboard. You’ll need to set it as an environment variable for your Heroku application. On the command line, in the same folder where you cloned the application, run:

This token will be used to authenticate your requests whenever you try to send a message or reply to someone.

Setup Webhook
When you go to setup your webhook, you’ll need a few bits of information:


  • Callback URL - The Heroku (or other) URL that we setup earlier.
  • Verification Token - A secret value that will be sent to your bot, in order to verify the request is coming from Facebook. Whatever value you set here, make sure you add it to your Heroku environment using
  • Subscription Fields - This tells Facebook what messaging events you care about and want it to notify your webhook about. If you're not sure, just start with "messages," as you can change this later

After you’ve configured your webhook, you’ll need to subscribe to the specific page you want to receive message notifications for.


Once you’ve gotten your Page Access Token and set up your webhook, make sure you set both the and config values in your Heroku application, and you should be good to go!

Step #5: Start Chatting with Your Bot

Go to the Facebook Page you created and click on “Message” button, next to the “Like” button near the top of the page. This should open a message pane with your Page.


Start sending your Page messages and the bot should reply!

To see what’s happening, check the logs of your application

You should see the POST data that Facebook is sending to your endpoint whenever a new message is sent to your Page’s bot.

Here’s an example JSON POST body that I got when I sent “does this work?” to my bot

{ "object":"page", "entry":[ { "messaging":[ { "message":{ "text":"does this work?", "seq":20, "mid":"mid.1466015596912:7348aba4de4cfddf91" }, "timestamp":1466015596919, "sender":{ "id":"885721401551027" }, "recipient":{ "id":"260317677677806" } } ], "time":1466015596947, "id":"260317677677806" } ] }

By default, the bot should respond to everything with “got it, thanks!”

Step #6: Customize Your Bot’s Behavior

Here’s where we finally start to dive into the code.

There are really only two key parts to a messaging bot: receiving and sending messages

Receiving Messages
We handle incoming messages starting on line 24 inside, in our view function.

First we load in the JSON POST data that’s sent to the webhook from Facebook whenever a new messaging event is triggered, usually when someone sends a message to our Page.

Then we loop over each entry – in my testing experience, there’s only ever been one entry sent to the webhook at a time.

Then we loop over each of the messaging events. Here, there may be several messaging events.

In step #4, we told Facebook what message types we want our webhook to be notified about. If you followed my advice, then our endpoint will only receive “message” events, but we could also receive delivery confirmations, optins and postbacks (more on those later). I left some code in place for detecting those other types of messaging events, but I don’t actually handle them.

The messaging event that will be most useful to most applications will be the “message” event, meaning someone has sent your Page a new message. I wrote some basic code to handle that event, parsing out the sender’s ID, and simply responding back to them.

Sending Messages
In order to send a simple text message, you only need two things:

  • the recipient's Facebook ID
  • the text of the message you want to send

I’ve created a simple function that automatically hits the Facebook API and sends those pieces of information.

Remember that the request is authenticated using the environment variable that we got back in step #4.

There are many more complex message types you can send, including messages with images and buttons. More information on those message types here.

Important to note is the ability to send a “postback” button in a message. These are essentially buttons that, when tapped by a user, send a postback messaging event to your webhook.

This essentially allows users to “press buttons” in your app, all while inside Facebook Messenger. You could use this for placing an order, confirming a request or lots of other things.

Whenever a user taps a postback button, your webhook is notified and can perform any sort of subsequent follow-up action necessary.

Step #7: Submit Your App to be Reviewed

While you’re testing your bot, only you and other Page admins can message with the bot directly. You have to go through a review process before your bot is open to the world, ready to chat with anyone.

Facebook seems to be very thorough in their review process, and with good reason. The code for a messaging bot runs on your own servers and could change at any time, without Facebook knowing.

They seem to be trying hard to make sure you’re a good actor, and not submitting a simple dummy app to get approved, only to change it to some spam bot down the road.

Obviously, they could still revoke your API access tokens if you did that, but they’d rather not have any abuse on the Messenger platform at all.

Go back to your Messenger App Settings page that we used in Step #4. Scroll down to “App Review for Messenger” and click “Request Permissions.”


Request the permissions that you need, and then you’ll be taken to the “Review Status” page. This page requires a ton of information to ensure that developers aren’t going to abuse the platform.

It requires you to

  • check several boxes verifying that you've read their policies and guidelines
  • promise you won't engage in unsolicited, outbound messaging
  • describe how you're going to interact with users through your bot
  • provide a test user that the review team can use to interact with your bot
  • upload a screencast of you interacting with your bot via Messenger
  • have a privacy policy
  • verify that you're explaining the bot and setting expectations with users

On this page, you can also ask to be granted extra information about users, like their email or profile information.

Then it all goes to the Facebook review team to sign off and give you full access to the Messenger platform. More information about the approval process here.

Even if you don’t intend to go all the way through the review process, hopefully you’ve learned a thing or two about how to build a simple chat bot for Facebook Messenger.

Check out my code here.

PS: I decided to learn the Facebook Messenger Bot platform in an afternoon and write this post after David Markovich told me he didn’t think I could learn it that quickly to work with his Messenger Bot Consulting Business. Showed him wrong! 😜


Facebook chatbot by python

How to Make a Facebook Messenger Bot in 24 minutes Without Code

Determine the theme and purpose of your Facebook Messenger bot

Like with any project, we want to keep the end in mind.

  • What is the purpose of your bot?
  • Why do people start a conversation with your brand? What do people usually ask when they message your Facebook page?
  • Is there an opportunity to use your bot to better educate your market and sell your products?

You first have to decide the purpose of your bot. This should be based on who you serve, what you need to answer and what you sell.

Let’s see some chatbot examples: Poncho is a weather app, so naturally, their bot is going to gather user information.

WebDM is a health services company, their bot is going to help educate the user when they are sick.

Beyond purpose, voice is also very important when you create bots. Your chatbot is an extension of your brand and should have personality and voice, almost as though you having conversation with a real person.

Create your free ManyChat account

Head over to ManyChat and create a free account. To do this, you’ll need to have a facebook page and grant us permission to access your account.

Link your facebook business page

After granting permission, click Connect to link your Page to your ManyChat account.

Create your Welcome Message

Your Welcome Message is the first thing that people who interact with you on Facebook Messenger will see.

You can edit your Welcome Message under the “Automation” tab in the left hand menu inside of ManyChat:

The opportunities are endless for your Welcome Message. Manychat has abillity to add buttons, as you can see above lists, images, videos, audio, and much more:

The key to your Welcome Message is to give users options.

The folks at DigitalMarketer use their Welcome Message to greet users, set the expectation that they’ll get back to people as soon as possible, while also directing traffic to their blog and podcast for people who are interested in learning more.

Your Welcome Message should act as a greeting for new users, and also provide an answer for what to do next. This goes back to the purpose of your chatbot development… if you’re a recipe site, include a button to your recipe directory. If you sell insurance, create a bot to ask people if they would like a quote.

Here’s a step by step tutorial video on how to build your Welcome Message.

Notice that above, DigitalMarketer ended the Welcome Message with “Looking for our free report to End the War Between Sales & Marketing? Type “guide” here in our chat and we’ll get you a copy!”

They’re leveraging the keyword feature to trigger messages when prospects type certain keywords.

Using Keywords to automate your bot replies

The keywords feature inside of ManyChat allows you to automate responses based off of certain keywords that users type.

Remember the WebMD Messenger chatbot example from earlier? When I typed “headache” the bot knew to return information about how to treat a headache.

When a user types “guide” into DigitalMarketer’s bot, they deliver a PDF version of the guide within Messenger.

The possibilities are endless with keywords, and this is where building your bot gets fun. You’ll find the keywords button on the left-hand side in ManyChat:

Click “new rule” in the top right-hand corner and then type in the keyword. From here, you have a ton of options:

You can…

  • Create a new tag
  • Open a conversation
  • Add a tag
  • Notify an admin
  • Remove a tag
  • Set subscriber custom field
  • Trigger a zap
  • Clear subscriber customer field
  • Subscriber the user to a new sequence of messages
  • Unsubscribe them from the bot
  • Unsubscribe from a sequence
  • Subscribe them to the bot

…and much, much more.

For example, when someone types “guide” into DigitalMarketer’s bot… it triggers a new reply that delivers the PDF:

Here’s a step by step video on how to use keywords in ManyChat

These replies are easy to customize, just like the welcome message.. and this is where the complexity of the bot comes into play…. you can set up as many as you’d like, or none at all.

Add a message button to your page

To add your Message button, simply:

  1. Go to Facebook and click Add a Button
  2. In the popup, choose Contact You and Send Message
  3. Select Messenger when asked where the button should send people
  4. Now you’re all set up! Test your button and launch your Messenger bot to see if it works.

Facebook tutorial chatbot

This article was originally published in March 2017. It has been updated to reflect new information and application features available related to chatbots in June 2020.

Recently I awoke to intense, pulsing pain in my lower abdomen. A few years ago, I would have had two options — go to the emergency room or an urgent care facility, both of which can be costly. This time, I sought help from the telemedicine service covered by my health insurance plan, where I was able to call in and speak with a medical practitioner. They confirmed that I likely had a kidney stone and helped me understand the next steps regarding treatment.

It was a great service, but I had to wait about two hours for the call back from the medical practitioner… and that is a long wait when you’re in pain.

We’ll get to how to build a Facebook chatbot in a bit, but first… think about how your chatbot could help people.

What if I went online and chatted with a doctor in minutes instead of hours?

I could have.

It turns out, a number of medical chatbot applications are available — you install one on your phone, and you can get self-help diagnostic information for your ailments. Powered by artificial intelligence, you can have a conversation with a chatbot and get answers to your medical questions. It can even connect you with healthcare providers in real-time.

One example of a medical diagnostic chatbot is Babylon, a subscription service available in the U.K. that offers artificially intelligent chatbot-based consultations that provide suggestions for a medical course of action.

Getting help from a chatbot

How are companies using chatbots in marketing?

Dozens of brands with large marketing budgets and initiatives, such as Disney, Uber, and Kayak, are using chatbots to connect with their customers and sell more products and services.

Disney, the enormous media and entertainment conglomerate, helped promote their ‘Zootopia’ movie with a Facebook Messenger chatbot that interacted with children. The chatbot led the child through a conversation with the movie’s main character, Officer Judy Hopps, as they worked together to catch bad guys.

Example of Disney using a character chatbot, with Officer Judy Hopps from 'Zootopia'

Kayak, one of the most popular air and hotel booking platforms, allows you to interact with its chatbots via Facebook Messenger, Slack or Amazon Alexa. Kayak’s main website provides tools for searching airlines and hotels and then booking them directly. With their chatbots, they are taking their service even further: You can receive budget-driven recommendations, get updates on your already-planned trips, or evaluate the best time to travel to certain hotspots.

Chatbots are meant to be more interactive ways to communicate with potential customers, not merely a way to help close a sale. As such, Kayak has introduced more conversational functionality beyond simply booking travel.

Likewise, chatbots can be leveraged in more creative fashions to generate leads.

Using chatbots to generate leads:

Traditional lead generation for both B2C and B2B marketing involves a lot of advertising and calls-to-action, such as “download this ebook,” to capture the lead for a sales follow-up.

Enter chatbots.

Pew Research: Percentages of Americans Who Use Various Social Media Platforms

With 68 percent of online adults in the United States on Facebook, according to Pew Research, you can likely get your chatbot in front of your target demographic if you create a chatbot for Facebook. While Facebook Messenger is the leading platform for chatbots, there are also a number of other platforms available today. You can build chatbots using HubSpot, Slack, Skype, PureChat, Drift, and many others.

Any product or service that has a high level of pre-purchase decision-making, such as auto sales, real estate or enterprise software, can gain immense value from a chatbot. Because your prospective customer is likely doing a fair amount of online research into which product to buy, it makes sense to build a chatbot that helps answer questions for them, in a smart and conversational way.

Somewhere in the conversation your chatbot can offer a downloadable guide — all the prospective customer needs to do is provide some contact information, and the guide will be sent to them. Assuming your chatbot provides value to the consumer when your salesperson reaches out to discuss the sale, they will have already had a favorable interaction with your brand.

7 examples of chatbots for lead generation:

Chatbots have been available for some time, but businesses have only begun to adopt them for lead generation purposes heavily within the last several years. To help you get a better idea of how you can leverage chatbots for lead generation, I’ve made a list of chatbots I’ve either built for clients or that I’ve dreamed up and intend to build.

Despite chatbots having been around for some time now, lead generation via chatbots is still a very new technique. Not many people are leveraging them, and so there is still very much an early adopter advantage that you can get from launching a chatbot for lead generation.

To help you get a better idea of how you can leverage chatbots for this purpose, I’ve made a list of chatbots I’ve either built for clients or that I’ve dreamed up and intend to build.

Why am I not worried about sharing these with you?

Because I honestly feel that with time, all of these ideas will be on the market, and there is no reason to hold your cards close to your chest in this game. There is still plenty of land to be claimed!

Examples of chatbots that can be used for lead generation:

1. Real estate agent bots

Real estate agents rank among some of the most lead-hungry professionals out there. It is amazing what real estate agents will pay for a strong lead. I know, because I have an interest in real estate for my own personal investment. I built a bot for a client that helps potential home-sellers evaluate whether or not to sell their homes on their own, or if they need help from a real estate agent.

I’ve done several bot-building training sessions with this real estate agent bot example. If you’re interested in seeing more on this, be sure to read through to the end of this article as I will share an actual template you can copy and use for your own clients.

2. Loan calculator bots

Financial institutions that provide consumers or businesses with loans are always looking for ways to get more applications. Why not offer a loan calculator? After running the calculation in the chatbot, open up a dialog and offer a piece of free content, such as a guide on the “Ten things to ask a lender,” in exchange for a contact’s email address.

3. Life coach bots

A chatbot can be used to provide or offer free advice in the areas of coaching, psychology, or other forms of personal development and mental health.

4. Politician bots

Several of my state-level politicians have started to reach out to me, as their constituent, to keep in touch via YouTube and/or email updates on what they are doing in the state legislature. They have my contact details because I’ve participated in the democratic process and given them my contact details.

What about the thousands of other constituents in their district that they can’t reach? In steps a bot that updates their voters in real-time via Facebook Messenger. And the great thing about Facebook is that it allows you to draw tight geographic fences around areas you want to advertise in. A politician can set targets around her district, buy ads, get people into her chatbot, and can take a more proactive approach and voice with her constituents, all of which can increase her chances of getting re-elected.

5. Investment advice bots

The financial planning industry is very competitive for new business. Advertise a guide on Facebook that is sure to whet the whistle for potential investors. Then, when they click your ad, it will take them into a chatbot. From there, capture their email addresses, and you’re gold!

6. Home services bots

Regardless of the type of home service you offer (or that your client offers), you can help automate quotes and lead generation for potential new customers. You can also provide home improvement advice through a chatbot to help you increase the number of new leads.

7. Appointment-setting bots

If you are involved in an appointment-heavy industry (hair salons, medical or dental offices, law firms, and so on), then you can leverage a chatbot as a method for current customers to book spots on your calendar. Simply opening up a dialog with your customers via Facebook Messenger will allow you to proactively reach out to them to follow up, solicit reviews and feedback, and to run “refer a friend” promotions.

How to start building a chatbot:

Years ago, chatbot-building was quite the task. It used to require coding knowledge, which often involved working with a skilled developer. By using Facebook Messenger, for example, you used to have to work directly with Facebook’s developer console to build a chatbot. However, over the years as chatbot functionality has become more widely used and available, building them has become significantly easier.

There are dozens of chatbot-building solutions out there, with three of the most popular for Facebook Messenger chatbots being Chatfuel, ManyChat, and Dialogflow (formerly called Each of these solutions provides point-and-click, no-coding-necessary options for creating an interactive chatbot on the Facebook Messenger platform.

The big difference between ManyChat, Chatfuel, and Dialogflow:

  • Chatfuel is super easy to get rolling with and does have a fairly robust feature set. I recommend it for beginners and small businesses who need an MVP (minimum viable product) they can try out quickly. For the DIY guide below, we will be using Chatfuel.
  • ManyChat is also easy to use, and has come a long way in terms of robust features, usability, and integrations. After reviewing a number of customer testimonials, and experiencing ManyChat first hand, ManyChat and Facebook work closely together to ensure that product features, functionalities, and improvements are made regularly to provide users with the best possible experience.
  • Dialogflow has also come a long way in terms of robust features and usability. Dialogflow used to come with a bit of a learning curve, however, today it is simple, easy to use, and doesn’t require coding. Dialogflow also offers a friendly user interface and supportive supplemental documentation to help beginner users learn and be successful with the platform.  I recommend it for organizations that have more resources and are looking for a more powerful chatbot that can interface with their e-commerce solution or other enterprise-level tools.

How much do these tools cost? All three tools are available for free, up to a certain limit. For example, Chatfuel claims, that if you expect to see at least 500 users or more, then the paid Pro plan is recommended. Although ManyChat also offers a free version, it is somewhat limited. ManyChat’s free version is recommended for businesses or marketers that are new to building and using chatbots. Dialogflow offers a “Standard Edition” for free. Similar to Chatfuel, their paid plans are determined based on the number of requests. For example, pricing ranges between $0.002 and $0.004 per request for text.

All in all, depending on your business’ needs, you may be able to get pretty far with a free plan. However, even the paid plans with these of these applications are reasonably priced.

How to build a Facebook chatbot:

Now that you have a good understanding of what a chatbot is, how it can be used in lead generation, and the two leading platforms for building code-free chatbots, let’s jump into actually building one.

Creating a chatbot is such a simple process that it can be done by anyone with at least some technical prowess and about 10 minutes to spare.

Note: My “build it in about 10 minutes” claim is not promising a chatbot that will wow your potential customers. But, it will be enough time to build and launch a very basic chatbot. To build a feature-full chatbot with some immersive artificial intelligence that can carry on strong conversations, that will require some considerable time and effort on your part. This time isn’t spent actually building the tool, but you will be spending considerable time writing content, forecasting what the most frequently asked questions are going to be, etc.

How to use Chatfuel as your Facebook chatbot builder

Step 1: Connect your Facebook account to the Chatfuel chatbot builder.

This step is super easy. Make sure you’re logged into Facebook on the browser you’re going to connect to Chatfuel in. Then simply click the “get started for free” button on the Chatfuel homepage. It will bring up a Facebook connection page that allows you to give permissions to Chatfuel to see your Facebook information.

You need to authorize it, and you’ll then be taken back into the Chatfuel chatbot builder, where you’ll select which Facebook page you want to connect to.

Building Your Facebook Chatbot - Step 2: Connect to your Facebook page

Step 2: Connect to your Facebook business page.

Because chatbots are tied to organizations and not to individuals, you need to have an organization Facebook page that you use to tie your Chatbot to. If you don’t already have a Facebook page for the business you’re going to do marketing for, you should create one. Here’s a quick guide from Hootsuite to help you get started building a Facebook business page.

Alternatively, you can also click the “Create a Facebook page” button in the Chatfuel interface to set up your page at this step. However, setting up a Facebook page is very important, and you need to make sure you do it the right way, so I recommend going into Facebook to do it and using the above-linked guide. Then come back to Chatfuel.

Once you have a Facebook page, simply select it and you’re on your way.

Step 3: Walk through the in-app tutorial.

Now that you’ve connected your page, you’ll be taken into the actual chatbot builder. Chatfuel has a fairly detailed tutorial you can follow, though it’s not as good as this guide.

It does give you a good overview of the chatbot components and how to get started with their user interface. I do recommend you taking two or three minutes to click through their tutorial, as the background knowledge will help you on your way.


Step 4: Create your welcome message and default answer.

After the brief tutorial, the next step is to create your welcome message. The first interaction your chatbot visitors will have is with this message, so make it good.

Step 4: Create the default welcome message for your chatbot

It should be a quick sentence that introduces the chatbot and then asks them, “How can I help?”

Make sure to also create a default message — something that’s shown in case the user types in a message which you don’t have AI detection set up for. It should say something along the lines of, “I’m not sure what you’re asking. Maybe some of the options below can help you.” Be sure to link your default message to your navigation items (discussed in the next step).

From this point, you have two options:

  • You can have a navigation-type driven conversation (like a phone menu system)
  • You can have artificial intelligence set up to guide the conversation

The latter is entirely possible with Chatfuel but requires considerable content development on your part. We’ll show you how you can set up AI conversations, but in the DIY guide we provide here, we will focus on getting an MVP version of a chatbot launched using navigation buttons and prompts.

Be honest with your audience.

I’ve always been a proponent, in bot building, of having your bot admit upfront that it actually is a bot. Most chatbot builders have followed the same guideline. Up until recently, the reason for having your bot admit that it was a bot was because our consumers expect (and should be given) transparent interactions with our companies. It just seemed like the right thing to do.

Be honest with your audience: Make it clear that your chatbot is a not a real human.

Recently though, it has become a law in California that your bot admits its true identity upfront… and assuming you’re not going to somehow block your bot from working in California, you’ll need to comply.

Step 5: Set up your conversation navigation.

In this step, you will build your conversation navigation, i.e., the means for an individual to work with your chatbot. In the example chatbot we’re building, we are trying to help our audience find answers to questions they might have about booking a Brian Head, Utah, ski condo.

There are dozens of questions a chatbot user might ask, but for the sake of launching this chatbot in 10 minutes, here are just a few questions we’ll program the chatbot to answer:

  • Where is the ski condo?
  • Do I have to drive from the condo to the resort?
  • What are check-in and check-out hours?
  • How many people does the condo sleepStep #5: Set up the conversation navigation for your chatbot.


To set up the actual navigation, you should build a new “block” for each of these questions. It’s really easy; just click “add block,” and then type in a title for the block. Don’t worry about putting content in yet. Just create the blocks and title them.

Step 6: Link the blocks to the main navigation.

Step #6: Link you conversation blocks back to the main navigation.

Go back to your main welcome message, and click the “add button” option on the message block. Type in the button name — what you want the user to see — in the first field. Then, in the next section, select “block,” and then you can select the block you’d like it to take the user to.

There are two other options you can link to:

  • URL. Put in any URL you would like, and it will take the chatbot user outside of Facebook Messenger to that page. This can be good if you have an external booking or reservation system you would like to direct the visitor to when they ask a question about how to make a reservation.
  • Phone call. Enter a phone number, and the user clicking that button will launch the phone’s dialer and pre-populate a phone number.

For this example, we’ll simply select block, and link to one of the blocks we’ve already set up.

Note: A chatbot works best when it’s conversational. So don’t have your chatbot present users with a long list of options. You want to have just a few top questions, and then have the rest of the logic built into the AI. Chatfuel forces this best practice by only allowing you to have three “buttons” on any given block. ManyChat and most other bot builders follow this same limitation — giving you only three buttons per block. For this example, we’re putting in just the top three most frequently asked questions, and then will build in the AI for other questions.

Step 7: Put in your chatbot dialog.

Building a Facebook chatbot: Adding a card

Now you can create the content that’s displayed when someone asks a specific question. Click on the block on the left, and it will bring up the empty block. Here, select a block type from the following options:

Building Your Facebook Chatbot - Step 7: Put in your chatbot dialog.

  • Text card. This is Chatfuel’s most simple block type. You simply put text into this block. For simple answers, this is a great option.
  • Typing. This simulates an actual human typing in the response. If you’ve used Facebook Messenger to chat with another human you’ve likely seen the little three dots at the bottom left of the window as someone is composing a message to you. You can recreate this effect in your bot, with this “typing” option. Even though it is important to disclose to your users that your bot is indeed a bot, you may still want to use this typing delay to make the conversation seem more realistic.
  • Quick reply. If you build this option into a block, instead of taking them to a new card for an answer, it simply shows a reply. In this way, it behaves more like a chat thread you would be having with a real person.
  • Image. This is another simple block type. With the image block, you upload an image and when triggered in conversation, it simply shows that image.
  • Gallery. This is your best bet if you want to add a few pictures to an answer. In this example, if someone asks, “Can I see some pictures?” we’re assuming they want to see pictures of the ski condo. We would use this gallery and put in a few pictures, a heading that describes what the picture is, and then a subtitle or description. You can also add a URL for each image. You can get really creative with these and use them similar to Facebook’s Carousel Format ads.
  • Go to Block. Selecting this option allows you to send your chatbot user on to another specific block, or small component of a conversational dialog.
  • To Sequence. Similar to the “go to block” functionality, this allows you to redirect a user to a completely new conversational sequence. A sequence usually contains many blocks.
  • +. This “+” sign takes you to a menu of numerous plugins that enable you to integrate your chatbot with other third-party apps or leverage more powerful options inside of Chatfuel. This is one area where Dialogflow is more powerful; Dialogflow has a lot more integration options than with Chatfuel. That said, Chatfuel does have some excellent integrations and will fulfill most chatbot builders’ needs. For example, in the case of a ski condo, you could integrate your chatbot with IFTTT so that when someone asks, “How much snow is there at Brian Head?” the chatbot will talk to IFTTT, which will, in turn, contact your Instagram feed and pull in the latest image you have tagged with #brianheadsnowconditions and the chatbot will then display that image. Sweet, huh!?

Go ahead and use a simple text card to create an answer for each question/answer segment you want the chatbot to support.

Step 8: Create your artificial intelligence.

After you’ve built out all your content blocks, go ahead and click on the “Set up AI” link in the left-side navigation. Here you get to brainstorm all the questions that might be asked of your chatbot and set up answers. The answers can either be new text you enter in this stage, or you can direct them to one of the blocks of content you’ve previously set up.

Step 8 in Building a Facebook Chatbot: Create your artificial intelligence.

There are two components to this step:

  • Phrases to watch for. This is where you put in the different words or phrases you want the chatbot to watch for. For example, in the above example, if a user types in a question or phrase with “directions” in it, the chatbot can return actual directions.
  • Content to display. After the chatbot detects a word or phrase in the conversation, it will return the content you’ve specified. There is a little drop-down where you can select “text” or “block.” If you select text, it will allow you to enter a new text response. If you select block, you can choose the block you want to display and the chatbot will show that content instead.

Step 9: Launch the chatbot

Chatfuel excels at launching your chatbot. In fact, it is already ready to go — as you build your chatbot, Chatfuel is saving and making all your changes live, immediately.

This’s nice because there’s nothing you need to do to launch your chatbot, other than getting the link and putting it on your website, Facebook page, or in your online ads.

All you have to do is click on the “Promote” page in the left-hand navigation menu, and then copy the URL at the top of the page.

Share that URL liberally!

What other bot-building tools are there?

Just a year ago, I could count the bot-building tools on two hands and two feet. As the marketing potential for bots has proliferated, so too has the number of bot-building tools.

Below are a few bot-builders I consider to be the leaders in the space, listed in order from easiest to most complex:

  • Chatfuel
    This bot-builder, as I’ve outlined in the rest of this article, is what I consider to be one of the easiest bot-builders around. That said, Chatfuel still has some robust functionality and would be a good fit for most use cases. It even has a built-in native payment processing feature. This allows users to make purchases directly from your bot.
  • ManyChat
    This is another of my favorite chatbot builders. As I indicated in the section above about lead generation examples, the real estate chatbot that I’ve built was on the ManyChat platform, and was a beauty to build. ManyChat has a very visual builder, called a workflow builder, that makes creating chatbots a breeze. Here is an example of ManyChat’s workflow builder, being used for post-Shopify order communication:

Source: ManyChat

  • Flow XO
    Flow XO began life as an integration platform between chatbots and other tools. It was like the Zapier of chatbots. However, they quickly realized that if they built a chatbot building platform they could gather even greater market share, and so they did. If you need heavy integrations with other third-party tools (Salesforce, Marketo, Google Sheets… practically anything) then I recommend Flow XO. It isn’t nearly as graceful to use as ManyChat or Chatfuel, though.
  • Dialogflow
    Originally called, Dialogflow is a powerful bot-builder maintained by Google. With Dialogflow you have the most functionality of any bot-builders out there, but leveraging the advanced functionality often requires the help of a developer. With Flow XO, ManyChat, and Chatfuel you can build your own bot with no programming expertise.
  • Bot Framework
    Microsoft has some of the most powerful natural language processing available and allows chatbot builders to leverage their system through the Bot Framework. So, if you’re looking to have a human-sounding bot, this chatbot-builder platform may be right for you. Something to keep in mind, though: You’ll need a true developer (or a dozen) to build a bot on the Bot Framework.

Bonus chatbot niches

I’ve started to see new chatbot builders enter the industry that have niche offerings. Instead of being able to build full-feature bots, they are providing a platform to do a smaller niche process, and do it exceptionally well.


MobileMonkey specifically fills a niche need of getting live-chat experiences on to websites, which remember previous conversations to build upon those for future interactions. MobileMonkey makes on-site conversations possible for those building Facebook Messenger bots. They also boast the ability to remember conversations, between conversations, in order to improve the continuity of user experience. They also boast the ability to remember conversations, between conversations, in order to improve the continuity of user experience.


Pypestream is a conversational AI chatbot designed to scale. It is designed in such a way to help customer-centric businesses and enterprises move into the digital age easily as well as provide ongoing stellar customer experiences. One of the primary reasons why I added Pypestream to this article is it is designed to handle any user volume without any embarrassing chatbots mistakes or inefficiencies, or poor customer satisfaction scores. Pypestream is an interesting newcomer that has already won some big clients like Chase, Sling TV, and Royal Caribbean.

Build a chatbot to build your business

In summary, building a chatbot isn’t as complex as it might seem. By leveraging the right chatbot tools, you can not only streamline your customer service and support operations, but you can also provide your customers with a fast, efficient, and valuable experience.

Chatbots are here to stay, so start building yours today.

Read more of Ben Beck’s martech mastery:

how to manychat with facebook messenger, chatbot, api, MANYCHAT TUTORIAL 2021

The Complete Beginner’s Tutorial to Creating an AI Bot on Facebook Messenger

AI or Artificial Intelligence has become a buzzword these days. And Facebook chatbots are no exception to artificially intelligent technologies. For a smooth and well-rounded marketing strategy, this is something you can't steer clear of.

Moving forward, using a chatbot has become a standard when it comes to prompt customer support and happiness. In this article, we will define you what a Facebook chatbot is and how you can set a chatbot for your facebook page's messenger. Now, let's go ahead.

What Is a Facebook Messenger Chatbot?

Facebook Messenger Bot Tutorial

Facebook messenger chatbot is an artificially trained bot that mimics human intelligence level and converses with your visitors or customers without even the need for any human assistance.

For this purpose, chatbots always try to hide the fact that they are artificially trained bots when they are serving or reacting to its users.

Why Do You Need a Facebook Messenger Chatbot?

As a business professional, you should streamline your marketing and customer support system with a facebook messenger chatbot to have an edge over your competitors.

The users of Facebook Messenger is almost equal to the entire number of users of Instagram, Twitter, and Snapchat together.

Facebook Messenger Bot Tutorial

Thus, you should definitely take the advantages of the Facebook messenger to your good book.

Here are some of the predicted use cases for chatbots that can be pretty useful for you:

  • Getting a quick answer in an emergency.
  • Resolving a complaint or problem.
  • Getting detailed answers or explanations.
  • Finding a human customer service assistant.
  • Making a reservation (e.g. restaurant or hotel).
  • Paying a bill.
  • Buying a basic item.
  • Getting ideas and inspiration for purchases.
  • Adding yourself to a mailing list or news service.
  • Communicating with multiple brands using one program.
Facebook Messenger Bot Tutorial

Here Are Some of the Basic Benefits of Facebook Page Bots:

Chatbots are a proven way to provide a far more personalized experience and ensure much more customer engagement. Here are a few benefits:

  • Mobile friendly customer service.
  • Integration to e-Commerce platforms to increase sales.
  • Automatic sending and receiving text and images.
  • Parsing information to actionable steps.
  • Providing answers with predetermined questions.
  • Being able to send bulk push notifications.
  • Offering in-depth analysis performance of the chatbots.
  • Chatbots become smarter with more usages.

How to Create a Basic & Simple Facebook Messenger Bot

We assume that you already have a Facebook page. If you have one, you can easily set a basic facebook auto reply bot from the page settings. Now, let's begin the facebook messenger chat bot tutorial:

First off, click on the dropdown button and select the page that your are going to set the chatbot for.

Facebook Messenger Bot Tutorial

Click on the Settings option.

Facebook Messenger Bot Tutorial

Next, click on the Messaging option:

Facebook Messenger Bot Tutorial

After that, You will get 3 settings for the chatbot:

  1. General Settings
  2. Response Assistant
  3. Appointment Messaging

Configuring General Settings

Now, turn on the “Prompt people to send messages” and “Help people start a conversation with your Page” toggle bars.

Facebook Messenger Bot Tutorial

Prompt people to send messages

This will help your people with a number of ways (Such as open chat window) to send you messages while you are online.

Help people start a conversation with your Page

This option will help your audience use frequently asked questions to begin a conversation with you with ease. The coolest part is that you can edit the FAQs (Frequently Asked Questions) with your own taste and can add multiple questions as well.

Facebook Messenger Bot Tutorial

After finishing editing, don't forget to save the changes.

Configuring Response Assistant

This is the most effective and useful part of the Facebook messaging settings. In this section, you will get three more options. They are:

  1. Send instant replies to anyone who messages your Page.
  2. Let people know when you don't have access to your computer or phone.
  3. Show a Messenger greeting.

You will have to turn the toggle bar on in order to keep them functioning as indicated below with red marks:

Facebook Messenger Bot Tutorial

Send instant replies to anyone who messages your Page

After turning the toggle bar on, your audience will get instant messages showing that you will respond to them as soon as possible. However, you can easily edit them with the Change button:

Facebook Messenger Bot Tutorial

Now, you will get the message editing option with a preview of the message:

Facebook Messenger Bot Tutorial

Edit the message in the way you want. You can also add personalizations in the message text using the ‘Change‘ button. Finally, hit the ‘Save‘ button.

Let people know when you don't have access to your computer or phone

With this option, you can let your visitors know that you are not in front of your device and thus can't give them support instantly.

Show a Messenger greeting

Facebook Messenger Bot Tutorial

You should use this option if you would like to greet your visitor who is on the first time with your page's messenger. You can also edit this option, personalize and save it at your disposal.

And that's it! You have created a basic Facebook bot for your business page.

How to Create an Advanced Facebook Messenger Bot with Chatfuel

You can easily create a Facebook Messenger with Chatfuel while having fun during the process.

I'll not only show you the walkthrough of creating a messenger bot but also guide you with a strategy so that you can grow a good number of audience with it.

It will take only a few minutes to set up the bot but you will later discover a lot of great and exciting ways to maneuver it more efficiently.

Step 1: Sign up for a Chatfuel Account with Your Facbook Account

Facebook Messenger Bot Tutorial

First off, visit the homepage of Chatfuel and click on the “Get started for free” button.

Facebook Messenger Bot Tutorial

After that, you will be prompted to log in to your Facebook account and you will then have to confirm your Facebook account ID to proceed.

Facebook Messenger Bot Tutorial

Chatfuel will receive your profile picture, email and name. However, it will not let the app publish itself on your Facebook timeline. So, rest assured!

Step 2: Link Your Facebook page

At this stage, you will have to link your Facebook page. To do so, select your Facebook page by checking it and then hit the ‘Next' button to go forward:

Facebook Messenger Bot Tutorial

Next, Chatfuel will show you all the details that they will do for your pages. Keep all the toggle bars turned on. Now, hit the ‘Done‘ button to go to the next step:

Facebook Messenger Bot Tutorial

Then, you will get a success message showing that you have now linked Chatfuel to Facebook. Click ‘Ok' to proceed:

Facebook Messenger Bot Tutorial

After the successful Facebook login, you will be taken to the Chatfuel account dashboard. Now, to finalize the addition of your Facebook page hit the ‘CONNECT TO PAGE‘ button.

Facebook Messenger Bot Tutorial

For now, we will be using the free version. You can later buy the PRO version down the road:

Facebook Messenger Bot Tutorial

Step 3: Create a Messenger Greeting

Now, you will have to create a welcome message to greet your customers (We have already shown it though). This is very important because it guides your users on what to do next without thinking much.

  • Go back to your Facebook page > Settings > Messaging
  • Now switch the Show a Messenger Greeting toggle bar to Yes
  • Now, click Change
  • Now type the greeting message for your user, and then save the changes.

Step 4: Create a welcome message

You have to configure a welcome message for each session your users start a chat session with the bot. Fortunately, in Chatfuel, you can easily greet your customers with a welcome message using your first name. Follow these steps:

  • Navigate to your Chatfuel dashboard and then click on Welcome Message
  • Add your preferred welcome text to the box. For example, “Hi {{first name}}, may I know what are you looking for?”

That's all. You don't even save the changes by hands because it is saved automatically. To check how it works, you can visit your Facebook page and use the Message button to test its efficacy.

Step 5: Create a default reply

Sometimes, your Chatbot will fail to answer too critical questions. To answer these types of questions, you will have to set default answers to help them what to do next. For example, you can set the replies to contact your support team, rephrase their question, use email or phone number to contact the helpdesk, etc.

Follow these steps:

  • Go back to your Chatfuel dashboard and select the Default Answer button.
  • Now you will find a set of placeholder texts. Change the texts to something more friendly. For example: (“Pardon me. I’m can not help you out but I am forwarding your queries to the customer care department. Please be patient.”)

Again, your changes are saved automatically.

Step 6: Unleash the Power of AI

Facebook Messenger Bot Tutorial

You will feel the greatness of Chatbots when they can understand almost all the queries your customer ask. And this is where the concept of AI comes to the play. Since Chatfuel uses keywords to train its AI system you will have to feed some keywords to get the most of its AI system.

Follow these steps to train the AI system of the Chatbot:

  • Navigate to the Chatfuel dashboard, select Set Up AI > Add AI Rule
  • Now add a keyword that your customers are likely to use like ‘Refund policy’ in the If User Says Something Similar To box
  • In the accompanying Bot Replies with Text box, enter a useful reply like “We have no question asked policy but it is void until the product has the valid license period,” together with a link to your refund policy documentation page.
  • Now that you know the process of adding keywords, you should keep training the bots for as many keywords as possible so that the AI system gets more efficient over time.

Bonus Tips:

You can take help from your customer care department to get the most frequently asked queries from the user to train the AI system.

Step: 7 Add a Message button to your Facebook page

The Message button does not appear automatically and so you have to set it up manually in order to make it work. Follow these steps:

  • Log in to your Facebook account > Select your page > Add a Button.
Facebook Messenger Bot Tutorial
  • You will get a popup window, select Contact You and Send Message option from therein:
Facebook Messenger Bot Tutorial
  • Select Messenger and hit the Finish button.
Facebook Messenger Bot Tutorial

Now, the Send Message button will be discoverable publicly and your users can start chatting with the bot.

Bonus Tips:

The best part of Chatfuel is that you can embed it on your website to conduct messenger-based marketing.

To this end, you can follow their tutorial and documentation so that you can use Chatfuel on your website.

Ending Thoughts

We hope that this guide will help you set the Facebook messenger bot well on your website. Besides, the user interface of Chatfuel is also friendly enough and you will find everything under your belt quickly.

Finally, I would like to say that building the AI Facebook messenger bot will not cost you arms and legs and it is actually worth the investment. That's because you don't have to spend too much on hiring new customer support employees.


Now discussing:


590 591 592 593 594