Build a Basic Chatbot and Deploy It to Facebook Messenger

Build a Basic Chatbot and Deploy It to Facebook Messenger

 

What’s a Chatbot?

A chatbot is an Artificial Intelligence powered program that can answer questions automatically. Some of the popular messaging apps that you might already know include Facebook Messenger and WeChat. The main purpose is to engage customers and collect valuable information.

Wait, Why Do I Need a Chatbot?

Most customer inquiries that you receive are essentially asking about the same kind of questions: do you open on the weekends, what sort of products do you sell, and etc. They are mostly questions that can be easily answered, but the repetitiveness and volume of these questions still mean it’s time out of your (or your staff’s) day to address them. Follow the Rocketbots Chatbot Academy and we’ll show you how you can automate responses and more.

 

Planning the Purpose of Chatbot

1 Collect inquiries and FAQs: Collect the most frequently asked questions. The questions are also called expressions in chatbot development. Basically, expressions represent a user’s desire or aim.

2 Group the intentions: Group the questions into their corresponding intentions. This is to group the expressions by the aim the user has so as to get a more clean and organized set of categories to handle. Sort them by the most common intents, such as opening hours, products, and location for the chatbot to tackle.

3 Provide responses: Provide a response that satisfies each intent.

 

Building Chatbot on DialogFlow

1 Create an Account: Go to a free chatbot building tool like DialogFlow and make an account.

2 Create an agent: Go to the dashboard, and click “Add Agent” at the top left. Give the agent a name and make sure the agent is in the right language and time zone. Then click “Create”.

3 Create intentions: Create the first intention by clicking “create intent” at the top right, and give it the name “Opening Hours”. Proceed by clicking “Add Training Phrases” and input the expressions you’ve seen customers ask before, and any other expressions you think a user might say to get the same answer. It’s best practice to use a minimum of 20 expressions.

4 Create responses: Click “add response” by scrolling down the page. Then add the store business hours or other corresponding response to your intent. Save the intent at the top right, and repeat the process for each of the other 2 intents.

Now the chatbot is at its most basic level, and ready for deployment on Facebook.

 

Deploying Chatbot on Facebook Messenger

1 Connect the Platform with the Agent: Go to the Rocketbots Platform dashboard. Click the plus sign next to the Space list, and you’ll be brought to a window that allows for the connection of the agent from DialogFlow to the Rocketbots Platform.

2 Name the Bot: Give the bot a name, then continue.

3 Choose a Channel: Select a channel, such as Facebook Messenger, and click “Next”. Give Facebook permission to connect if it’s your first time connecting. 

4 Select a Page: Select which Facebook page to deploy the bot.

5 Complete the Connection: Add your DialogFlow API Tokens to complete the connection and deploy your agent.

 

To continue improving your chatbot, check out the next section of the Rocketbots Chatbot Academy series.

Author
Robert Rafferty

Robert is a Growth Hacker enthusiast that’s joining Rocketbots as the Head of Growth. He helps Rocketbots in becoming the voice of all things conversation and is famous for wearing shorts to the office. A graduate of the College of Business at Florida Atlantic University.