ZAP~POST
ZAP~POST is an automatic direct mail engine. With ZAP~POST, you can send branded postcards that are hyper-personalized and automatically triggered by real-time events and actions, and they’ll print and post them whenever your customers might be tempted to shop.
Bloomreach Engagement can integrate with ZAP~POST. This guide explains how to set up the integration with ZAP~POST and provides two use cases as examples of how you could use ZAP~POST with Bloomreach Engagement.
Setup process
Create a ZAP~POST Integration API key. An Integration API key allows authentication for incoming webhook requests.
To create an API key:
- In your ZAP~POST Application, click
Settings
>Api Consumers
. - Click
Add New Consumer
. - Fill in the
Consumer Name
field with a name you want it to have. - Make sure you Enable the Consumer.
- Click
Generate New Keys
. - Copy the key and password and store safely for later use.
- Finish by clicking
Create Consumer
.
Configure webhook authentication
In Bloomreach Engagement, configure the webhook authentication for ZAP~POST so that data can be passed securely in the webhook request. You will use this webhook authentication while creating a scenario in a later step.
To configure webhook authentication:
- In Bloomreach Engagement, open
Data & Assets
>Integrations
. - Click
Add new integration
>HTTP Authentication Schemas
>Add integration
. - Edit the name of the Integration - so anyone knows it is for your ZAP~POST account.
- In
Endpoint
, enter the ZAP~POST API base URL:
https://api.zappost.com
- Make sure you select the
Basic Authentication
method. - Enter the following:
Username
:
The Api Key from ZAP~POST created in the Setup process
Password
:
The Api Password from ZAP~POST created in the Setup proces
- Test the integration - when all is setup properly, authentication would be successful.
- Click
Save integration
.
Use case
In Bloomreach, we provide an Action webhook preset option for working with ZAP~POST. This preset is available for an endpoint: /api/v1/records
- ZAP~POST Individual Post preset.
Imagine you're running an online store, and sometimes customers put items in their shopping cart but don't complete their purchase. When this happens, you may want to let ZAP~POST know about these abandoned carts so personalized messages can be mailed to customers. You can use the ZAP~POST Individual Post preset for this.
However, it's important to understand that this is physical mail, ZAP~POST doesn't send each one individually right away. Instead, ZAP~POST waits until the end of the day and then sends them all together as a single batch. This helps keep things organized and makes it easier to keep track of what's going on. So, if you're looking for updates in your ZAP~POST account on these abandoned carts, you'll need to wait until the day after you've reported them when they've been grouped together.
In a nutshell, the ZAP~POST Individual Post preset is for individual pieces of information.
Example
In your scenario, you can use a combination of operators and actions to send zaps using ZAP~POST to relevant users based on custom conditions.
When using the ZAP~POST Individual Post action, you can also catch error responses returned by this Action node and update your account data or notify your team to check the address of customer, or notify the customer via other channels - email, sms, … - to update their postal address. You should also remove invalid addresses from future submissions - either via consent revocation or adding a flag to customer record signifying the postal address is not valid, until corrected.
Prerequisites
-
ZAP~POST
- You understand the only parameter required by the Submissions API endpoints, which is a valid campaign ID.
-
Bloomreach Engagement
- You know your audience and scenario execution requirements.
- You have collected and are storing relevant customer properties, e.g. postal address, in the Data Manager.
Create a scenario
Let's create a scenario to automate the communication with your users based on custom conditions.
Specifically, you will use an action to send a webhook request to ZAP~POST for a zap sending. For that you will use webhook presets that are created specifically for our integration with ZAP~POST.
Your scenario path may vary from the following steps depending on the actions you decide to implement and the dynamic data you choose to include in your user communication. See Personalization Using Jinja.
To create a scenario:
-
In Bloomreach Engagement, open
Campaigns
>Scenarios
>Create new
. -
(Optional) Click the edit symbol in the scenario name to change it.
-
Create and configure the triggers and operators that best suit your campaign needs.
-
Create an action with the webhook request to ZAP~POST.
-
In
Scenario
selectOther
>ZAP~POST Individual Post
. -
In the
Settings
tab of the action:- Enable
Authentication
and select the authentication you created. - In
Other
, select the required consent category for your users.
- Enable
-
In the
Parameters
tab of the action fill in the parameters. In this example, the Campaign ID looks like46761c11-ec52-ee11-9937-6045bdd0c438
. This parameter is required and can be found in the URL on the Campaign Edit page.Click on
Campaigns
->Edit Zap design
and you will see your URL with the CampaignID.The webhook will be sent even with only Campaign ID and will return code 200, which signals success. However, there will be no information sent to the campaign. You need to customize the customer properties category. There are mandatory properties like, for example, Customer ID and not mandatory, for example, Address 3. Read tooltips by hovering with a cursor over the 'i' and refer to the ZAP~POST documentation.
-
After an abandoned cart for a day, you can send a zap to all people who didn't complete their purchase in a day. For that, we will use the "ZAP~POST Individual Post" preset.
-
Make sure you customize customer properties because otherwise, no data will be sent in both examples. You can either modify values in the parameters tab or directly modify JSON.
Customer properties that are required:CustomerId
- Must be uniqueFirstname
- Must be alphanumeric, space, -, (, ), full-stop and ' only.Surname
- Must be alphanumeric, space, -, (, ), full-stop and ' only.Address1
- Must contain alphanumeric, space, ', ., &, -, /, \, ), ( and , characters only.Postcode
- Must be alphanumeric, - and spaces only.Country
- Must contain letters, space, -, (, ), full-stop, & and ' only.
-
For more information visit the ZAP POST Documentation.
- Click
Save
.
Submissions endpoint
ZAP~POST also provides an /api/v1/submissions
endpoint, which does almost the same thing as the /api/v1/records
endpoint.
Suppose you want to send a list of reminders for customers whose subscriptions expire soon or a reactivation campaign for customers who last purchased a while ago. You'd use the /api/v1/submissions
endpoint in that case.
In a nutshell, the /api/v1/records
endpoint is for individual pieces of information, like abandoned shopping carts, while the /api/v1/submissions
endpoint is for sending collections of related information, like lists of reminders or lapsed customers.
If you want to use the /api/v1/submissions
endpoint, use the ZAP~POST Individual Post preset and modify it as shown below.
This is an editor part of the "ZAP~POST Individual Post":
This is how it should be changed:
- Click on the
Editor
tab. - Change
Endpoint
into/api/v1/submissions
. - Click on the
Batch webhook
button and then on theTurn on and reset template
. - Copy and paste everything from the original
Payload
to theRoot
part and then change the inside of the "submissions" in the square brackets to:
{{ customers | join(",") }}
- Copy and paste the inside of the original "submissions" without the square brackets into the
Customer
part
Next steps
Before you launch your scenario, you can test and preview the complete workflow in the Test
tab. When you click Start
, you will see a confirmation window indicating how many customers will be affected by the scenario run.
Updated 12 months ago