Most Popular
Courier is a notification service that centralizes all of your templates and messaging channels in one place which increases visibility and reduces engineering time.
Sign-up
We’re excited to announce a powerful new feature for the Courier platform: Courier Automations. Courier Automations is a toolset that includes both an API and a visual builder that allows anyone to easily configure logic for notification workflows. Need to send a reminder to class attendees 10 minutes before the class starts? Need to page an on-call engineer on multiple channels until they respond? These use cases and more can be achieved quickly and easily with Automations.
As developers, notifications are the primary way that the applications we build communicate with our end-users and the use cases vary widely. Some use cases are very straightforward and simply require that a single message goes to a single user once. Many notifications however require more sophisticated orchestration in order to deliver the desired user experience. Most developers today end up building a separate service to manage this logic. This results in additional infrastructure and development overhead and often in a less than ideal end-user experience.
We built Automations so that developers can deliver the ideal notification experience without needing to build and maintain yet another service.
While today marks the official release of Automations, many of our customers are already using Automation to power key parts of their product experience.
The engineering team at LaunchDarkly, a feature management platform, uses Automations to define the logic for notifications associated with approvals for their customers' feature releases. Any time approval is requested or granted, an Automation is triggered to ensure all the relevant stakeholders are alerted. You can read more about their use case here.
Officevibe, which is an employee experience platform, regularly sends out Slack notifications on behalf of their customers asking employees to complete a brief survey. Their engineering team utilizes the Automations API to create lists of users for whom the Slack survey could not be delivered and send them an email survey instead.
For Yoga International, an online Yoga platform, it's essential that they deliver a seamless experience to their customers from the time they register for a live class through to the start of class. Their engineering team utilizes the Automations API to send timely reminders to class attendees for each live class that happens on their platform.
Let's build a meetings reminder that sends an email reminder 10 minutes before the meeting and a link to the meeting notes two hours after the meeting.
Design the Messages:
npm install node-fetch
automations
object with an array of objects called steps
1"automation": {2"steps": [3{4"action": "send",5"template": "template_id",6}7]8},
1"automation": {2"steps": [3{4"action": "send",5"template": "template_id_1"6},7{8"action": "delay",9"duration": "130 minutes"10},11{12"action": "send",13"template": "template_id_2"14}15]16},
template_id_1
with the notification template from Step 3 of “Design the Message” and update template_id_2
with the notification template from Step 5 of “Design the Message”brand
and recipient
attributes with your preferred brand and recipient IDstemplate
attribute1// Dependencies to install:2// $ npm install node-fetch --save34const fetch = require('node-fetch');56const options = {7method: 'POST',8headers: {9Accept: 'application/json',10'Content-Type': 'application/json',11Authorization: 'Bearer replace-token'12},13body: JSON.stringify({14"automation": {15"steps": [16{17"action": "send",18"template": "template_id_1"19},20{21"action": "delay",22"duration": "130 minutes"23},24{25"action": "send",26"template": "template_id_2"27}28]29},30"brand": "W50NC77P524K14M5300PGPEK4JMJ",31"template": "EXAMPLE_NOTIFICATION",32"recipient": "8ec8c99a-c5f7-455b-9f60-8222b8a27056",33"data": {34"name": "Jane Doe",35"age": 2736},37"profile": {38"phone_number": "2025550125",39"email": "hello@example.com"40}41})42};4344fetch('https://api.courier.com/automations/invoke', options)45.then(response => response.json())46.then(response => console.log(response))47.catch(err => console.error(err));
This example demonstrates integrating an API V2 notification send call (Step 5 of "Design the Message").
1{2"action": "send",3"message": {4"to": {5"email": "example@email.com"6},7"content": {8"title": "Meeting Notes",9"body": "Link to meeting notes: ..."10}11}12}
This step can be done within the designer by following Step 3
1{2"data": {},3"profile": {4"email": "example@email.com",5"name": "Your Name"6}7}
Sign up for a free Courier account to get started with Automations. Courier’s Free Tier includes Automations and up to 10,000 notifications per month.
Courier is a notification service that centralizes all of your templates and messaging channels in one place which increases visibility and reduces engineering time.
Sign-up
Tools and Techniques to Establish Your Data Team Early
How tools like Segment, Metabase, Snowflake, Census, and others, can help establish a data team from the very early stages in a startup.
Raymond See
February 16, 2023
Develop a Motivational QOTD with Courier and GPT2
Courier and OpenGPT2 in action: build a service that sends friends and family an AI generated motivational quote of the day.
Prakhar Srivastav
February 09, 2023
Free Tools
Comparison Guides
Send up to 10,000 notifications every month, for free.
Get started for free
Send up to 10,000 notifications every month, for free.
Get started for free
© 2024 Courier. All rights reserved.