in order to speak to Slack you need to setup an Incoming Webhook which allows you to send data in to Slack in real-time. Pretty nifty! For this I setup a new webhook on our Slack team and setup a private channel for testing. There are a few customisations you can do:
- You can customize the name of the BOT who speaks to Slack
- You can customize the icon to represent the BOT
- You can customize the messaging format and style
The text content or message contents is passed over by ThingSpeak as part of your POST data. This allows you full control on what you would like it to say or when it should say it.
With the ingredients coming together and tested I now had to decide on how to scale and design my final solution.