For admins
Selligent integration
Better Email exports your Campaigns into Selligent as email messages on one audience list. Each message carries the Campaign's HTML, subject, preheader and sender. Recipient fields come from the audience list, and Segments and block variants export as Selligent expressions. Send the message from a journey you build in Selligent, or turn on sending and send or schedule it from Better Email.
Selligent's API can't change a message once it exists. So every export after the first creates a new message and deletes the old one. Read Exporting again before you build journeys on an exported message.
Before you start
You need:
- The address you sign in to Selligent at, such as
acme.slgnt.eu - Access to Admin Configuration in Selligent, to create a service account
- The API name of the organization (business unit) and of the audience list you send to
- A sending domain set up in Selligent
- An admin user in Better Email who can create and edit integrations
1. Create a service account in Selligent
- In Selligent, go to Admin Configuration → Access Management → Service Accounts.
- Create a custom service account for Better Email.
- Enable the endpoints Better Email calls, listed below.
- Copy the account's key and secret.
Selligent answers 401 for any endpoint the account doesn't have enabled, even when the key is right. Better Email calls these, all under /organizations/{organization}:
| Endpoint | What Better Email uses it for |
|---|---|
POST /content/email | Creating the message on every export |
DELETE /content/{api_name} | Deleting the message an earlier export made |
GET /lists/{api_name}/fields | Reading the audience list's fields for Recipient Field sync |
POST /journeys/singlebatch | Sending: creating the Single Batch journey that sends the message |
POST /journeys/singlebatch/{api_name}/launch | Sending: sending the journey now or scheduling it |
POST /journeys/singlebatch/{api_name}/cancel | Sending: unscheduling a scheduled send |
DELETE /journeys/singlebatch/{api_name} | Sending: removing a journey after an unschedule or a refused launch |
You need the journey endpoints only if you send from Better Email. Without the content delete endpoint, exports still work, but every old message stays in Selligent. Better Email tries the delete again on the next export, so the old messages go once you enable it.
2. Create the integration in Better Email
- Go to Integrations in Better Email.
- Create a new integration, choose Selligent as the type and give it a clear name.
- Fill in the connection:
- Instance URL, the address you sign in to Selligent at, such as
acme.slgnt.euoracme.slgnt.us. You can paste it with or withouthttps://. - Organization, the organization's API name. Find it under Admin Configuration → Organizations.
- API key and API secret from the service account.
- Audience list, the API name of the list your messages go to.
- Instance URL, the address you sign in to Selligent at, such as
- Optional: turn on Publish messages. See Draft or published.
- Optional: turn on Sync recipient fields. See Recipient Field sync.
- Optional: turn on Send and schedule from Better Email. See Send and schedule from Better Email.
- Check Enabled and click Save.
Better Email accepts only Selligent addresses on slgnt.eu, slgnt.us, emsecure.net or selligent.com, and refuses to save anything else.
One integration is one organization and one audience list. To export to another list or another organization, create another integration.
3. Set up the Destination
The sender lives on the integration's Destinations, so one integration can send for several brands or newsletters. Open the Destinations tab, edit the Destination and fill in:
| Setting | What it does |
|---|---|
| From domain | A sending domain set up in Selligent, such as news.example.com. Required. |
| From name | The sender's name. Required. |
| From address | An address on the From domain. Leave it blank to use the domain's default. |
| Reply-to email and Reply-to name | Optional. |
| To name | What recipients see as their own name. Leave it blank to show their email address ([%[MASTER.MAIL]%]). |
| Delivery group | The API name of the delivery group to send through. Leave it blank for the default. |
| Folder ID | The folder new messages go in. Leave it blank for the top level. |
| Language code | A Selligent message has one language. Leave it blank to use the Campaign's language, or EN if it has none. A locale such as EN_US works too. |
| Default subject | Used when the Campaign has no subject line. |
Better Email won't export without a From domain and a From name. Add one Destination per sender, and pick the Destination when you create the Campaign.
4. Export a Campaign
On the Campaign's Review tab, click Sync to <your Selligent integration>.
The first export creates an email message in Selligent with:
- the Campaign's name
- the subject line and preheader
- the rendered HTML
- a plain-text version made from the HTML
- the Destination's sender, To name, delivery group, folder and language
- the audience list from the integration
- the tag
better-email, so you can filter for Better Email's messages in Selligent
Selligent requires a plain-text part on every message. Better Email writes a readable one from the HTML, with each link's address next to its text. Segmented content is left out of it, so the text version shows only what every recipient gets.
Draft or published
Publish messages applies to a sync. With it off, a synced message arrives as a draft: publish it in Selligent before a journey sends it. With it on, Better Email publishes each message as it exports it, so journeys can use it straight away. A message you send or schedule from Better Email is always published.
Exporting again
Selligent's API has no way to update a message. So each export after the first creates a new message and then deletes the previous one. Each message's API name starts with be_, and every new version adds a number:
| Export | API name |
|---|---|
| First | be_… |
| Second | be_…_v2 |
| Third | be_…_v3 |
Better Email deletes the old message only after the new one exists, so a failed export leaves the last good message in place.
Anything in Selligent that refers to the message by its API name has to be pointed at the new one after each export. That includes journeys you build in Selligent to send it. Export when the content is final, then set up the journey. Journeys Better Email creates when you send from Better Email don't need this: each one sends the version exported with it.
Selligent won't delete a message a journey still uses. When that happens the export still succeeds, the old message stays in Selligent, and Better Email tries to delete it again on the next export. Point the journey at the newest version, and the next export removes the old one.
Better Email deletes only messages it created. If the next name is already taken in Selligent, for example by a message someone made by hand, Better Email skips to the next free number and leaves that message alone.
5. Optional: send and schedule from Better Email
Sending from Better Email is off by default. Without it, an export only creates the message, and your team sends it from a journey in Selligent.
With it on, editors can send a Campaign now, schedule it or unschedule it from the Campaign's Review tab. Better Email creates a Single Batch journey in Selligent on the exported message and launches it. Selligent still delivers the email and fills in its fields for each contact, but nobody needs to open Selligent to send it.
Turn on sending
- Enable the journey endpoints on the service account. See Create a service account.
- Open the Selligent integration in Better Email.
- Turn on Send and schedule from Better Email.
- Click Save.
Pick the segments for each Destination
Editors can send only to the Selligent segments a Destination allows. To set them:
- Open the integration's
Destinationstab and edit the Destination. - Under Sending, type the API names of the audience list's segments in Segments, separated by commas, for example
newsletter_optins, vip_customers. - Save the Destination.
The section appears once sending is turned on and saved. Sending is blocked until the Destination has at least one segment, because a journey without a segment sends to the whole audience list.
Send or schedule a Campaign
- Open the Campaign's Review tab and click
Sync to <your Selligent integration>. - Click
Next. The send step shows who it goes to, the subject, the preheader and the sender. - Choose what happens:
Sync onlycreates the message in Selligent. Nothing is sent.Send nowsends to the segment straight away. You confirm it once more before it goes.Schedulesends at the time you pick, in your own time zone. It must be at least five minutes ahead.
- If the Destination has more than one segment, pick the one to send to.
- Click
Send noworSchedule send.
A send exports the Campaign first, as a new published version of the message, and the journey sends that version. Better Email deletes the previous version only once the send has gone through. The journey's API name is the message's, followed by _j and a stamp, so you can find it in Selligent.
If Selligent refuses the send, nothing goes out. Better Email deletes the journey and the message it just made, leaves the last synced message in place, and shows Selligent's reason.
Unschedule a send
A scheduled Campaign shows its send time on the Review tab. Click Unschedule there. Better Email cancels the journey in the Selligent organization the send was scheduled in, even if the integration has moved to another one since, then deletes the journey. Nothing goes out, and you can sync, send or schedule the Campaign again afterwards.
If Selligent doesn't confirm the cancel, the schedule stays on the Review tab. Check the journey in Selligent before you try again.
A scheduled send can't be unscheduled in its last two minutes.
Selligent can't change a message, and a scheduled journey sends the message as it was when you scheduled it. So a scheduled Campaign can't be synced until you unschedule it, and there's no reschedule. To change the content or the time, unschedule, sync, and schedule again.
After a Campaign is sent
A Campaign sent from Better Email can't be synced again, so the record of what went out stays accurate. To send a new version, duplicate the Campaign.
If Selligent's answer to a send is unclear, for example a timeout or a server error, Better Email can't tell whether the email went out. The Campaign then stays locked rather than risking a second send. The Review tab shows the journey's API name: check that journey in Selligent. Don't duplicate the Campaign to retry before you know.
6. Personalization
Recipient fields
A recipient field inserted in the Campaign Editor exports as a Selligent field on the audience list, which Selligent calls MASTER:
Hi [%[MASTER.FIRSTNAME]%],
Better Email uses the field's ESP field name, which is the field's name on the audience list, such as FIRSTNAME. A name with a dot, such as MASTER.MAIL, is used as written, so you can read a field on another list.
Recipient fields on a Selligent integration have no Default value. Write the copy so it still reads well for a contact without a value.
Segments and block variants
Segments and block variants export as Selligent expressions in <sg:conditional> tags around the content they apply to:
<sg:conditional expression="all(not(isempty([MASTER.TIER])), eq([MASTER.TIER], 'gold'))">
...
</sg:conditional>
Selligent has no "else", so the Everybody else fallback exports as a second conditional on the opposite expression. A contact without the field doesn't match an equals, greater-than or less-than condition.
What each field type supports:
- Text fields: is, is not, is set and is not set.
- Number fields: the same, plus greater than and less than.
- Date fields: fixed dates, compared by day.
- Yes/no fields: is and is not.
And, or and not groups work, nested as deep as you need. A code segment with an Everybody else fallback needs to be a single <sg:conditional> around the content, so Better Email can write the opposite for the fallback.
Two things don't work with Selligent:
- Dates relative to today, such as Within the next 14 days. The builder doesn't offer them on a Selligent integration. Use a fixed date. See Dates relative to today.
- Conditions inside an HTML tag. An
<sg:conditional>tag can't sit inside an attribute, such as a link's address, or inside<style>or<title>. Better Email won't export a Segment, block variant or recipient condition there. Put the condition around the whole element instead.
Use preview profiles to check the variants before you export.
7. Recipient Field sync
- On the integration, turn on Sync recipient fields and save.
- Click
Sync nowin the page header.
Better Email reads the fields of the integration's audience list and creates a recipient field for each one, with its type: text, number, date or yes/no. JSON fields are skipped, because the condition builder can't use them. Every Destination on the integration shares the same fields. Sync again after you add a field to the list in Selligent.
If you change the integration's audience list, organization or Instance URL, Better Email archives the fields it synced from the old list. Sync again to bring in the new list's fields.
To use a field without syncing, add it under Recipient Fields and set its ESP field name to the field's name on the list. See Adding a field manually.
8. Performance data
Performance data isn't available for Selligent. Selligent's API doesn't report statistics for a message or a journey, so a Selligent Campaign has no numbers on its Performance tab. Read the results in Selligent.
Troubleshooting
| Symptom | Fix |
|---|---|
| "The Selligent instance URL must be an https address on …" | Enter the address you sign in to Selligent at, such as acme.slgnt.eu. |
| "Selligent 401 … The API key was refused, or its service account may not call this endpoint" | Check the key and secret. If they're right, enable the endpoint on the service account. See Create a service account. |
| "Set the From domain on the Selligent Destination" | Add a From domain to the Campaign's Destination. The same goes for the From name. |
| "Selligent already has messages named …" | Messages with the next five version names already exist in Selligent. Delete the ones the Campaign no longer needs and export again. |
| A journey sends an old version | Point the journey at the newest message. Its API name has the highest _v number. See Exporting again. |
| Old versions pile up in Selligent | A journey still uses them, or the service account may not delete content. Point the journeys at the newest version, or enable the delete endpoint. The next export deletes them. |
| The sync dialog has no send step | Turn on Send and schedule from Better Email on the integration. A Campaign already sent from Better Email has no send step either. |
| "Set a Selligent segment on this Destination before sending" | Add at least one segment API name to the Campaign's Destination. See Pick the segments. |
| "That Selligent segment isn't one this Destination sends to" | Pick a segment the Destination lists, or add it to the Destination. |
| "Selligent refused to send the journey" or "… schedule the journey" | Selligent's reason follows. Check that the service account may create and launch Single Batch journeys and that the segment exists on the audience list. Nothing went out, and the last synced message is still in place. |
| "This Campaign has a send scheduled in Selligent, which sends the message as it was synced" | Unschedule the send on the Review tab, then sync. |
| "A send for this Campaign reached Selligent, but Better Email didn't get an answer" | The Campaign stays locked. Check the journey named on the Review tab in Selligent before you do anything else. Don't duplicate the Campaign to retry. |
| "Selligent refused to cancel the scheduled journey" | Selligent's reason follows. The send is still scheduled. Check that the service account may cancel Single Batch journeys. |
| "Selligent didn't confirm the journey … was cancelled" | The schedule stays in Better Email. Check the journey in Selligent before you try again. |
| "This Campaign has already been sent through Selligent" | Duplicate the Campaign to send a new version. |
| A journey you built in Selligent can't use the message | With Publish messages off, a synced message is a draft. Publish it in Selligent, or turn the setting on and export again. |
| A Segment or block variant won't export | It sits inside an attribute, <style> or <title>. Move the condition around the whole element. |
| A field shows nothing in the email | The field has no value for that contact, or its ESP field name doesn't match the field on the audience list. |