Fireship · @fireship

How to Build a Slack App

Uploaded December 6, 2019 · Length 9:44

How to Build a Slack App

Summary

Learn how to build a Slack app from scratch, automating tasks and enhancing internal processes or communication flows.

  • slack app development
  • firebase cloud functions
  • slack api
  • nodejs backend
  • slack automation
  • slack bot development

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    today I'm going to show you how I built

  2. 0:01

    cyber Jeff a slack app that helps me

  3. 0:03

    automate things that I would otherwise

  4. 0:04

    have to do manually for members of our

  5. 0:06

    slack channel if you're not already in

  6. 0:08

    our slack you should join with a link in

  7. 0:10

    the description it's a great way to

  8. 0:11

    communicate and you can chat with me

  9. 0:13

    personally along with a bunch of other

  10. 0:14

    developers working on a similar stack if

  11. 0:16

    you're already a pro member you should

  12. 0:18

    be summoned by cyber Jeff he's a faster

  13. 0:20

    and more reliable version of me when you

  14. 0:22

    first join the slack Channel

  15. 0:23

    he'll check to see if your email has a

  16. 0:25

    matching account in the firestore

  17. 0:26

    database with pro status if there's a

  18. 0:29

    match he'll invite you to our Pro

  19. 0:30

    Channel and tell you how to redeem a

  20. 0:32

    sticker and t-shirt now this is a very

  21. 0:34

    personalized slack app for my business

  22. 0:36

    needs but in today's video I want to

  23. 0:37

    show you how to build your own from

  24. 0:39

    scratch if you're new here like and

  25. 0:40

    subscribe and check out the full

  26. 0:42

    write-up on fire ship IL now before you

  27. 0:44

    start building a slack app you should

  28. 0:46

    start by outlining your actual use case

  29. 0:47

    because their API is absolutely massive

  30. 0:50

    it allows you to automate things within

  31. 0:52

    the workspace create chat BOTS

  32. 0:53

    interactive UI elements and a whole

  33. 0:55

    bunch of other things but if you're a

  34. 0:57

    developer there are two main reasons you

  35. 0:59

    would build a slack app in the first

  36. 1:00

    place

  37. 1:01

    companies already using slack may want

  38. 1:02

    to enhance some sort of internal process

  39. 1:04

    or communication flow that's essentially

  40. 1:06

    what cyber chat is it's mostly an

  41. 1:08

    automation tool but also serves as our

  42. 1:10

    new AI overlord on slack the other

  43. 1:12

    reason you might want to build a slack

  44. 1:13

    app is to build a service to be consumed

  45. 1:15

    by other slack users black has a public

  46. 1:18

    directory for third-party apps all you

  47. 1:20

    have to do is build something useful

  48. 1:21

    marking it well and you'll have

  49. 1:23

    enterprise clients throwing money at it

  50. 1:24

    in no time let's go ahead and get

  51. 1:26

    started you'll need two things for this

  52. 1:28

    project you'll need some kind of slack

  53. 1:29

    workspace that you have admin access to

  54. 1:31

    and then we'll be using firebase as our

  55. 1:33

    service back-end with cloud functions

  56. 1:35

    but feel free to use whatever nodejs

  57. 1:37

    back-end you prefer the first thing

  58. 1:39

    we'll do is create a new slack app you

  59. 1:41

    can do this from the slack API home page

  60. 1:43

    and you'll see a big button there to

  61. 1:44

    create a new app now like I said before

  62. 1:46

    the API is massive so you kind of need

  63. 1:49

    to know what you're building before you

  64. 1:50

    get started some apps might want to

  65. 1:52

    listen and react to events that happen

  66. 1:54

    within the work space while others might

  67. 1:56

    want to fetch or post information into

  68. 1:58

    it like post new messages and things