| 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

Slack

Requirements

HTTPS Enpoint

To connect to Slack, and HTTPS endpoint is required. Set 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.

Setup

Create the app on Slack

  1. Go to your apps page

  2. Click on Create new app then give it a name

Setup Callback on Slack

  1. Open the page Event Subscriptions, then turn the switch to On

  2. Set the request URL to: <EXTERNAL_URL>/api/v1/bots/<YOUR_BOT_ID>/mod/channel-slack/events-callback

  • Replace EXTERNAL_URL by the value of externalUrl in your botpress.config.json
  • Replace YOUR_BOT_ID by your bot ID
  1. Under Subscribe to bot events add messages.im and messages.channels (you can also add other types of messages if you want)

  2. Open the page Interactive Components, then turn the switch to On

  3. Set the request URL to: EXTERNAL_URL/api/v1/bots/YOUR_BOT_ID/mod/channel-slack/bots/YOUR_BOT_ID/callback

  • Replace EXTERNAL_URL by the value of externalUrl in your botpress.config.json
  • Replace YOUR_BOT_ID by your bot ID
  1. Open the page OAuth & Permissions and add chat:write under Scopes

  2. Install the app by clicking the Install App to Workspace button

Configuration

Configure your bot

  1. Edit data/bots/YOUR_BOT_ID/config/channel-slack.json (or create it) and set
  • enabled: Set to true
  • signingSecret: Take the value Signing Secret on the page Basic Information
  • useRTM: false (true if you have a legacy app)
  1. Restart Botpress

  2. Return to data/bots/YOUR_BOT_ID/config/channel-slack.json and set

  • botToken: Take the value Bot User OAuth Access Token on the page OAuth & Permissions
  1. Restart Botpress
← Converse APISmooch (Sunshine Conversations) →
  • Requirements
    • HTTPS Enpoint
  • Setup
    • Create the app on Slack
    • Setup Callback on Slack
  • Configuration
    • Configure your bot
| 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.