check-to-slotInserting Polling Place Info

Daisychain's integration with the DNC's iwillvote.com lets you easily insert polling place information for US elections into your messages.

circle-exclamation

Overview

To send out polling information, you can use variables when composing your message in Step 2 of the Campaign Creation process.

You can see key variables that are most commonly used are:

  • Polling Place Name: {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].location_name }}

  • Polling Place Address: {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].location_name }}

  • Polling Place Hours: {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].dates_hours }}.

To put it all together, below are few example messages that include variables.

Sample Messages

Sample Message - Election Day

Hey {{ person.first_name }}, πŸ“… Election Day is Tuesday, November 3rd.  
  
{% if person.primary_address.dnc_will_vote and person.primary_address.dnc_will_vote.locate %}  

Here's all the info you need to vote in {{ person.primary_address.locality }}:  
  
πŸ—³οΈ Your polling place is {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].location_name }}.  
  
πŸ“ Address: {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].address_line_1 }}, {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].city }}, {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].state_code }} {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].zip }}  
  
πŸ•’ Polls are open from {{ person.primary_address.dnc_will_vote.locate.polling_locations[0].dates_hours }}.  
  
{% else %}  
  
πŸ—³οΈ Please check your polling location at https://iwillvote.com.  
{% endif %}

Using the code above will output a message that looks something like this:

Sample Message - Early Vote

Using the code above will output a message that looks something like this:

Where Does the Data Come From?

The polling place data in Daisychain comes from the DNC's iWillVote API, which aggregates voting location information from state parties and state election authorities. Daisychain does not control when this data becomes available β€” it depends on when each state's data is published and loaded into the iWillVote system.

What to Do When Data Isn't Available Yet

It's common for polling place data to be unavailable in some states or races, especially ahead of early voting periods. This can happen even when early voting is about to start or is already underway. A few things to keep in mind:

  • State parties are the source. The data flows from state election authorities to state parties to the DNC's iWillVote platform to Daisychain. If data is missing, the state party's data director is typically the best person to contact about when it will be available and what the plan is to get it loaded.

  • Coverage varies by race and state. Major statewide and federal elections tend to have the best coverage. Smaller or off-cycle races may not be included at all.

Using Fallback Messages

Because data availability can be unpredictable, we strongly recommend using the {% if %} / {% else %} conditional blocks shown in the sample messages above. This ensures that if polling place data isn't available for a given person, they'll receive a fallback message directing them to iwillvote.comarrow-up-right to look up their info manually, rather than receiving a broken or empty message.

Full List of Daisychain Variables Using Info From iwillvote.com

Daisychain Variable

Description

{{ person.primary_address.dnc_will_vote.locate.polling_locations[0].location_name }}

Name of the Election Day polling place.

{{ person.primary_address.dnc_will_vote.locate.polling_locations[0].address_line_1 }}

Street address of the Election Day polling place.

{{ person.primary_address.dnc_will_vote.locate.polling_locations[0].city }}

City of the Election Day polling place.

{{ person.primary_address.dnc_will_vote.locate.polling_locations[0].state_code }}

State abbreviation of the Election Day polling place.

{{ person.primary_address.dnc_will_vote.locate.polling_locations[0].zip }}

ZIP code of the Election Day polling place.

{{ person.primary_address.dnc_will_vote.locate.polling_locations[0].dates_hours }}

Election Day polling hours.

{{ person.primary_address.dnc_will_vote.locate.polling_locations[0].location_notes }}

Special notes about the Election Day polling location.

Early Voting Locations

(Below are variables for early voting locations)

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].location_name }}

Name of the early voting location.

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].address_line_1 }}

Street address of the early voting location.

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].city }}

City of the early voting location.

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].state_code }}

State abbreviation of the early voting location.

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].zip }}

ZIP code of the early voting location.

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].dates_hours }}

Early voting hours and dates (e.g., β€œ8:30 AM - 4:30 PM, Oct 15 - Nov 6”).

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].location_notes }}

Special notes about the early voting location (e.g., "Park behind the building").

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].schedule_exceptions }}

Exceptions to the schedule (e.g., "Closed on Sundays").

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].schedule[0].date }}

First date this early voting location is open.

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].schedule[0].time_ranges }}

Open and close times for a specific early voting date.

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].schedule[0].is_open }}

Boolean (true/false): Is this early voting location open on this date?

{{ person.primary_address.dnc_will_vote.locate.early_vote_locations[0].schedule[0].is_24h }}

Boolean (true/false): Is this early voting location open 24 hours?

Ballot Drop-Off Locations

(Below are variables for drop-off locations)

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].location_name }}

Name of the ballot drop-off location.

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].address_line_1 }}

Street address of the ballot drop-off location.

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].city }}

City of the ballot drop-off location.

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].state_code }}

State abbreviation of the ballot drop-off location.

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].zip }}

ZIP code of the ballot drop-off location.

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].dates_hours }}

Ballot drop-off hours and dates (e.g., β€œ24/7 from Oct 15 - Nov 6”).

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].schedule_exceptions }}

Exceptions to the drop-off schedule (e.g., "Closed on Sundays").

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].open_early_voting }}

Boolean (true/false): Is this location open during early voting?

{{ person.primary_address.dnc_will_vote.locate.drop_off_locations[0].open_election_day }}

Boolean (true/false): Is this location open on Election Day?

Last updated