How to Preview a Notification Using Test Events
Step-by-step guide to defining your test events and using the preview function across multiple channels.
The Courier Notification Designer allows you to preview branding, content, test variables or Handlebars code in each channel and send test emails.
How to Preview Your Notification
To preview a Notification, open it in the Notifications tab of the designer and select
Test Event Required
When you initially open the preview tab on the demo Welcome to Courier email, there will be a generic "Welcome Example" event with an empty profile.
This is why any variables you insert into the Example template will not work until you add your own custom Test Event or update the JSON of the Welcome Example.
In order to send an email notification or SMS via the Send Tab, you will need to include an email and/or phone # in the
profile object of the test event Json.
To preview and validate any variables you've built into the Notification, you need to create a Test Event.
- Click Manage Test Events in the Preview.
- Add valid JSON with values in the data and/or profile objects for your variables.
Creating a Test Event From the Data Log
When you send an event to Courier, that event can be viewed in the Data Log. You can turn those events from the data into a test event - it will be located in the preview tab of the event it is mapped to. Open "Event Received" in the Timeline and click "Save as Test Event."
Email is the only channel that will show a fully rendered image as it will appear to the recipient in the preview. In other channels the preview only allows you to validate the variables.
Plain Text Preview
The Plain Text Preview toggle lets you switch your Email preview between HTML and plain text versions.
Other Email Preview Options
Sending a Test Email
When previewing an Email Notification, you can send a test email by selecting yourself or other members of your Tenant to receive it.