Skip to main content

How To Send A Product Notification

This how to guide walks through triggering a product notification send using the Courier Send API or the Segment integration.

Send a Notification

There are two primary ways in which you can send a notification. You can trigger a send via the Courier Send API, or you via a Segment event.

The easiest way to access the code snippet to send your notification via the Courier Send API is to select the 'Send' tab from within the notification designer, and select the runtime that you want to use to make the send call from.

Your Product Notification Template

Generating the Code Snippet to Integrate in Your Codebase

Once you have completed the required steps, you'll be able to generate a code snippet and send a test Notification.

Code Snippet

To generate the right code snippet for your database to start sending your Notification to live users, confirm you have the right selection for these three settings:

  1. Select your programming stack
  2. Set the notification event
  3. Recipient id setting

Sending a Test Notification

After you configure the Code Snippet, setting these values will allow you to send a test Notification from the Send Tab:

  1. Select a test event
  2. Select the brand (Email notifications)
  3. Send a test notification
  4. Copy the code snippet

Read more: How to Send a Notification

Trigger an Automation with Segment

In order to trigger a notification from a Segment event, you will first need to install the Courier destination in your Segment account, and then create a Courier Automation Template.

Automations Overview

Once you have created an Automation, you need to configure the Segment event as the Automation trigger. You can select from identify, group, and track events.

Setting Up Your Automations Triggers
Was this helpful?