Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop Custom Action on Bot Framework v2.0

Could someone please help with how to enable / develop custom action with latest preview / 2.0 version of Bot Framweork. The microsoft documentation only seems to work for v1.4.1

Thanks

like image 714
Jaydev Avatar asked Feb 21 '26 15:02

Jaydev


1 Answers

So, BotComponents are the new route for custom actions. Please follow the directions here. The two things you will likely have to change are:

  • Update/add a newer package for Microsoft.Azure.KeyVault.Core. I went with 3.0.5 for both projects.
  • Use "components":[{"name":"MultiplyDialog"}] instead of "components":[{"name":"CustomAction.MultiplyDialog"}].

On point #2, I was getting a build error (FileNotFoundException: Could not load file or assembly 'CustomAction.MultiplyDialog) and thefore did the above to resolve. Odd thing here is that once I was able to build in VS, then run and test in Composer, it's once again back to CustomAction.MultiplyDialog, but it works.

This documenation should make it's way to the Composer documentation once 2.0 is released.

like image 146
Dana V Avatar answered Feb 27 '26 10:02

Dana V



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!