Skip to content

Tech-Tweakers/polaris-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tech Tweakers - Polaris Slack Chat API v1

Polaris Chatbot meets Slack with our seamless API integration.

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors License Badge

Have problems or a free time to help? Please open an Issue to tell us!

About

This project is a simple REST API to make a bridge between Polaris and Slack Apps.

Setup

Create a Slack App with the following yaml:

display_information:
name: Polaris
description: AI Chatbot
background_color: "#3b1902"
features:
bot_user:
  display_name: Polaris
  always_online: false
oauth_config:
scopes:
  bot:
    - channels:history
    - chat:write
    - chat:write.customize
    - incoming-webhook
    - channels:read
settings:
event_subscriptions:
  bot_events:
    - message.channels
interactivity:
  is_enabled: true
org_deploy_enabled: false
socket_mode_enabled: true
token_rotation_enabled: false

Create a .env.local file in the root of the project and add the following variables:

#
# Global settings
#

ENVIRONMENT=development
LOG_LEVEL=debug

#
# Slack integration settings
#

SLACK_CHANNEL_ID= # Slack Channel ID to send messages
SLACK_AUTH_TOKEN= # Slack OAuth Token
SLACK_APP_TOKEN=  # Slack App Token
SLACK_API_URL=https://api.slack.com/

Run

go run cmd/main.go

API Endpoints

#
# List all the messages intercepted by the AI
#

GET: http://localhost:9990/entries

#
# Reply message (not used since the AI is replying to the messages. For tests only.)
#

POST: http://localhost:9990/slack-reply
    {
      "payloadtext": "reply to existing message",
      "payloadts": "1704049551.547199"
    }

Polaris Projects

Contributors / Special Thanks ❤️

In memoriam of Anderson Roberto - https://github.com/EuAndersonRoberto

About

Polaris integration with Slack Apps

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages