Click here to Skip to main content
15,887,585 members
Articles / Hosted Services / Azure
Tip/Trick

Instant Conversational Bots with the MS Bot Service and DARL

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
14 Apr 2018CPOL3 min read 9.1K   4   1
Create a conversational bot inside the Microsoft Bot framework instantly that requires no programming and can be easily modified to suit your use, but that still gets all the connectivity of the bot framework, to Skype Facebook messenger, etc.

Introduction

Creating a bot with the Microsoft Bot Framework is a great deal of work, requiring good C# skills as well as language skills. There is a much easier way that creates an instant conversational Bot within the Bot framework and Azure Bot Service, that you can then modify for your needs. You still use the bot framework, so you can connect the bot to skype, Facebook nessenger, a webchat control, telegram slack, etc, just by configuring your bot in Azure.

Background

Bots actually have a long history going back to the 60s. I remember writing one in 1984 on A VAX system that emulated a particularly annoying co-worker! The general principle is to recognise sequences of text and to have pre configured answers. In addition, you may want to capture data values for re-use and to vary the responses randomly, or based on previously captured data. That gives a fairly convincing Bot - Most of the Turing prize participants have used this system. To be really useful though, the bot ought to be able to interact with external services and it ought to be able to move into much more complicated interactions, to offer advice or provide a service. The DARL Bot system offers just such a service. You can create a conversational Bot that can trigger expert system type fuzzy logic rules that perform some more complicated processes. There are examples on the site of personality tests, tax calculations and RobotLaw applications like disputing a parking ticket, claiming for flight delays or creating a compliance document. Bots can also access external services - sending emails, SMS messages, etc.

Creating Your First Bot

You will need a Microsoft™ Azure account which you can get here.

To begin, go to the Microsoft Azure Portal and log in to your account.

Select Bot services.

Bot services in portal

Select Add and then Bot Channels Registration.

Bot service Add

Select Create.

Fill in the name of the new bot, which must be as yet unregistered, and fill in the other values.

Bot channels registration

Either set the appid and password yourself, or auto create.

Select Create again.

After a short period, your Bot connection will be created.

Select the bot you have just created, go to settings and then above the App ID, click on manage.

At this point, you need to get an account with the DARL bot service. Just go to https://darl.ai/account/freetrial.

Note that you need a Microsoft Account.

Now, in Darl.ai, select the model you wish to use for the bot on the models page.

Select Open model and then choose Connectivity on the left side bar.

Bot connectivity

Click the +row button and fill in the App ID and the password from the portal settings. You may need to create a new pasword.

Now click Save connectivity at the bottom of the page.

Back on the Portal Settings page in Azure, set the messaging endpoint to “https://darlbot.com/api/messages“.

messaging endpoint

Save the changes to the bot in the portal.

Now, if everything has worked, you should be able to test the new bot using the Test in web chat link.

Test in Webchat

You can make changes to the selected bot using the Edit tree page.

You can switch the bot model used by deleting the appropriate row in the Connectivity Bot Framework’s connection, (making note of the App ID and password) opening the preferred model on the models page, going back to connectivity, now for the new model, and adding the removed credentials to that bot model.

That's it. Once you have a working bot you can connect it to Skype, Facebook Messenger, etc. by creating accounts with each portal and setting those in the Azure Bot Service.

History

  • 04/14/2018: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionError while signing up on Darl.ai Pin
Member 1379346123-Apr-18 4:22
Member 1379346123-Apr-18 4:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.