A javascript application for empowering users to achieve TRIRIGA functionality through the Microsoft Teams using the Microsoft Bot Framework More details.
Some examples of some features you can expect:
- Booking Rooms
- Opening Service Requests
- Finding Locations or People
- Answering Questions about your site
The following are required to use this software:
-
An IBM TRIRIGA instance that is accessible via the internet
-
Importing and performing setup steps for TRIRIGA Assistant which includes provisioning of TRIRIGA Assistant Services by the IBM AI Applications - TRIRIGA Voice Enablement team.
-
Access to a Teams workspace with privileges to create Teams applications.
-
An Azure Account
-
Latest Node.js with NPM. Download it from here.
-
The IBM Cloud CLI.
-
The Bot Framework Emulator for local testing. To install the Bot Framework Emulator, download it from here. Please refer to this documentation article to know more about the Bot Framework Emulator.
Teams-Bot has a handful of environment variables that need to be set.
First, copy the sample.env
file to .env
.
Edit the .env
file and provide the following information:
# TRIRIGA Assistant Info
TA_PROXY=
TA_INTEGRATION_ID=
#Microsoft Bot Info
MicrosoftAppId=
MicrosoftAppPassword=
TA_PROXY
TA_INTEGRATION_ID
- the Integration ID provided by the IBM AI Applications - TRIRIGA Voice Enablement Team.
- Create an Azure account if you don't have one already
- Create a Web App Bot Resource if you don't have one
- Find and copy down the
MicrosoftAppID
andMicrosoftAppPassword
(In the Settings under the Configuration row)
- Find and copy down the
- Install the Bot Framework Emulator
- Run the Teams Bot code using
npm start
- Enter in the bot URL:
http://localhost:3978/api/messages
if testing locally - Enter in the Microsoft App ID and Microsoft App Password to test
Bot tested with Bot Framework test client:
Prerequisites: IBM Cloud CLI
$ ibmcloud app push
- Go to the Web App Bot resource and change the Messaging endpoint to the Bluemix hosted link and make sure it ends with
/api/messages
- Click "Test in Web Chat"
- Click "Channels"
- Click on the purple Teams icon
- Select "Microsoft Teams Commercia"
- Click Save
- Open a Teams workspace and install the App Studio app if you don't have it
- Open App Studio > Click on "Manifest editor" > Click on "Create a new app"
- Fill out the required information in
App details
- Name, Package name, Version, Description
- Generate an App ID
- In Capabilities under
Bots
:- Set up a bot > Existing bot
- Enter in your bot ID (same as
appID
)
- In Finish:
- Test and distribute > Download the app
- Go to
More added apps
in teams (...
icon) > Click onMore apps
- Click on
Upload a custom app
on the sidebar - Upload the zip app manifest created in the previous step
- To chat with the assistant, click on the
Chat
icon in the side bar and chat with the assistant
Conversation with Watson via Microsoft Teams:
To get more information about how to get started, please review the following resources: