Blog
COURIER

Trick-or-Treating From a Distance Using Slack

Aydrian Howard

November 18, 2020

Courier Live Header

Table of contents

Adding Custom Slack Buttons

For our Pre-Halloween October 28th Courier Live, Nate Munger returned to help me come up with a socially distanced way to handle Trick-or-Treaters using Courier. Taking inspiration from the Smart Security Camera RaspberryPi project, we thought it would be cool to disguise one of those as a Halloween decoration and have it send images of approaching Trick-or-Treaters to a Slack channel with buttons that would allow members to present them with a Trick or a Treat. We walked through setting up the Slack notification in Courier and handling the buttons using a Glitch app. We'll leave delivering the tricks and treats to you.

Check out the video below to watch us:

  • Create a new Slack App and install it to our test workspace
  • Build a new Slack notification with action buttons using Courier
  • Use a Glitch Node.js/ExpressJS application to handle the Slack button actions
  • Send the notification using the Courier Send tab

Code for the Node.js/ExpressJS server handling the Slack actions can be found in the Glitch application.

Be sure to Like the video and Subscribe to our YouTube channel.

Adding Custom Slack Buttons

For this project, we wanted to have 2 Slack buttons side by side. To do this, we used the Jsonnet block to build a Block Kit Actions Block. The following code when used in a Jsonnet block will result in the following:

trick or treat

Copied!

{
"type": "actions",
"elements": [
{
"type": "button",
"action_id": "btnTrick",
"text": {
"type": "plain_text",
"text": "Trick :ghost:",
"emoji": true
},
"value": "trick"
},
{
"type": "button",
"action_id": "btnTreat",
"text": {
"type": "plain_text",
"text": "Treat :candy:",
"emoji": true
},
"value": "treat"
}
]
}

The actions for the resulting buttons can be handled using a server like we created above. Action Blocks can be more than just buttons. Check out the other available Interactive Block elements.

Is there something you’d like to see us do using Courier? Let us know and it might be the subject of our next Courier Live. We stream a new Courier Live every Wednesday at noon Pacific. Follow us on Twitch to be notified when we go live.

-Aydrian

Similar resources

healthcare messaging
Notifications LandscapeCourier

The $5.9 Billion Rebuild: Why Healthcare Is Replacing Its Notification Infrastructure

The clinical alert and notification market will reach $5.9 billion by 2032, growing at 12.3% annually. That number represents hardware, software, and services combined. It also represents healthcare's admission that pagers and overhead speakers aren't enough anymore. Healthcare organizations are rebuilding how critical information moves through their systems. Regulatory pressure, workforce shortages, and value-based care economics are forcing the investment. The software layer is where outcomes are won or lost.

By Kyle Seyler

February 02, 2026

a guide for ai assisted development: Notification infrastructure
CourierNotifications LandscapeEngineering

Vibe Coding Notifications: How to Use Courier with Cursor or Claude Code

Courier's MCP server lets AI coding tools like Cursor and Claude Code interact directly with your notification infrastructure. Unlike Knock and Novu's MCP servers that focus on API operations, Courier's includes embedded installation guides for Node, Python, Flutter, React, and other platforms. When you prompt "add Courier to my app," your AI assistant pulls accurate setup instructions rather than relying on outdated training data. OneSignal's MCP is community-maintained, not official. Courier supports 50+ providers, native Slack/Teams integration, drop-in inbox and preference components, and a free tier of 10,000 notifications/month. Configure in Cursor with "url": "https://mcp.courier.com" and "headers": { "api_key": "YOUR_KEY" }.

By Kyle Seyler

January 22, 2026

b2b customer engagement guide
Notifications LandscapeCourier

The Complete Guide to B2B Customer Engagement

Courier provides the notification infrastructure layer for B2B customer engagement, routing messages across email, SMS, push, in-app, Slack, and Teams based on user preferences and product events. Unlike building notification systems in-house—which takes months of engineering time for features like multi-channel routing, preference management, and delivery tracking—Courier handles this infrastructure so product teams can focus on engagement strategy. B2B customer engagement requires multiple layers: notification infrastructure (Courier), customer data platforms (Segment), product analytics (Mixpanel/Amplitude), and channel-specific tools. Companies with strong engagement programs see 15-25% churn reduction. The key is connecting product events to customer communication at the right moment through the right channel, handling complexity like multiple users per account with different notification needs across work channels.

By Kyle Seyler

January 20, 2026

Multichannel Notifications Platform for SaaS

Products

Platform

Integrations

Customers

Blog

API Status

Subprocessors


© 2026 Courier. All rights reserved.