BotSharp/BotSharp.Channel.Weixin
2019-03-07 09:25:30 -06:00
..
Controllers upgrade dependent libraries. 2019-02-19 07:07:04 -06:00
Models update dependent libraries 2018-11-19 09:02:51 -06:00
BotSharp.Channel.Weixin.csproj update UI. 2019-03-07 09:25:30 -06:00
LocationService.cs Build-in Tencent Wechat channel. 2018-11-01 10:29:31 -05:00
ModuleInjector.cs Build-in Tencent Wechat channel. 2018-11-01 10:29:31 -05:00
README.md Build-in Tencent Wechat channel. 2018-11-01 10:29:31 -05:00
Server.cs Build-in Tencent Wechat channel. 2018-11-01 10:29:31 -05:00

botsharp-channel-weixin

A channel module of BotSharp for Tencent Weixin

How to install through NuGet

PM> Install-Package BotSharp.Channel.Weixin

How to run locally

git clone https://github.com/dotnetcore/BotSharp

Check app.json to use DialogflowAi

{
  "version": "0.1.0",
  "assemblies": "BotSharp.Core",

  "platformModuleName": "DialogflowAi"
}

Update channels.weixin.json to set the corresponding KEY

{
  "weixinChannel": {
    "token": "botsharp",
    "encodingAESKey": "",
    "appId": "",
    "agentId": "60bee6f9-ba58-4fe8-8b95-94af69d6fd41"
  }
}

F5 run BotSharp.WebHost

Access http://localhost:3112

Import demo (Spotify.zip) agent located at App_Data

Train agent (id: 60bee6f9-ba58-4fe8-8b95-94af69d6fd41)

Or refer BotSharp docs to design your new chatbot.

Setup Wechat webhood from https://mp.weixin.qq.com/.