URL Logger is an absolute hidden gem in entire suite of ETL-tools. It allows you to do many things , including now to connect to SLACK event. We use this slack bot to have a channel where any employee can raise a ticket or capture their own todos.
This is a
rough guide on how to put this together.
Step 1 - Get the bot connected to your slack domain, of course you need admin rights. Create a new App in directory - Open
api.slack.com/apps?new_app=1
Step 2 - Click form Scratch , Allow bot to subscribe to events
Step 3 - Open URL Logger , Create ADD URL. To create a new one , Click on 1 , My existing looks likes 2
Step 4 - OPEN URL Page , Click on click on USE CUSTOM JSON response, enter below
try { res.status(200).json({ challenge: body.challenge }); return -1; } catch (err) { return 500; }
Basically Slack expects you to always return back with challenge token .
Step 5 - Go back to Slack Menu & enter your webhook address. NOTE - THIS MUST BE SSL , use CADDY guide given in this forum to get SSL enabled address
Step 6 - Let Bot subscribe to events
Step 7 - Send a message
Step 8 - Magic - URL Logger now has the messages from Slack , which you can use to raise tickets , or do whatever magic you want