This project serves as an example of how one can build a HipChat Connect add-on for Microsoft Bot Framework bots using Atlassian-Connect-Express and DirectLine.
The Microsoft Bot Framework natively supports a set of channels out of the box. In order to support your own channel, you'll need to use the Direct Line API to expose your bots to the channel. This HipChat Channel for the Microsoft Bot Framework is a demonstration of how to implement your own channel support.
-
Git Clone
$ git clone [this_git_repo] $ cd botframework-hipchatchannel
-
Setup ngrok to develop locally (see this for more info).
$ ngrok http 3000
Update the
localBaseUrl
variable inconfig.json
with the HTTPS address of your ngrok instance -
Configure the Direct Line secret for your Microsoft Bot Framework bot
$ export DIRECT_LINE_SECRET=[your_direct_line_secret]
Assuming you already have a bot running using the Microsoft Bot Framework, the Direct Line Secret can be obtained through the Bot Framework developer portal in the channels list. Ensure that v3.0 is enabled.
-
Start Redis
$ redis-server
-
Start the app
$ npm install $ node app.js
-
Deploy your bot created using the Microsoft Bot Framework You can use the sample bot included in this project.
-
Get the Direct Line Secret from the Bot Framework developer portal and configure the
DIRECT_LINE_SECRET
env variable -
From a browser, navigate to the HTTPS address of your ngrok instance
-
Install the connector to a room in your HipChat instance. See this for further details.
-
Start chatting with the bot
-
Here are examples of some of the basic cards from Bot Framework:
Hero card
Thumbnail card
Receipt card
Signin card