Skip to main content
Skip table of contents

Best Practices: Malomo and Postscript

Understanding Postscript Triggers

  • The Postscript API uses the concepts of "triggers" and "subscribers" in order to deliver notifications to customers.

    • Subscribers are customers who have explicitly opted in to receive SMS notifications for a brand.

    • Triggers essentially represent different types of events that, when fired, can be used to send SMS notifications to a subscriber.

    • Automations are "multi-stage communication that are triggered by a certain event", and are the primary tool for building and sending SMS notifications.

Available Triggers with Malomo

When a trigger is fired (when a Malomo event occurs), an active Postscript automation for that trigger must also exist in your account in order for SMS notifications to be sent. 

Event name

Description

Malomo: ShopifyOrderCreated

Shopify records a new order placed by a customer.

Malomo: ShipmentCreated

Shopify records a new shipment on an order and that shipment registers in the Malomo platform.

Malomo: ShipmentCreatedError

Malomo records an error when trying to register a shipment in the Malomo platform. Learn more about error codes here.

Malomo: PreTransit

A shipping label was created and has been registered in the carrier’s system. However, the carrier has not yet taken possession of the shipment.

Malomo: ShipmentFirstInTransit

Only the first scan event when the shipment is in the carrier’s possession and is en route to its destination.

Malomo: InTransit *

The shipment is in the carrier’s possession and is en route to its destination.

Malomo: ShipmentFirstOutForDelivery

Only the first scan event when the shipment is currently on its last mile and is en route to the destination address.

Malomo: OutForDelivery*

The shipment is currently on its last mile and is en route to the destination address.

Malomo: Delivered

The local delivery vehicle has reported the package was delivered.

Malomo: Return To Sender

The shipment was not successfully delivered and is en route back to sender.

Malomo: Canceled

The delivery has been canceled typically by either the seller or recipient.

Malomo: Available For Pickup

The shipment is available for pickup from the carrier’s facility such as a post office.

Malomo: Failure

A delivery was attempted but the shipment could not be delivered. 

Malomo: Error

An unknown delivery error occurred.

Malomo: FulfillmentStalled

An order that has been created but has not been fulfilled in the specified time frame within our Problem Orders feature.

Malomo: ShipmentStalled

An order that has been fulfilled or is in transit and has not received a scan update in the specified time frame within our Problem Orders feature.

*Please note, we do not recommend triggering off of InTransit or OutforDelivery, as the journey may trigger multiple texts to your customer. Please use our Malomo: ShipmentFirstInTransit and Malomo: ShipmentFirstOutForDelivery triggers instead.

Testing your PostScript Integration

Unlike email, SMS notifications require explicit opt-in from the customer in order to be sent.

To send SMS notifications to yourself:

  1. From your main Postscript dashboard, click Keywords in the left sidebar.

  2. Text one of the listed keyword codes to the phone number shown on the screen, and follow the prompts to opt into SMS notifications from your store.

In order to receive SMS notifications to your phone, make sure that your phone number is associated with a customer record in your Shopify store, and that you always use this customer when creating test orders in Shopify. 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.