girliemac / slack-sentiment

Slackbot: Sentiment analysis for Slack messages using IBM Watson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sentiment Analysis Slack Bot

Have you ever wonder how your Slack chat message is perceived by other users? You may sounds unpleasant, or have harsh tones that you may not have noticed! In this tutorial, I am walking you through to build a Slack bot that analyze the tone of messages using IBM Watson Watson to read the emotion of each message posted!

Slack Watson Raspberry Pi Bot

Running on Your Own

Prerequisites

You need an IBM Cloud account then:

  1. Go to Catalog > AI
  2. Enable Tone Analyzer
  3. Get your credentials (API key and URL) by clicking Service Credentials then View credentials

The second part is totally optional. If you want to build a physical Raspberry Pi bot, you need the hardware:

1 Raspberry Pi 3 (If you are using Pi 2, you need a WiFi dongle too) 1 NeoPixel RGB LED 3 Female/female jumper wires

You need to install the latest Raspbian OS, connect to WiFi, and update and upgrade the system. See Raspberrypi.org for the instruction.

Set the ENV VARS

When you clone this repo run on your own server, rename the .env-test file to .env and fill out your own Slack Dev and IBM Bluemix credentials.

Configuring Your Slack App

The full step-by-step tutorial (updated on Jan 23, 2020) is on https://api.slack.com/tutorials/watson-sentiment

About

Slackbot: Sentiment analysis for Slack messages using IBM Watson

License:MIT License


Languages

Language:JavaScript 99.8%Language:Procfile 0.2%