The Swym-Postscript integration allows you to collect SMS subscriptions for back-in-stock alerts and send automated SMS notifications to subscribers when products are restocked.
Prerequisites
Swym Starter plan or above.
An active Postscript plan.
Configuration Steps
Part 1: Enable Back-in-Stock Alert Event in Swym
Navigate to the Swym Admin panel.
Enable the Back In Stock email trigger if you haven't already.
Part 2: Enable Back-in-Stock SMS Alerts in Swym
In Swym Admin, go to Swym Back in Stock Alerts and click "Manage".
Select Postscript as the SMS provider and click "Configure".
In your Postscript account, go to Settings > API and create a new Private API Key. Add a descriptive label.
Copy the new Private API Key and paste it into the corresponding field in Swym Admin, then click "Save Configurations".
In Postscript, create a new Keyword specifically for Swym back-in-stock campaigns.
Back in Swym Admin, scroll to the Keywords section, click the dropdown, and select the keyword you just created. Click "Save".
In the Countries section, select the countries you wish to market to and click "Save List". Ensure these countries are supported in your Postscript account.
Scroll to the Events section and select the back-in-stock event triggers you want to enable.
Scroll back to the top and click the "Enable" button on the top right.
A prompt will appear; click on "BiS SMS Alerts".
On the settings page, scroll down to the Appearance section.
Add the links to your Terms of Service and Privacy Policy.
Optionally, click "Customize Appearance" to match the form to your store's design.
Click "Save".
Scroll back to the top and click the "Enable" button again. Your integration status should now show as "enabled".
Part 3: Create Postscript Automations
In your Postscript account, navigate to Messaging > Automations > Legacy Automations.
Click "Create Automation" and select "Create Legacy Automation".
Choose the "Custom Automation" template.
Select the appropriate automation trigger that you enabled in Swym Admin.
Click "Save & Continue to Messages".
Set the wait time (usually to 0) and customize the SMS message template.
Click "Save Automation" to enable it.
Event Data
The following data elements are included with each event sent to Postscript.
Product Name
Element Label:
product_name
Example:
Navy Peaks Hoodie
Comment: β
Quantity*
Element Label:
product_quantity
Example:
5
Comment: Inventory quantity available
Variant Info
Element Label:
variant_info
Example:
Blue
Comment: β
Product URL
Element Label:
product_url
Example:
https://example.com/products/hoodie
Comment: β
*Quantity is not included for the "Swym Back in Stock Subscription" event.