Click here to Skip to main content
13,901,142 members
Click here to Skip to main content
Add your own
alternative version


4 bookmarked
Posted 14 Apr 2018
Licenced CPOL

Instant Conversational Bots with the MS Bot Service and DARL

, 14 Apr 2018
Rate this:
Please Sign up or sign in to vote.
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.


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.


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

Note that you need a Microsoft Account.

Now, in, 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 ““.

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.


  • 04/14/2018: Initial version


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


About the Author

United Kingdom United Kingdom
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionError while signing up on Pin
Member 1379346123-Apr-18 4:22
memberMember 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.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web06 | 2.8.190306.1 | Last Updated 14 Apr 2018
Article Copyright 2018 by AndyEdmonds
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid