<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by DRCXCO on Medium]]></title>
        <description><![CDATA[Stories by DRCXCO on Medium]]></description>
        <link>https://medium.com/@drcxco?source=rss-65949b93095f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*P12gao-UB70derkA421I6w.png</url>
            <title>Stories by DRCXCO on Medium</title>
            <link>https://medium.com/@drcxco?source=rss-65949b93095f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:47:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@drcxco/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Utilizing Connected Content in Braze to Access Data from Google Sheets]]></title>
            <link>https://medium.com/@drcxco/utilizing-connected-content-in-braze-to-access-data-from-google-sheets-3bbb267171ed?source=rss-65949b93095f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bbb267171ed</guid>
            <category><![CDATA[braze]]></category>
            <category><![CDATA[marketing-automation]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[marketing-operations]]></category>
            <category><![CDATA[email-marketing]]></category>
            <dc:creator><![CDATA[DRCXCO]]></dc:creator>
            <pubDate>Thu, 25 Jan 2024 17:48:59 GMT</pubDate>
            <atom:updated>2024-01-27T15:07:41.854Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*J9g_Cdv8IUMWXcvuGLfLJA.png" /></figure><p>When faced with the laborious process of manually configuring campaigns on Braze and navigating through each campaign setup solely to modify the copy or creative graphics, this solution empowers teams to be more agile. It facilitates seamless collaboration for crm administrators to efficiently orchestrate campaigns for all channels with developers responsible for templated code and copywriters responsible for mapped and localized campaign copy.</p><p>Now, unless engineering and infoSec is required, the first step is:</p><ol><li>Create a Google developers account by visiting this link.</li><li>Initiate a new project.</li><li>Input the project’s name and click on the create button.</li><li>Generate credentials, Application Programming Interface, (API) keys for the project.</li><li>Locate and choose the Google Sheets API App.</li><li>Click on Enable.</li><li>Select “create credentials” and choose, API Key.</li><li>Copy the API Key (avoid sharing it), and setup is now complete.</li></ol><h3>Next: Map Braze Messaging Automation Through Google Spreadsheet Integration</h3><p>Once the requisite credentials are established, the google sheet will need to be created with data from a spreadsheet with header rows containing the unique names for each preferred variable. Once the sheet is populated, do the following:</p><ol><li>Enter data and set share settings to “Anyone with the link may view.”</li><li>Copy the Sheet ID from the sheet’s URL into an assign directive.</li><li>Copy the name of the tab into an assign directive. (e.g., “user_welcome”)</li><li>Specify the columns to be read in an assign directive. (e.g., “a:d”).</li><li>Retrieve the API Key’s value obtained during the previous Google API Credentials setup and paste it in an assign directive.</li><li>Paste this baseURL from the browser in an assign directive.</li></ol><pre>{% assign campaignName = &#39;Insert-Campaign-Name&#39; %}<br>{% assign sheetID = &#39;XXXXXX&#39; %}<br>{% assign tab = campaignName %}<br>{% assign sheetRange = &#39;a:d&#39; %}<br>{% assign key = &#39;XXXXXX&#39; %}<br>{% assign baseUrl = &#39;https://sheets.googleapis.com/v4/spreadsheets&#39; %}</pre><h3>Next: Integrate the Google Sheet within Braze via Content Blocks</h3><p>After manually testing the output, the next step is to dynamically print the spreadsheet output in Braze by creating a content block to put the gSheets URL within a Connected Content as follows:</p><ol><li>Set up a content block to get the Google Spreadsheet.</li><li>Paste all the variables for: baseUrl, sheetID, tab, sheetRange, and key.</li><li>Script a Connected Content tag to dynamically print the gSheets JSON as ‘data’.</li><li>Set the object to no_cache for testing, cache_age_max for production.</li></ol><p>This integration method renders the spreadsheet URL values from the local variables, changes the values dynamically based on values for each variable populated through Braze. It then stores the JSON object as a local variable, “data,” enabling access to spreadsheet values by specifying the JSON data node and position — that&#39;s what is happening in the script below:</p><pre>{% connected_content <br>{{baseUrl}}/{{sheetID}}/values/{{tab}}!{{sheetRange}}?key={{key}}<br>:content_type application/json<br>:no_cache<br>:save data <br>%}</pre><h3>Last: Transform the gSheet JSON to print the values for the campaign template</h3><p>Once the JSON has been stored as “data”, the next step will be to iterate through the nodes, extract values based on a specified language as necessary. The extracted values are then formatted into a JSON key:value pair strings. The JSON strings are further processed to extract individual user defined variables, and each variable is split to retrieve specific output variable values such as subject_line, preheader, salutation, paragraph_1, list_1, paragraph_2, signature_1, and fine_print_1. These variable values are then ready for output within an email or other message templates.</p><pre>{% assign row = data.values %}<br>{% assign transformed_json = &quot;&quot; %}<br>{% assign language_key = &#39;en&#39; %}<br>{% assign kvPs = &quot;&quot; %}<br>{% assign copy = &#39;&#39; %}<br>{% if language_key == &#39;en&#39; %}<br>{% assign l = 2 %}<br>{% elsif language_key == &#39;es&#39; %}<br>{% assign l = 3 %}<br>{%endif%}<br><br>{% assign kvPs = &quot;&quot; %}<br>{% for dynamic_value in row %}<br>  {% assign campaign_name = dynamic_value[0] %}<br>  {% assign variable_name = dynamic_value[1] %}<br>  {% assign output_value = dynamic_value[l] %}<br>  <br>  {% if campaign_name == campaignName %}<br>    {% capture kVp %}<br>  &quot;{{ variable_name }}&quot;:&quot;{{ output_value | escape | replace: &#39;,&#39;,&#39;&amp;comma;&#39; }}&quot;<br>    {% endcapture %}<br>    {% if kvPs == &quot;&quot; %}<br>      {% assign kvPs = kVp %}<br>    {% else %}<br>      {% assign kvPs = kvPs | append: &quot;,&quot; | append: kVp %}<br>    {% endif %}<br>  {% endif %}<br>{% endfor %}<br><br>{% assign json_str = kvPs | json %}<br>{% assign json_token = json_str | split: &#39;,&#39; %}<br></pre><h3>Note: Read this for Best Practices when implementing this method</h3><p>It is important to note that implementing additional governance and code may enhance efficiency and mitigate risks. For example, it is best to create a distinct content block to parse the JSON variables for each template type. So if there is a template with the following variables: subject_line, preheader, salutation, paragraph_1, list_1, paragraph_2, signature_1, and fine_print_1 — create a Connected_Content content block and Campaign template for the input and output for those variables as illustrated below:</p><pre>{% for token in json_token %}<br>    {% if forloop.index == 1 %}<br>        {% assign res = token | split: &#39;:&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture subject_line %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>    {% if forloop.index == 2 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture preheader %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 3 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture salutation %}<br>          {{${first_name} | capitalize | default: &#39;Hi&#39;}},<br>        {% endcapture %}<br>    {% endif %}<br>    <br>      {% if forloop.index == 4 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture paragraph_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 5 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture list_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 6 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture paragraph_2 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 7 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture signature_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>      {% if forloop.index == 8 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture fine_print_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>{% endfor %}</pre><p>Then if another template contains CTA_Copy_1 and CTA_Link_1 — create a Connected_Content content block and Campaign template for the input and output of those variables as illustrated below:</p><pre>{% for token in json_token %}<br>    {% if forloop.index == 1 %}<br>        {% assign res = token | split: &#39;:&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture subject_line %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>    {% if forloop.index == 2 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture preheader %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 3 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>          {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture salutation %}<br>          {{${first_name} | capitalize | default: &#39;Hi&#39;}},<br>        {% endcapture %}<br>    {% endif %}<br>    <br>      {% if forloop.index == 4 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture paragraph_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 5 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture list_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 6 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture cta_copy_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>     {% if forloop.index == 7 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture cta_link_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>      {% if forloop.index == 8 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture fine_print_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>        {% if forloop.index == 9 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture signature_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>        {% if forloop.index == 10 %}<br>        {% assign res = token | split: &#39;&quot;:&quot;&#39; %}<br>        {% assign output_value = res[1] | remove: &#39;&quot;&#39; %}<br>        {{content_blocks.${Connected_Content_Escape}}}<br>        {% capture fine_print_1 %}{{ output_value }}{% endcapture %}<br>    {% endif %}<br>    <br>    <br>{% endfor %}</pre><p>Also, the name of each sheet tab should include examples for each template type and variables. Additionally, the name for each tab should match the corresponding CampaignName in Braze. Lastly, once the copy is approved and the tab name has been set to match the CampaignName in Braze, lock the sheet tab. This will prevent the copy in each sheet from being inadvertently modified by users with access to the document.</p><p>Oh and one more thing. This method can also be used with a Campaign Relay Matrix, (CRM) beyond Braze as long as there’s a feature to get APIs before deploying from CRM to a mail transfer agent, (MTA). It may also prove useful when migrating from one CRM to another.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bbb267171ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speaking the World’s Languages: How to Excel in Multilingual Marketing with Localization]]></title>
            <link>https://medium.com/@drcxco/speaking-the-worlds-languages-how-to-excel-in-multilingual-marketing-with-localization-b071615333c1?source=rss-65949b93095f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b071615333c1</guid>
            <category><![CDATA[localization]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[braze]]></category>
            <category><![CDATA[copywriting]]></category>
            <dc:creator><![CDATA[DRCXCO]]></dc:creator>
            <pubDate>Thu, 21 Sep 2023 03:20:16 GMT</pubDate>
            <atom:updated>2023-09-22T06:06:38.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zTTpe2pNyi2X1Mil-JLmBQ.png" /></figure><p>In a recent client discussion concerning the necessity of supporting multiple languages in customer communications through Braze, a versatile customer engagement platform employed by businesses for multichannel marketing, the question arose on enabling multi-language message composition.</p><p>At times, it can be extremely difficult to effectively execute <a href="https://www.braze.com/resources/articles/personalized-marketing-tactics">personalized marketing</a> at scale especially when it comes to deploying marketing messages that support languages spanning the world. However, in March of 2022, <a href="https://www.braze.com/resources/articles/announcing-the-2023-braze-tech-for-black-founders-cohort">Braze introduced a product feature called: Catalogs</a>. Catalogs is a tool that allows users to store data in an excel like table with a key field and optional selections that can group rows of data under a user defined pseudonym.</p><p>In the current setup, the client in this case uses a Microsoft excel document that is owned by the localization team, who transcribes the copy required for an email and the team agreed with stakeholders on the campaign administration team to format the document as illustrated below.</p><pre>ID || Campaign_Name || Dynamic_Content || Default || en || es || ja<br>1 || Campaign 0|| subject_line || Default || Hello || Hola || Kon&#39;nichiwa<br>2 || Campaign 0|| preheader || Default || Hello Again || Hola de nuevo || Mata atta ne<br>3 || Campaign 1|| subject_line || Default || Test || Prueba || Tesuto</pre><p>Once the copy in the excel document is approved for production — from there — the campaign administrative team then creates three messages to support each language. This also requires approval of each dashboard implementation — and a review of the end-user message to be sent from three distinct message dashboards to a final approver, a time consuming task — and would result in the most agile team of campaign administrators being labeled low-level efficient — especially when approvers request changes.</p><p>A relatively more time-efficient approach, classified as having a moderate-level of efficiency, entails the creation of a unique message for each of the three languages using dynamic logic. For instance, a campaign administrator would compose the script for each Dynamic_Content variable such as subject_line for Campaign 0 in the manner illustrated below.</p><pre>{% if {{${language}}} = &#39;en&#39;%}<br>Hello<br>{%elseif {{${language}}} == &#39;es&#39;%}<br>Hola<br>{%elseif {{${language}}} == &#39;ja&#39;%}<br>Kon&amp;apos;nichiwa<br>{%else%}<br>Hello<br>{%endif%}</pre><p>Perhaps a more time-efficient approach, falling into the category of optimal efficiency, may involve the campaign administration team directing the localization team to follow the <a href="https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/catalogs/catalog/#method-1-upload-csv">upload method</a> instructions documented by Braze <a href="https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/catalogs/catalog/#method-1-upload-csv">here</a>.</p><p>Now, once the excel csv file formatted document is uploaded for use in Catalogs, a campaign administrator may then create <a href="https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/catalogs/selections">Selections</a> and filter by Campaign_Name.</p><p>Although, Catalogs does not currently support the use of templating to dynamically personalize the catalog data selection for each message, a bespoke solution that may dynamically template the selection filter namespace for the catalog data would be as follow:</p><pre>{% if {{campaign.${name}}} == &#39;Campaign0&#39;%}  <br>{% catalog_selection_items Localization_Content Campaign0 %}<br>{%elsif {{campaign.${name}}} == &#39;Campaign1&#39;%}<br>{% catalog_selection_items Localization_Content Campaign1 %}<br>{%else%}<br>{%abort_message(&#39;Localization_Content_Null&#39;)%}<br>{%endif%}</pre><p>A campaign administrator using this method may then simply parse each row and column for the Dynamic_Content needed for the message such as subject_line for Campaign 0 in the manner illustrated below.</p><pre>{% if {{items[0].Dynamic_Content}} == &#39;subject_line&#39;%}  <br>{{items[0].[${language}]}}<br>{%endif%}</pre><p>The dependencies here are creating the following:</p><ol><li>Message Design System</li><li>Dynamic Content Nomenclature Matrix</li><li>Campaign Name Matrix</li></ol><p>A noteworthy constraint emerges in the form of catalog selection filters. These filters come with a strict cap of 30 filters for every catalog, thereby restricting the number of campaigns that can align with Braze’s meticulous specifications regarding columns, character limits, and file sizes. It’s also worth noting that the selections feature, a crucial addition, was introduced to the Braze platform as recently as May 2023, as per information from my reliable sources.</p><p>Hopefully, as the demand for catalog feature enhancements grows amongst user, those administrators who still opt for alternatives like <a href="https://www.medium.com/api-university/how-to-use-google-sheets-api-e9346d11f6f0">Google Sheets API</a> might find themselves in the minority. However, it is important to respect Braze’s data conservation model. Rather than it being a barrier to successfully supporting multi-languages most efficiently, across the world, it stands as a blocker for the data warehouse squanders of the world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b071615333c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>