Sitemap
Level Up Coding

Coding tutorials and news. The developer homepage gitconnected.com && skilled.dev && levelup.dev

Follow publication

Member-only story

GOLANG SLACKBOT TUTORIAL

Properly Welcome Users in Slack with Golang using Socket Mode

Master one-on-one interactions

6 min readApr 27, 2021

--

Gophers (Golang) scientist around a cup of coffee
Photo by Danielle MacInnes on Unsplash, Gopher by Egon Elbre.

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.

--

--

Level Up Coding
Level Up Coding
Alexandre Couëdelo
Alexandre Couëdelo

Written by Alexandre Couëdelo

Software Supply Chain and Automation Specialist (aka. DevOps).

No responses yet