Skip to main content

Integrating Alia with Postscript

Connect Postscript with a private API key to send the phone numbers your popups collect to a Postscript keyword.

Written by Rob D

The Postscript integration sends the phone numbers your popups collect to Postscript. Alia subscribes each phone number to the Postscript keyword you choose, along with the email address if the visitor gave one. Alia also saves discount codes and quiz answers on the subscriber.

Postscript only receives visitors who give a phone number.

Before you begin

  • You need a Postscript account with access to its API settings.

  • Create the keyword you want Alia subscribers to join in Postscript.

Create a private API key in Postscript

  1. In Postscript, go to the API section of your settings.

  2. Select Create Security Key Pair.

  3. Copy the private key. It starts with sk.

💡 Note: Use the private key, not the public key. Alia can't connect with the public key.

Connect Postscript to Alia

  1. In Alia, go to Integrations.

  2. Find Postscript and select Connect.

  3. In the Postscript integration window, paste your private API key.

  4. Choose a Keyword.

  5. Select Create.

The Postscript card now shows Connected to and your shop's name. Select Edit to change the keyword, or Disable to disconnect. If you use Postscript Onsite Opt-In, you still need to choose a keyword to connect. Onsite opt-in forms don't use it.

Send one popup to a different keyword

Use this to send different popups into different Postscript automations.

  1. Open the popup in the popup editor.

  2. With nothing selected, go to the Integration settings tab.

  3. Expand Postscript settings.

  4. Choose a different Keyword.

  5. Select Save.

You can also set a keyword for a single phone form in the form's Postscript settings, or for a single reward under Integration overrides. A popup's settings apply the first time Alia sends a visitor to Postscript. Form and reward settings apply every time. See How to confirm which list/unit your popup is going to - Postscript.

Set up your welcome automation

  1. In Postscript, start your welcome automation from the keyword Alia uses.

  2. To include each subscriber's code, insert the aliaoffer subscriber property in the first message.

  3. Set a backup code in Postscript in case the property is empty.

💡 Tip: If the reward or quiz comes after the phone step, turn off Immediately subscribe users to CRMs on the phone form. Alia then waits until the visitor claims their reward, so the code is on the subscriber before the first text goes out. It's under Advanced form settings.

What Alia sends to Postscript

Every subscriber Alia creates gets the Postscript tag Alia. Alia also saves these subscriber properties:

Property

What it holds

When Alia sends it

aliaoffer

The discount code

When they claim a reward

aliaoffertext

The reward's title, such as "15% off"

When they claim a reward

aliaofferexpiration

When the code expires

When they claim a reward, if the code expires

The question text

The visitor's answer

When they answer a quiz or survey question

Postscript doesn't allow punctuation in property names, so Alia removes it. For example, "What's your skin type?" arrives as Whats your skin type. For a question that allows more than one answer, only the first answer is saved. While Postscript is connected, Alia uses the SMS disclaimer from your Postscript account as the SMS consent text in your popups. See What Alia sends to Postscript for the full list.

Frequently asked questions

Why isn't my welcome automation firing?

Check that the Postscript card doesn't say Could not connect to Postscript. If it does, the API key was probably deleted or changed in Postscript, so disable the integration and connect again. Then check that the automation starts from the keyword Alia actually uses and is active. See Troubleshooting your Postscript integration.

Why is aliaoffer empty in my texts?

Alia saves aliaoffer when the visitor claims a reward. If the first text goes out before that, the property is empty. Turn off Immediately subscribe users to CRMs on the phone form, or set a backup code. The property is spelled aliaoffer, with no underscore.

Do email-only signups go to Postscript?

No. Postscript only receives visitors who give a phone number. Their email is included when they give both.

Why does the card say "Reconnect to enable opt-in tracking"?

Your connection is older than Alia's opt-in tracking. Disable the integration and connect again so Alia can count SMS opt-ins.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?