BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

Bot Component Sample - JS

Open clearab opened this issue 3 years ago • 5 comments

We need to create samples for developers to get started creating components for Composer bots.

  • Samples should be full bot projects, with the component in a separate folder from the bot.
  • README should include instructions for opening the bot from Composer.
  • Base bot should be the empty bot template
  • Samples should have dialogs/actions that exercise the components

We need:

  • [ ] Custom action (based on existing multiply documentation)
  • [ ] Custom trigger (memberAdded & memberRemoved)

clearab avatar May 06 '21 19:05 clearab

@clearab we don't yet have a great story for developing a component alongside a bot in JS short of some complex use of yarn link. Is this something that works well in .NET?

joshgummersall avatar May 06 '21 19:05 joshgummersall

Yes - is this a solvable problem in JS?

clearab avatar May 06 '21 20:05 clearab

Hi @clearab @joshgummersall, Do you have any expectation as to when this documentation & samples will be available?

I have been trying to setup the MultiplyDialog using the node runtime, but am running into some issues as described here: https://stackoverflow.com/questions/67876232/custom-action-for-composer-2-0-bot-not-executing

If I can get some assistance with that, it would give a complete example and resolve part of #3252

Thanks :)

alexstojda avatar Jun 07 '21 17:06 alexstojda

@alexstojda, my best guess is something was wrong with your NPM installation or linking. I use yarn with workspaces to test these scenarios locally. I submitted a PR to your repo that sets this up. Give that a shot and see if works!

joshgummersall avatar Jun 07 '21 18:06 joshgummersall

@joshgummersall thanks for the help! It worked perfectly :)

alexstojda avatar Jun 07 '21 18:06 alexstojda