Daisychain Help Center
WebsiteDaisychain Platform
  • Getting Started
  • Texting
    • Campaigns
      • Campaign Report
      • Managing Replies
      • Campaign pausing
      • "Sending" Status
    • Sending out MMS messages
    • Inbox
    • Phone Number Registration
      • About "Campaign Verify"
    • Message Snippets
    • Understanding SMS Segments
    • Opt-Outs
    • Personalized Content
      • Inserting Polling Place Info
    • Image Display Issues
    • Texting Best Practices
    • Subscription Statuses
    • Charms
      • Charm Templates
      • Charms - Best Practices
      • Charms Coding Tips
  • Integrations
    • Integrations Overview
    • Action Network
    • ActBlue
    • ControlShift
    • EveryAction
    • Mobilize
    • NGPVAN
    • Run
    • Zapier
  • Organizing
    • Assignments
    • Notes
    • Pathways
    • Automations
      • Filtering Automations
  • Settings
    • Users and Roles
    • Teams
    • URL Shortening
  • Billing and Usage
  • Managing Data
    • CSV Imports
    • Filters
    • Standard Fields
    • Custom Fields
    • Tags
    • Tags vs. Custom Fields
    • Exporting Data
    • Opt Out Lists
    • Subscription Statuses
    • Deduplication
    • Data Sync
  • Email
    • Email Configuration
  • Creating Emails
Powered by GitBook
On this page
  1. Texting

Personalized Content

Daisychain allows you to customize your text messages with personalized and dynamic content.

PreviousOpt-OutsNextInserting Polling Place Info

Last updated 1 month ago

Daisychain uses Shopify’s “Liquid” framework to power "variables", which allows for advanced personalization. Variables can be identified by being inside curly brackets, like this: {{ example_variable }}

In addition to the tips in this article, you can read more about Liquid with .

Inserting variables

You can insert variables into messages by clicking the curly braces under the message you are crafting.

You have quick access to the most commonly used variable (First Name), and can access other variables by expanding the three menus ("Account", "Person", and "User"):

The general format is:

{{ person.dynamic_field }}

IF Statements

Daisychain allows you to customize dynamic fields using IF statements. The general format is:

{% if STATEMENT %}

{% else %}

{% endif %}

For example, if you would like to display a certain message based on a voter’s sweet treat preference, you could use the following formatting (referencing the “Sweet Treat” custom field):

Hey {{ person.first_name }}! 
{% if person.sweet_treat_preference == "Honey" %}  
Win a trip to eat honey with Christopher Robin!  
{% else %}    
You can win a trip to see Christopher Robin! 
{% endif %} 

Default values

For most dynamic fields, you can include a default value by including:

| default:"default here"

For example, for first name defaulting to "Friend," you may use:

{{ person.first_name | default:"Friend" }}

If you are attempting to set a default value for a dynamic field with multiple layers (for example, state name within address), you will need to first check if the value exists, like so:

{% if person.primary_address and person.primary_address.region %}  
  
  {{ person.primary_address.region_data.name }}  
  
{% else %}  
  
   Your State  
  
{% endif %}

this cheat sheet