Polaris Chatbot meets Slack with our seamless API integration.
Have problems or a free time to help? Please open an Issue to tell us!
This project is a simple REST API to make a bridge between Polaris and Slack Apps.
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/
go run cmd/main.go
#
# 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 Frontend: https://github.com/Tech-Tweakers/polaris-frontend ⭐
- Polaris Backend: https://github.com/Tech-Tweakers/polaris-chatbot ⭐
In memoriam of Anderson Roberto - https://github.com/EuAndersonRoberto