| Developers Guide

| Developers Guide

  • Docs
  • API
  • Help
  • Blog

›Channels

Notes on Versions Released

  • Migrating & Updating
  • Updating to New Releases

Getting Started

  • Introduction
  • Installation
  • Quick Start

Main Concepts

  • Overview
  • Glossary
  • CMS
  • Dialog Engine
  • Actions & Hooks
  • Memory
  • Modules
  • NLU
  • Emulator

Advanced Guides

  • Debug
  • Configuration
  • Authentication Methods
  • Custom Module
  • Performances
  • Hosting
  • Version Control
  • Development Pipelines
  • Clustering

Channels

  • Website Embedding
  • Facebook Messenger
  • Telegram
  • Microsoft Teams
  • Converse API
  • Slack
  • Smooch (Sunshine Conversations)
  • FAQ

Tutorials

  • Deploying a cluster on Digital Ocean
  • How to act on an intent
  • Acting Proactively
  • Using Carousel Postback
  • How to use Slot Skill
  • How to use Call API Skill
  • Calling an API in a Custom Action
  • Shortlinks
  • Connecting your bot with your existing backend
  • Supported databases
  • Timeouts
  • Human in the loop
  • Jump To
  • Inter-bot Communication / Delegation
  • Contextual FAQ
  • Authenticate a user against a 3rd Party OAuth
  • Listening for file changes
  • Using a 3rd party NLU
  • Using the UiPath integration for Botpress

Pro Edition

  • About
  • Licensing
  • Configuring RBAC
  • Monitoring & Alerting
  • Bot Pipelines
  • Internationalization

Microsoft Teams

Requirements

Configure Microsoft Account

Your Microsoft Account should have access to Azure and Teams. You can check out the Azure and Teams documentation for information on how to make these connections.

Enable the Teams Channel

You can do this by opening the file data/global/botpress.config.json in a text editor and setting the value to true as below. You can also access this file from the Code Editor in the Botpress Studio user interface.

"modules": [
  ...
    {
      "location": "MODULES_ROOT/channel-teams",
      "enabled": true
    },

Configure HTTPS Endpoint

To connect to Microsoft Teams, an HTTPS endpoint is required. This is set in the externalUrl field in botpress.config.json. You can use the following methods to create this endpoint:

  • Create an HTTPS tunnel to your machine using Ngrok. This tutorial works on pretty much any Operating System. Tutorial
  • Using Nginx and Let's Encrypt. This tutorial is based on the Linux Ubuntu 16.04 Operating System. Tutorial
  • Use Serveo to create an HTTPS tunnel to your machine. Tutorial

⭐ Note: To test on localhost, you can also use services like pagekite or tunnelme to expose your server.

Before getting started...

Since the framework V4 is still in active development, some of these instructions may be a little bit different. If you ever get stuck, have a look at the Official Bot Framework documentation.

Setup

These instructions will guide you through any steps required to be up and running with that channel.

Create application & get a password

  1. Log on to your account on Microsoft Azure

  2. In the Azure portal, open the App registrations page.

  3. Click on New registration, then choose a name for your application.

  4. In the section Supported account types, choose Accounts in any organizational directory and personal Microsoft accounts, then click on Register.

  5. Write down the value of Application (client) ID, we'll need it later for the channel configuration.

  6. Click on Certificates & secrets, then click on New client secret, then fill in the required fields.

  7. Write down the value of the generated secret, you can't access it later

Create your bot

  1. Navigate to the Bot Framework Registration Page and fill the required information:
  • Display name
  • Bot handle
  • The Microsoft App ID (that we generated in step 1)
  • Messaging endpoint (keep it blank for now - more on that later)

You can also fill the other fields as you wish, but they will not impact Botpress.

  1. Click on Register

  2. On the next page (Connect to channels), under the section Add a featured channel, click on Configure Microsoft Teams Channel, then click on Save. No other configuration is needed at this point.

Configuration

Configure the channel on Botpress

  1. Open MS Teams (either the web version or the desktop client), then start a new conversation. In the search bar, paste your microsoft App Id. You should see your registered bot.

  2. Try talking to your bot. If you get a message saying that your bot has been disabled by administrator, you have to enable App sideloading in your microsoft admin portal. See this article for more details.

You can now continue to next section.

  1. Copy the file data/global/config/channel-teams.json to your bot-specific configuration folder:

    data/bots/YOUR_BOT_ID/config/channel-teams.json

  2. Open the file, then set enabled to true, and set your appId and appPassword created in step 1

Final configuration

  1. Start Botpress, then you should see your Messaging Endpoint in the startup logs.

  2. Open the Bot Framework page, then click on the name of your bot.

  3. Click on the Settings tab, then scroll down to Messaging endpoint.

  4. Set the value of the endpoint that was displayed in the logs. If it is missing, it should looks like that:

YOUR_BASE_URL/api/v1/bots/YOUR_BOT_ID/mod/channel-teams/api/messages

← TelegramConverse API →
  • Requirements
    • Configure Microsoft Account
    • Enable the Teams Channel
    • Configure HTTPS Endpoint
    • Before getting started...
  • Setup
    • Create application & get a password
    • Create your bot
  • Configuration
    • Configure the channel on Botpress
    • Final configuration
| Developers Guide
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2021 Botpress Inc.