Git Product home page Git Product logo

tririga-assistant-teamsbot's Introduction

version nodejs semver TRIRIGA TRIRIGA Assistant

TRIRIGA Assistant Teams Bot

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

overview

A. Requirements

The following are required to use this software:

  1. An IBM TRIRIGA instance that is accessible via the internet

  2. Importing and performing setup steps for TRIRIGA Assistant which includes provisioning of TRIRIGA Assistant Services by the IBM AI Applications - TRIRIGA Voice Enablement team.

  3. Access to a Teams workspace with privileges to create Teams applications.

  4. An Azure Account

  5. Latest Node.js with NPM. Download it from here.

  6. The IBM Cloud CLI.

  7. 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.

B. Configuration

Environment Variables

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=

TRIRIGA Assistant Settings

  • TA_PROXY
  • TA_INTEGRATION_ID - the Integration ID provided by the IBM AI Applications - TRIRIGA Voice Enablement Team.

Microsoft Azure Settings

  • 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 and MicrosoftAppPassword (In the Settings under the Configuration row)

C. Testing locally

Testing with the Bot Framework Emulator

  • 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:

Test Client in Bot Framework

D. Deployment

Deploy as a cloud foundry application on IBM Cloud

Prerequisites: IBM Cloud CLI

1. Copy the sample.manifest.yml to manifest.yml and provide values as in .env file.
2. Push the code as a cloud foundry application using the following command.
$ ibmcloud app push
3. Note the route in the summary output. This is the hostname for the URL you will provide later.

Test in Web Chat:

  • 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"

Add Microsoft Teams Channel

  • Click "Channels"
  • Click on the purple Teams icon
  • Select "Microsoft Teams Commercia"
  • Click Save

Create app manifest package in Teams:

  • 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

Install app in Teams

  • Go to More added apps in teams (... icon) > Click on More 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: Teams

More Information

To get more information about how to get started, please review the following resources:

tririga-assistant-teamsbot's People

Contributors

stevemar avatar terc1997 avatar troyibm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.