Fanplayr 360
  • Introduction
  • Data
  • Navigation
  • Tutorials
    • Sync High Value Users to Facebook Custom Audience
  • Features
    • Overview
    • Filters
      • Examples
    • Insights
    • Audiences
      • List
      • Editing
    • Automations
      • List
      • Editing
    • Pipelines
      • List
      • Editing
    • Exports
      • List
      • Editing
    • Profiles
      • Profile
  • 🔗Integrations
    • Sources
      • List
      • Editing
    • Destinations
      • List
      • Editing
    • Catalog
      • Amplitude
      • Attentive
      • AWS S3
      • Cordial
      • Custom Integration
      • Facebook Custom Audience
      • FTP/SFTP - Password Authentication
      • Google Ads
      • JavaScript
      • Mailchimp
      • Mailup
      • Pipedrive
      • Salesforce Commerce Cloud
      • Salesforce Marketing Cloud
      • Send In Blue
      • SFTP - SSH Key Authentication
      • Shopify
      • Slack
      • TikTok
      • Twilio
      • VTEX IO
  • Other
    • Mapping
      • Events
      • Event Attributes
    • Data Dictionary
      • Events
      • Event Attributes
      • User Attributes
    • Data Health
    • Compliance
      • PII
      • Consent
    • Account Settings
      • Personal
      • Preferences
      • Company
      • Users
      • Security
      • Invoices
  • 👩‍💻API Reference
    • API Overview
    • JavaScript API
      • Javascript API Reference
    • Custom API
      • Sessions and Users
      • Tracking Page Views
      • Tracking Events
      • Managing Identity
      • User Profile Data
      • Managing Consent
    • Semantic Data
      • Semantic Events
        • E-Commerce
        • Messaging
        • Other
      • Semantic Objects
      • Semantic User Attributes
      • Fanplayr 360 Generated Attributes
  • PrivacyID
  • Appendix
    • Terminology
Powered by GitBook
On this page
  • Authentication
  • Capabilities
  • Create contact
  • Send Automation
  • Email Templates
  1. Integrations
  2. Catalog

Cordial

Send SMS messages and email

PreviousAWS S3NextCustom Integration

Last updated 1 year ago

Cordial integration can only be used as a destination. These are the capabilities available:

Authentication

These parameters are necessary to connect to your Cordial account:

API Key

To create an API Key, please follow the instruction in .

API Address

Cordial has two distinct API addresses, so it's important to check which one is associated with your account. Please choose the domain where your account is located at.

Capabilities

Create contact

You need only to define the subscriber status that you want to set when a contact is created and the lists where you want to add it.

Send Automation

To send messages using automation, you need to define the automation template to use and which attribute should be used to identify the user ( email address and phone number ).

Please define the output parameter accordingly to the identification previously defined

Email Templates

You can then use this in an Email Automation template. An example that prints out all the available cart data is below. You would likely only use a small portion such as the product names and images.

<div>
  <h2>We noticed you left something in your cart.</h2>
  {if $extVars.cart}
    <div>
      <h3>Cart details:</h3>
      <ul>
        <li>ID: {$extVars.cart.id}</li>
        <li>Revenue: {$extVars.cart.revenue}</li>
        <li>Discount: {$extVars.cart.discount}</li>
        <li>Discount Code: {$extVars.cart.discountCode}</li>
        <li>Shipping: {$extVars.cart.shipping}</li>
        <li>Tax: {$extVars.cart.tax}</li>
        <li>Currency: {$extVars.cart.currency}</li>
      </ul>
      {if $extVars.cart.products}
        <table>
          <tr>
            <th>ID</th>
            <th>SKU</th>
            <th>URL</th>
            <th>Name</th>
            <th>Size</th>
            <th>Brand</th>
            <th>Color</th>
            <th>Price</th>
            <th>Variant</th>
            <th>Currency</th>
            <th>Image</th>
            <th>Quantity</th>
            <th>Categories</th>
          </tr>
          {foreach $extVars.cart.products as $prod}
            <tr>
              <td>{$prod.id}</td>
              <td>{$prod.sku}</td>
              <td>{$prod.url}</td>
              <td>{$prod.name}</td>
              <td>{$prod.size}</td>
              <td>{$prod.brand}</td>
              <td>{$prod.color}</td>
              <td>{$prod.price}</td>
              <td>{$prod.variant}</td>
              <td>{$prod.currency}</td>
              <td><img src="{$prod.imageUrl}" /></td>
              <td>{$prod.quantity}</td>
              <td>
                {*
                  the following code is a little more complex
                  it takes the arrays of categories and prints them out separated by commas
                *}
                {assign var="joinedArray" value=""}
                {foreach from=$prod.categories item=value}
                  {$joinedArray = "{$joinedArray}{$value}, "}
                {/foreach}
                {* remove the last comma *}
                {$joinedArray|substr:0:-2}
              </td>
            </tr>
          {/foreach}
        </table>
      {else}
      <p>No products</p>
      {/if}
    </div>
  {/if}
</div>

When using an Email Automations in Cordial with the Send Automation capability, we send through a cart variable, which contains the data in the object.

🔗
this article
Create contact
Send automation
Semantic Cart