--- title: "Real-Time Triggers with Message Center" slug: "acc-triggered-real-time-triggers-with-message-center" updated: 2025-07-10T18:57:56Z published: 2025-07-10T18:57:56Z canonical: "support.jacquard.com/acc-triggered-real-time-triggers-with-message-center" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.jacquard.com/llms.txt > Use this file to discover all available pages before exploring further. # Real-Time Triggers with Message Center > [!CAUTION] > Before continuing, give [Adobe's documentation on Message Center](https://experienceleague.adobe.com/docs/campaign-classic/using/transactional-messaging/about-transactional-messaging.html?lang=en) a read. If this doesn't sound like what you're using, you may be looking for our [Adobe workflow snippet triggered message experiments integration](/v1/docs/acc-triggered-getting-started). ### Getting started with triggered message experiments in Adobe Message Center There's a little housekeeping to take care of if this is your first time using our real-time endpoint in Adobe. ### Enable endpoint access Not unlike what must be done to give our other API endpoints the green light, you'll need to add our **https://realtime.phrasee.co** URL to your Campaign Control Panel. You can find the panel at [https://experience.adobe.com/#/controlpanel](https://experience.adobe.com/#/controlpanel). [Follow these directions](https://experienceleague.adobe.com/docs/control-panel/using/instances-settings/url-permissions.html?lang=en) from Adobe to add **https://realtime.phrasee.co** to your URL Permissions. Please note, this needs to be done on **both** your admin and execution instances of Adobe Message Center. [![](https://downloads.intercomcdn.com/i/o/366504382/f605348d3f7b4969d60ce5ff/938b45c0-53f3-4a0b-a8f0-b39ec9dd6cd0.png?expires=1749734100&signature=b4f25f18fabcf4791ac9802aca120e91cf9ae78f9874189cf00c16dfc5a5281e&req=dyYhE8l6noldFb4f3HP0gKaW%2Bt1Y4qWR4wFiLSFKimjRVlN%2B10z832RTIu4F%0AROfCS3hdBQQEhPQKJg%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/366504382/f605348d3f7b4969d60ce5ff/938b45c0-53f3-4a0b-a8f0-b39ec9dd6cd0.png?expires=1749734100&signature=b4f25f18fabcf4791ac9802aca120e91cf9ae78f9874189cf00c16dfc5a5281e&req=dyYhE8l6noldFb4f3HP0gKaW%2Bt1Y4qWR4wFiLSFKimjRVlN%2B10z832RTIu4F%0AROfCS3hdBQQEhPQKJg%3D%3D%0A) ### Prepping your email Follow the steps below to prepare your Message Center delivery for a triggered message experiment. **2. Add the Jacquard variable as your delivery's subject line** Paste the following in the **Subject** field of your delivery: ```plaintext <%= language_variant_text %> ``` [![](https://downloads.intercomcdn.com/i/o/366515983/804cb02127da80d2740bbc3f/a3.png?expires=1749734100&signature=c10f11adee32dab042b076258742689dd6bf068fb50e72fc6d9154116eb04bc5&req=dyYhE8h7lIlcFb4f3HP0gBXqAyPSFxMH1G%2FhIFumJ0nCDN%2FneFonWW7abyiv%0Ait9xbjuG0mpS2352SQ%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/366515983/804cb02127da80d2740bbc3f/a3.png?expires=1749734100&signature=c10f11adee32dab042b076258742689dd6bf068fb50e72fc6d9154116eb04bc5&req=dyYhE8h7lIlcFb4f3HP0gBXqAyPSFxMH1G%2FhIFumJ0nCDN%2FneFonWW7abyiv%0Ait9xbjuG0mpS2352SQ%3D%3D%0A) **3. Add SSJS code to the HTML content of your email** Paste the following SSJS code in the body of the email:
<%
var language_variant_text = "Default line"
var statistics_url = "https://mail-tracking.phrasee.co/live/open?variant_id=000000000000000000000000&campaign_id=";

function looseJsonParse(obj){
return Function('"use strict";return (' + obj + ')')();
}

try {

var phraseeReqCampaign = new HttpClientRequest("https://realtime.phrasee.co/live/single_variant?campaign_id=");

phraseeReqCampaign.header["Authorization"] = "Bearer >"
phraseeReqCampaign.method = "GET";
phraseeReqCampaign.execute();

var phraseeCampaignObj = JSON.parse(phraseeReqCampaign.response.body);
var language_variant_text = phraseeCampaignObj.variant_text;
var statistics_url = phraseeCampaignObj.statistics_url;

}
catch (err) {
var phraseeError = err;
}

for (var step = 0; step < 2; step++) {

var startSLTag = language_variant_text.search("<%=");

if (startSLTag !== -1) {
var endSLTag = language_variant_text.search("%\>");
var tagSLToRep = language_variant_text.substring(startSLTag + 3, endSLTag);
tagSLToRep = tagSLToRep.trim();
language_variant_text = language_variant_text.split("<%= " + tagSLToRep + " %\>").join(looseJsonParse(tagSLToRep));
}

}
%>
We generally recommend pasting it just after the opening **** tag as seen below. [![](https://downloads.intercomcdn.com/i/o/366516068/193b1428607c828d3af99e8f/a4.png?expires=1749734100&signature=501b75ce15d0cac46958ffe4663ee3db8cf7ee890f690fe2860bdb87c5129a51&req=dyYhE8h4nYdXFb4f3HP0gN9KcTk1v8l0CwEAYiL0rNopDWMEfNTwKyzHOm5N%0A7B68Xs%2BVrJp%2B5ZL29w%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/366516068/193b1428607c828d3af99e8f/a4.png?expires=1749734100&signature=501b75ce15d0cac46958ffe4663ee3db8cf7ee890f690fe2860bdb87c5129a51&req=dyYhE8h4nYdXFb4f3HP0gN9KcTk1v8l0CwEAYiL0rNopDWMEfNTwKyzHOm5N%0A7B68Xs%2BVrJp%2B5ZL29w%3D%3D%0A) **4. Add the Jacquard tracking pixel to the HTML content of your email** Paste the following tracking pixel just before the closing **** tag in your HTML: ```plaintext ``` ### Delivery preparation complete Your Message Center delivery is all prepped. Now, it's time to give it a test. If it all works as expected, configure the rest of your Message Center settings as you normally do and push play.