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

investigation workflow
CourierEngineering

How We Investigate Support Tickets at Courier

Courier's support team resolves complex issues 4X faster using parallel investigation. Here's how it works: when a ticket comes in, an AI agent starts exploring the codebase while the support engineer examines actual customer data. The agent traces code paths and searches past investigations. The human reads event logs and forms hypotheses based on real state. Running both simultaneously catches mismatches fast—the agent sees what could cause a problem, the human sees what actually happened. This post breaks down the workflow, tools, and documentation structure that makes it repeatable.

By Thomas Schiavone

December 18, 2025

Best Notification Messages - Courier
Notifications LandscapeCourier

Top 20 Notification Examples That Actually Drive Engagement

Explore 20 stellar notification examples from industry leaders like Rippling, Slack, FedEx, Crocs, Miro, Trustpilot, OpenTable, and BambooHR that actually drive engagement. From payday celebrations to healthcare reminders, these patterns showcase what makes notifications effective across email, SMS, push, and in-app channels. Courier's enterprise platform enables intelligent routing, multi-channel orchestration, and universal inbox integration to implement these proven patterns at scale.

By Kyle Seyler

September 25, 2025

Courier MCP Server Video Demo
CourierEngineeringProduct Management

Video Guide: Courier MCP + AI Coding (Cursor)

Building notifications into your app just got dramatically easier. Courier's new MCP server brings AI-powered notification assistance directly to your IDE, so you can integrate, test, and manage notifications without ever leaving your workspace. Model Context Protocol servers give AI agents deterministic functionality instead of guessing. Connect your AI assistant directly to Courier's platform, get smart installation guidance, send messages with natural language, and manage users safely—all through Cursor, Claude Code, VS Code, and more.

By Kyle Seyler

September 04, 2025

Multichannel Notifications Platform for SaaS

Products

Platform

Integrations

Customers

Blog

API Status

Subprocessors


© 2025 Courier. All rights reserved.