Skip to content

Files

Latest commit

 

History

History

bot_direct_line_extension

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Deploy Solution

terraform init 
terraform apply --auto-approve

Remember to change DirectLineExtensionKey in the web app.

Deploy the bot to the web app

az webapp deployment source config-zip -g $resourceGroup -n $webappName -p "bot.zip"

Get Bot Token

curl -X POST -H "Authorization: Bearer <DIRECTLINE_CHANNEL_SECRET>" https://<WEB_SITE_NAME>.azurewebsites.net/.bot/v3/directline/tokens/generate

Log Queries

customEvents 
| where customDimensions.StatusCode <> 200
ABSBotRequests
| where Channel == "directline"
| summarize Number_Of_Requests = count() by tostring(ResultCode), bin(TimeGenerated, 5m)
| render timechart

Generate dotnet project

dotnet new -i Microsoft.Bot.Framework.CSharp.EchoBot
dotnet new -i Microsoft.Bot.Framework.CSharp.CoreBot
dotnet new -i Microsoft.Bot.Framework.CSharp.EmptyBot
dotnet new echobot
az bot prepare-deploy --lang Csharp --code-dir "." --proj-file-path ".\DirectLineEchoBot.csproj"