Skip to content
English
  • There are no suggestions because the search field is empty.

Post Messages: Open for Inspection (OFI)

Properti supports automated OFI posts for single and multiple listings, each using different Liquid formatting. This guide explains the correct format for both to ensure inspection times display correctly on social media.

Format Types

There are two main formats to keep in mind, based on how the post message is triggered:

  1. Single Listing – Listing: Current

  2. Multiple Listings – OFI Collection


1. Single Listing Format

Used for automations triggered by Listing - Current (i.e., individual property posts).

{%- if listing.inspection_times and listing.inspection_times != empty %}

{% echo "Open for Inspection" | unicode: "bold sans" -%}
{% assign processed_dates = "" %}
{%- for inspection in listing.inspection_times -%}
 {%- assign day = inspection.start_time | date: "%-d" -%}
 {%- assign month = inspection.start_time | date: "%B" -%}
 {%- assign suffix = "th" -%}
 {%- if day == "1" or day == "21" or day == "31" -%}
   {%- assign suffix = "st" -%}
 {%- elsif day == "2" or day == "22" -%}
   {%- assign suffix = "nd" -%}
 {%- elsif day == "3" or day == "23" -%}
   {%- assign suffix = "rd" -%}
 {%- endif -%}
 {%- assign date_key = inspection.start_time | date: "%A" | append: " " | append: day | append: suffix | append: " " | append: month -%}
 {%- unless processed_dates contains date_key -%}
   {%- if processed_dates != "" -%}{%- endif %}
{{ date_key }} {{ inspection.start_time | date: "%-I:%M %P" }} – {{ inspection.end_time | date: "%-I:%M %P" }}
   {%- assign processed_dates = processed_dates | append: "|" | append: date_key -%}
 {% endunless %}
{% endfor %}
{% endif %}

{% if platform != "instagram" -%}View property: {{shortLink}} {% endif %}


2. Multiple Listings Format (OFI Collection)

Used for Open for Inspection automations, typically promoting multiple properties at once. The system handles this differently, so the message format also changes.

{% for listing in listings limit:20 -%}

📍 {{ listing.address }}

  {% for inspection in listing.data.inspection_times limit: 5 -%}
    {%- assign day = inspection.start_time | date: "%-d" -%}
    {%- assign month = inspection.start_time | date: "%B" -%}
    {%- assign suffix = "th" -%}
    {%- if day == "1" or day == "21" or day == "31" -%}
      {%- assign suffix = "st" -%}
    {%- elsif day == "2" or day == "22" -%}
      {%- assign suffix = "nd" -%}
    {%- elsif day == "3" or day == "23" -%}
      {%- assign suffix = "rd" -%}
    {%- endif -%}

    {{ inspection.start_time | date: "%A" }} {{ day }}{{ suffix }} {{ month }}
    {{ inspection.start_time | date: "%-l:%M %P" }} – {{ inspection.end_time | date: "%-l:%M %P" }}
  {% endfor -%}

{% endfor -%}


Troubleshooting Tips

  • If inspection times aren’t appearing as expected, confirm whether the automation is set for single listing or multiple listings.

  • Always use the correct format based on the trigger source: Listing - Current or OFI Collection.

  • For Instagram posts, the shortLink should not be included, as it’s automatically excluded by the {% if platform != "instagram" %} condition.