Member-only story
GOLANG SLACKBOT TUTORIAL
Properly Welcome Users in Slack with Golang using Socket Mode
Master one-on-one interactions
When creating a Slack Application to increase engagement, it is essential to start small meaningful one-on-one interaction. For instance, you can send a short tutorial on how to your App in the Slack App Home. You can also introduce the purpose and rules of a channel whenever a user joins, with a message only he can see as not to pollute other members.
I want this article to help you understand some core features of Slack Applications. Before moving on into coding, let me showcase two use cases and explain Slack’s terminology. With this base setup, you will be able to create much more exciting interactions with your users. I consider those as the basis of any Slack application.
This tutorial guides you into implementing the two use cases I mentioned initially, in Golang with the slack-go library and using Slack Socket Mode.
Why Socket Mode ? 🤔
With Socket Mode, you don’t need a public server. In other words, your laptop, your Raspberry Pi, or a private server can host your bot. Socket mode is perfect for a small application that you do not intend to distribute via App Directory.