How to deploy MS bot to AWS as a serverless service - aws-lambda

I developed a chat bot based on MS Botframework, but it seems that I have to create a rest server for it. but I prefer to deploy it as a serverless service, such as Amazon lambda, How can I achieve this? any suggestions?

I don't see how you could publish a bot as an AWS lambda, but Azure has the Azure Bot Service which is similar:
Azure Bot Service is powered by Microsoft Bot Framework and Azure Functions. By using Azure Functions, your bot will run in a serverless environment on Azure that will scale based on demand.

Yes you can deploy it to AWS. I currently have this use case, build a bot for Microsoft Teams app and deploy it to was lambda using https://github.com/vendia/serverless-express

Related

Azure Pipelines Integration with Microsoft Teams Possible or Not Possible

I was going through doc "" https://learn.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops"" which says integration of Azure Pipelines with Microsoft Teams is only possible if your project is hosted on Azure Devops Services
So right now my project is hosted on Azure devops Server(TFS) will i able to use "Azure Pipelines with Microsoft Teams"
Azure Pipelines app for Teams only available on Azure DevOps Services currently. You could submit a user voice at website below for Azure DevOps Server:
https://developercommunity.visualstudio.com/report?space=22&entry=suggestion
Azure Pipelines with Microsoft Teams for Azure devops Server is a feature under development. Currently it is not possible.

How to connect local hosted Azure BOT from your web application

I have created an BOT with Microsoft BOT Framework and published in local IIS. Now I want to connect that from my web application, So far I found this could be only possible through direct line from azure portal. Is there any other way to do that?
Now I want to connect that from my web application, So far I found this could be only possible through direct line from azure portal. Is there any other way to do that?
In my opinion, the Microsoft BOT Framework application is just a service which provide the bot endpoint. You could host it in anywhere.
If you want to connect to your web application or something else. You need to use a channel to connect the bot with other application. You should register the bot and enable the channel to let your bot work. The Azure provide multiple chanels to register the bot like webchat. You could also build the channel by yourself, but you should think about a lot of things.
More details, you could refer to below answer:
How to connect local hosted Azure BOT from your web application

The benefits of hosting a bot on Azure Bot Service compare to hosting a bot on a typical Web App hosting

A bot is essentially a web API and so it can be hosted on any web service.
I am abit confused when one of the following approaches should be prefered over each other:
Option #1 Host a Bot on Azure Bot Service
Option #2 Host a bot as a plain PaaS Web API
Currently I am hosting my bot on a plain Azure PaaS App Services. It is working very well.
However, I expect there must be some advantages to hosting a bot on Azure Bot Service.
When I go through the documentations the following example shows how to Create an Azure Bot Service in Azure Portal, download its code, change it then deploy it again to the same Azure Bot Service:
https://learn.microsoft.com/en-us/azure/bot-service/bot-service-build-download-source-code?view=azure-bot-service-4.0
In contrast, the following example shows how to build a bot in Visual Studio and publish it to an Azure Web App:
https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-deploy-azure?view=azure-bot-service-4.0
What are the advantages of hosting a bot on Azure Bot Service?
Is there any resource or article that contrasts the two options?
They are essentially the same thing under the hood. A bot is basically just an API endpoint so there are many ways to host you bot. If you create A bot service you get options to add other services from the creation page. Whereas if you just create a web app or app service you will have to manually add these things.
Creating a Web App Bot will allow you to all in one step create:
Bot Channels Registration
Choose a template to start with
Configure a Luis app
Add Azure Storage
Add application insights

How to use REST API services in azure Bot framework

I am using Bot builder SDK 4.0 with node.js
I don't wanna use Azure bot service api, instead I will use my own node service.
Requirement :
Wanted to have a complete Custom UI/UX for my bot.
Single Azure bot application with many different bot clients running.
If you use the BotFramework with the default BotFramework adapter, you will be using the Azure Bot Service APIs like the DirectLine channel. You can use the BotFramework-DirectLineJS package if you want to build your own webclient for your BotBuilder bot.
Also note that at the time of writing, the BotFramework-Webchat package has a new version in preview which you can find here. This version is rebuilt from scratch and provides rich customization options which could be worth a try.

deployment of the bot in microsoft bot framework

is there possible to deploy our bot in visual studio our project bot in azure resources is there possible to deploy??
also with database and mail sending SMTP server
we have subscription and all
then how to deploy bot in azure
You can deploy you bot to Azure. Its a MVC WebApi project like others. If you need SMTP mail, you can use services like SendMail to that. For Databases, you can also use one of the many that azure provides (eg. DocumentDB, SqlAzure).

Resources