A proof-of-concept Slack app built in Go to send messages to/from Slack. Built on top of Slack's event API and Zendesk's Channel Framework
This project uses glide to manage dependencies.
glide install
{
"slack_verification_token": "see-app-credentialzes-in-slack",
"slack_app_client_id": "see-app-credentials-in-slack",
"slack_app_client_secret": "see-app-credentials-in-slack",
"database_host": "localhost",
"database_port": 3306,
"database_username": "root",
"database_password": null,
"database_name": "slack_zendesk"
}
Create your database before hand and then execute
go run migrate.go
go run server.go --queues=zendesk
This requires that you have a redis service running in your machine. For this POC, this simply connects to a localhost instance with no authentication.
go run worker.go --queues=zendesk
zat package
- Upload the package as a private app
- Go to the
channels integration
section in Zendesk and configure the integration
- Slack OAuth, initiated from Channels Framework app
- Add bot user to channel, then send message to create a new ticket in Zendesk. (Does not perform any kind of message filtering)
- Replies from Zendesk are automatically sent to Slack