Blog
COURIER

Sending notifications from a Jamstack site

Aydrian Howard

September 23, 2020

Courier Live Header

Table of contents

Handling Contact Forms with Courier

For our September 16th Courier Live, Paul Chin, Jr joined me to talk about Begin. Begin helps you effortlessly ship web apps and APIs on AWS. Paul recently updated his 5 year old LAMP stack Ghostbusters site into a functional FASTstack application using Begin. While updating the contact form, he decided he'd rather it send a Slack message instead of sending an email. He decided to use Courier to handle this. Together we walked through creating a new Begin application that included an HTML contact form and configured it to send using Courier.

Check out the video below to watch us:

  • Create a new Begin application
  • Add an HTML Form and handle the submit using a serverless function
  • Set up a new Slack Application to handle sending direct messages
  • Create a new Courier notification and connect it to the serverless function
  • Add a conditional SMS channel for urgent messages without changing any code

Check out the full project code available on GitHub.

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

Handling Contact Forms with Courier

It's easy to set up a contact form using Begin. Begin will store your static assets in an S3 bucket and help you create the serverless function needed to handle the form submit. It's easy to get started by signing in to Begin and clicking Create new app and selecting a minimal app.

You can add a form like the following to your app.

Copied!

<form id="main-contact-form" method="post" action="contact-form">
  <div><input type="text" name="name" placeholder="Name" required /></div>
  <div><input type="email" name="email" placeholder="Email" required /></div>
  <div><input type="text" name="subject" placeholder="Subject" required /></div>
  <div>
    <textarea
      name="message"
      class="form-control"
      rows="8"
      placeholder="What seems to be the problem?"
      required >
    </textarea>
  </div>
  <div>
    <input type="checkbox" name="urgent" value="true" />
      <label for="urgent" >Urgent</label>
  </div>
  <div><button type="submit">Send Message</button></div>
</form>

And then create a serverless function using Begin with the same name as the form action.

Copied!

let tiny = require('tiny-json-http')
let arc = require('@architect/functions')
let sendCourier = async function (req) {
  let body = req.body
  let url = 'https://api.courier.com/send'
  let headers = {
    "authorization": `Bearer ${process.env.COURIER_AUTH_TOKEN}`,
    "content-type": "application/json",
  }
  let data = {
    event: `praisecage-contact`,
    recipient: 'pchinjr',
    profile: {
      slack: {
        access_token: `${process.env.SLACK_TOKEN}`,
        email: 'paul@praisecage.org'
      }
    },
    data: {
      name: `${body.name}`,
      email: `${body.email}`,
      subject: `${body.subject}`,
      message: `${body.message}`,
      urgent: `${body.urgent}`
    }
  }
  let response = await tiny.post({ url, data, headers })
  console.log(response)
}
let route = async function (req) {
  return {
    statusCode: 303,
    location: '/'
  }
}
exports.handler = arc.http.async(sendCourier, route)

This function will handle the form submit and send it to Courier. From there, you can use the Courier application to create your notification.

You can sign up for a free account on both Courier and Begin. I hope this stream has given you a taste of what is possible when you build your app with Begin and Courier. It's never been easier to build on top of AWS, so get started and be sure to share with us what you create.

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

what is a customer engagement platform
Product ManagementNotifications LandscapeCourier

Customer Engagement Platform vs CRM: Key Differences Explained

A CRM stores customer data: contacts, purchases, support tickets, and pipeline. It answers "who are our customers?" A customer engagement platform (CEP) orchestrates communication across email, push, SMS, in-app, and chat. It answers "what should we tell them next?" CRMs focus on historical records. CEPs process real-time behavior and trigger messages based on actions. Most teams need both, plus a third layer: notification infrastructure for reliable multi-channel delivery. Courier bridges CEP and infrastructure by combining routing, failover, and delivery tracking with engagement features like preference management, visual templates, and in-app notification centers.

By Kyle Seyler

January 07, 2026

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

Multichannel Notifications Platform for SaaS

Products

Platform

Integrations

Customers

Blog

API Status

Subprocessors


© 2026 Courier. All rights reserved.