your problem can be solved using Microsoft Bot Framework.
you should try at least once.
Here are the steps.
Step 1: Firstly, you have to install some prerequisite software,
Visual Studio 2015 Update 1.
Also Update your all Visual Studio extensions through tools > Extensions and Updates > Updates.
Step 2: Download the Bot Application Template from the following link:
Bot Application Template.
The above link will download a ZIP File, just save that ZIP file in “%USERPROFILE%\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C#".
Step 4: Now open your Visual Studio.
Step 5: Now create a new Bot project in Visual Studio. To create a new Bot Project, here are the steps:
First of all go to File, New, then Project or press CTRL +SHIFT + N.
Now one dialog box will open. From that select Visual C# Project and you will find an option Bot Application, choose that and give the name of the project.
Open Web.Config File, and give the AppId and AppSecret keys for your project. If you are running this project locally, then you can give any AppId and AppSecret.
<add Key="AppID" vaule="CshrpDemoapp" />
<add key="AppSecret" value="DemoAppSecret" />
Step 6: Now if you expand your Controllers folder you will get only one Controller File that is "MessagesController",
you can see all use full Functions in MessagesController.cs
Now to emulate your application you have to open the Bot Framework Emulator. You can download Bot Framework Emulator from the following link.
I hope this will help you