bfcomposerhelpers

Custom Actions for Bot Framework Composer

MIT License

Stars
1
Committers
1

bfcomposerhelpers

Custom Actions for Bot Framework Composer

Actions available

Cosmos DB Query

Queries an Azure Cosmos DB database

Cosmos DB Upsert

Inserts or updates a document in an Azure Cosmos DB database

Cosmos DB Delete

Deletes a document in an Azure Cosmos DB database

Publish Event Grid Event

Publishes an event to an Azure Event Grid topic

Hello World

A simple action which requires no parameters and just sends "Hello World!" to the user. This can be used to test that the library is properly installed into your Composer bot.

Installation

  1. Open your bot in Composer

  2. Eject the Runtime if you have not done so already (C# version)

  3. Enable the Package Manager feature in the Preview features section of the application settings page

    Enable package manager.

  4. Go to the package manager page of Composer

  1. Click Install Package

  2. Enter "NegativeEddy.Bots.Composer" as the package name in the dialog and enter a version

  3. Click Import (composer may take a while to process this step)

NOTE: At this point you can start using the actions in the designer but the bot will fail if you try to run it with the actions in place.

  1. Open the file in your bots directory .\runtime\azurewebapp\Startup.cs and make the following changes
  2. add a using statement at the top
using NegativeEddy.Bots.Composer.Actions;
  1. Find the section in the Startup() method where that looks like this
            // register components.
            ComponentRegistration.Add(new DialogsComponentRegistration());
            ComponentRegistration.Add(new DeclarativeComponentRegistration());
            ComponentRegistration.Add(new AdaptiveComponentRegistration());
            ...

and add this line

        ComponentRegistration.Add(new NegativeEddyActionComponentRegistration());

Now the runtime is ready, add some actions and try it out!!!