Connecting FAQ Bot to Social Channels
In the last chapter, I explained the Azure Bot framework offering, called the Web App Bot service. We created and integrated QnA Maker knowledgebase into the Azure Bot service. In this chapter, I explain how to connect the bot to social channels.
- PDF / 891,325 Bytes
- 12 Pages / 439.37 x 666.142 pts Page_size
- 98 Downloads / 196 Views
Connecting FAQ Bot to Social Channels In the last chapter, I explained the Azure Bot framework offering, called the Web App Bot service. We created and integrated QnA Maker knowledgebase into the Azure Bot service. In this chapter, I explain how to connect the bot to social channels.
Available Social Channels You must be aware of the power of social channels. You can double your audience reach with the help of social channels. They help you get easily connected to your target audience, more easily meeting your business requirements for bot development. Consider you own Facebook page for selling an online product. You developed a product FAQ bot and integrated it with your Facebook messenger. Imagine the ease of response and the wider customer reach you may receive by implementing this. Similarly, say you are running a campaign via an SMS medium. You want your incoming SMS to respond to the user or participant with a required answer. Here, you develop a bot, and your bot is handling the said flow. Your campaign will be boosted to the next level!
© Kasam Shaikh 2019 K. Shaikh, Developing Bots with QnA Maker Service, https://doi.org/10.1007/978-1-4842-4185-1_5
99
Chapter 5
Connecting FAQ Bot to Social Channels
Interesting! There are many such use cases, wherein you or your organization would benefit from having connected to social channels. The Azure Bot Service presents you with an easy interface in the Azure portal to get your bot connected to social channels. In the Service blade, under Bot Management, there is a section named Channels. Navigate to this section under Bot Management to find all the available social channels. At the time of writing this chapter, there are 12 social channels supported to get connected via the Azure Bot Service, four of which are listed as Featured channels. They are: •
Cortana
•
Direct Line
•
Microsoft Teams
•
Skype
Other channels available include these: •
Facebook Messenger
•
GroupMe
•
Kik
•
Skype for Business
•
Slack
•
Telegram
•
Twilio (SMS)
•
Web Chat
By default, Azure Bot is already connected to the Web Chat channel. Let’s connect our bot to one of the available channels.
100
Chapter 5
Connecting FAQ Bot to Social Channels
Connecting the Bot to Telegram Every channel has its own way to talk with Azure Bot. The authentication and authorization processes differ from channel to channel. In this chapter, I show you the process of connecting Azure Bot to Telegram, a cloud-based instant messaging service used globally. To connect the channel, you have to open the Microsoft Azure Portal in any browser. 1. Open the Web App Bot resource we created in the last chapter. 2. On the Service blade, under Bot Management, click the Channel section. Here you will be presented with the available social channels. Click on the channel icon you want your bot to connect to. In my case, it’s Telegram. 3. This will present you with an interface to provide an access token. This token comes with the bot you create in the Telegram app. You need to create a
Data Loading...