Rahul Kalidindi
Rahul Kalidindi

Reputation: 4736

Using BotFramework DirectLine without Azure Bot Service

I am looking to create a Bot integrating the Bot Framework DirectLine API that they offer.

But, I wanted the service to be Cloud Service agnostic. So, the idea is to use the BotFramework capability to start the conversations and persist the conversation cache using the conversation id it generates but the business logic can be on any cloud service (AWS/Google/IBM Cluod) etc.

Is it possible to design the same using the DirectLine API's with out getting bound to using Azure Bot Service?

https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-directline?view=azure-bot-service-4.0

https://learn.microsoft.com/bs-latn-ba/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-receive-activities?view=azure-bot-service-3.0

Upvotes: 1

Views: 1380

Answers (1)

ranusharao
ranusharao

Reputation: 1854

The Bot Framework works with bots deployed on any cloud hosting service, as long as you have an internet-accessible endpoint and a valid HTTPS cert.

  • This issue explains on how you can run your bot on IIS or any other bot hosting service.
  • One example of an unofficial implementation of directline that does not require Azure is offline-directline. This example sets up a local web server that emulates the DirectLine API and tunnels the requests through to your bot.
  • With respect to hosting your bot on IIS or any other cloud services, keep in mine that
    'The Bot Framework requires that the x.509v3 certificate exposed by your endpoint be current and valid. Most of the checks for "current and valid" are standard checks for server certs: the CN must match the hostname, it must not be expired, it must not be listed in a CRL, it must have the correct set of EKUs, etc. Most importantly, your cert must chain to a root certificate authority trusted by Microsoft. The latest list of these CAs is available here.'

Note: offline-directline is an unofficial private package and bot framework container support is not officially supported. Refer to this answer on using localized version of Direct Line API with botframework. Hope this helps.

Upvotes: 1

Related Questions