How to Use Dynamic Fields in a Script
In this article:
What type of data can be used as a Dynamic Field?
How to use Dynamic Fields in a message
How to use a Contact's first name as a Dynamic Field
How to use the Sender's first name as a Dynamic Field
How to use polling place location and other data as a Dynamic Field
Dynamic Fields pull in Contact Details, such as name or polling location, into outbound messages (Initial Outbounds or Recommended Replies) to personalize texts. Dynamic Fields can instantly add Contact Details instead of typing them out whenever creating a Program script.
We strongly recommend not including a link in the Initial Outbound. There is a high probability Carriers will not deliver an Initial Outbound message that includes a link. Any outbound messages that are sent but undelivered will be charged.
What type of data can be used as a Dynamic Field?
Any column of data uploaded into TextOut (either from CSV or VAN import) can be a Dynamic Field. Some common examples include:
- Contact's First Name,
{{ContactFirstName}}
- Sender's First Name,
{{SenderFirstName}}
- Polling Place Name,
{{PollingLocation}}
- Event Address,
{{EventAddress}}
- Mobilize RSVP Link,
{{MobilizeLink}}
How to use Dynamic Fields in a message
To personalize a message, match up Contact List column headers with the Dynamic Fields in the script.
- In the Contact List, add columns after the standard fields (First Name, Last Name, and Phone Number) with column headers corresponding to the data desired to pull into a message.
- To insert the dynamic field in the script, use the name of the column that holds the data to insert, surrounded by two curly brackets on each side (ex:
{{ColumnName}}
).
Dynamic fields will not be visible until populated in Recommended Replies with a Contact selected in the Program Inbox.
How to Use a Contact's First Name as a Dynamic Field
Initial Outbound messages should have the first name of the Contact you are texting (ex: Hi Peter, it's Paul!). To include the Contact's first name:
- Insert
{{ContactFirstName}}
in the outbound message where the person's name should go. The Contact name will populate in each message based on the Contact List.
How to Use the Sender's First Name as a Dynamic Field
Most Initial Outbound messages also have the first name of the Texter sending the message (ex: Hi Peter, it's Paul!). To include the Texter first name:
- Insert
{{SenderFirstName}}
into the outbound message where the sender's name should appear. The message will populate automatically with the first name of the Texter sending the message.
How to use polling place location and other data as a Dynamic Field
During GOTV, Initial Outbound messages can include the polling location of the Contact (ex: Hi Peter, don't forget to vote at 123 Main St Library!). To include the Contact's polling location:
- Include polling location data in the Contact List file as a column titled "PollingLocation." In the outbound message, insert
{{PollingLocation}}
in the body of the message to insert as a variable per Contact. The message will automatically populate each Contact's Polling Location into the Recommended Reply.
Additional Examples:
- To insert a Mobilize event link, include in the Contact List the Column header "MobilizeLink." Make sure each row has a URL. Insert
{{MobilizeLink}}
where the link should appear in the outbound message. - To insert an event address, include in the Contact List the Column header "EventAddress." Make sure each row has an address. Insert
{{EventAddress}}
where the address should appear in the outbound message.