Skip to content

wilsoncg/bot

Repository files navigation

Rachael - C# Azure Bot

Rachael

Features:

  • .NET Core 3.1
  • Running on a consumption model as an Azure serverless function v3.x
  • Connected to the LUIS language understanding service v2.0
  • Bot Framework SDK v4
  • Connected to twitter API v2
  • Custom OAuth ASP.NET DelegatingHandler
  • Uses Adaptive cards v1.2 for web chat

To build & Run:

$ func host start --csharp
  • Install ms-azuretools.vscode-azurefunctions vscode extension. Then F5 for Debugging in VSCode.

Run botframework-cli tools locally

docker build -t wilsoncg/bf-cli .
docker run wilsoncg/bf-cli luis

Bot Framework Emulator application

Here you can see Rachael in the bot framework emulator v4:

Rachael running in the emulator

AdaptiveCards vs HeroCard

Adaptive cards are only supported in certain channels. We therefore render tweets as an AdaptiveCard for the webchat channel, and as a HeroCard for the skype channel. Refer to the Azure bot service channels reference.

Tweet as HeroCard:

Tweet as HeroCard

Tweet as AdaptiveCard:

Tweet as AdaptiveCard

Nuget referenced packages:

Useful links:

Portal links:

Azure functions (Getting help):

Old links: