# New listing matching your search WhatsApp template

> Alert saved-search leads when a new property matches their criteria. Marketing WhatsApp template with price, size and link.

- Category: Marketing
- Industry: Real estate
- Use case: Product launch
- Language: en_US
- Approval rate: 90%
- Page: https://template-builder.dev/whatsapp-template/real-estate-new-listing-alert
- JSON: https://template-builder.dev/whatsapp-template/real-estate-new-listing-alert.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoicmVhbF9lc3RhdGVfbmV3X2xpc3RpbmdfYWxlcnQiLCJsYW5ndWFnZSI6ImVuX1VTIiwiY2F0ZWdvcnkiOiJNQVJLRVRJTkciLCJoZWFkZXIiOnsidHlwZSI6IlRFWFQiLCJ0ZXh0IjoiTmV3IGhvbWUgZm9yIHlvdSJ9LCJib2R5Ijp7InRleHQiOiJIaSB7e2ZpcnN0X25hbWV9fSwgYSBuZXcgbGlzdGluZyBtYXRjaGVzIHlvdXIgc2VhcmNoOiAqe3tiZWRyb29tc319IGJlZCBpbiB7e25laWdoYm9yaG9vZH19KiBmb3Ige3twcmljZX19LiBJdCBqdXN0IGNhbWUgb24gdGhlIG1hcmtldCBhbmQgdmlld2luZ3MgYXJlIGZpbGxpbmcgdXAgZmFzdC4ifSwiZm9vdGVyIjp7InRleHQiOiJSZXBseSBTVE9QIHRvIG9wdCBvdXQifSwiYnV0dG9ucyI6W3sidHlwZSI6IlVSTCIsInRleHQiOiJWaWV3IGxpc3RpbmciLCJ1cmwiOiJodHRwczovL25vcnRod2luZGhvbWVzLmNvbS9saXN0aW5nL3t7bGlzdGluZ19pZH19In0seyJ0eXBlIjoiUVVJQ0tfUkVQTFkiLCJ0ZXh0IjoiQm9vayBhIHZpZXdpbmcifV0sInZhcmlhYmxlcyI6eyJmaXJzdF9uYW1lIjp7ImV4YW1wbGUiOiJSYXZpIn0sImJlZHJvb21zIjp7ImV4YW1wbGUiOiIzIn0sIm5laWdoYm9yaG9vZCI6eyJleGFtcGxlIjoiUml2ZXJzaWRlIn0sInByaWNlIjp7ImV4YW1wbGUiOiIkNDI1LDAwMCJ9LCJsaXN0aW5nX2lkIjp7ImV4YW1wbGUiOiJMODgyMTAifX19

## How to get it approved

Reference the criteria the user saved so it feels relevant, and keep the opt-out. Include price and bedrooms for scannability.

## Message text

New home for you
Hi {{first_name}}, a new listing matches your search: *{{bedrooms}} bed in {{neighborhood}}* for {{price}}. It just came on the market and viewings are filling up fast.
Reply STOP to opt out

## Variables

- `{{first_name}}`: Ravi
- `{{bedrooms}}`: 3
- `{{neighborhood}}`: Riverside
- `{{price}}`: $425,000
- `{{listing_id}}`: L88210

## Template JSON

```json
{
  "name": "real_estate_new_listing_alert",
  "language": "en_US",
  "category": "MARKETING",
  "header": {
    "type": "TEXT",
    "text": "New home for you"
  },
  "body": {
    "text": "Hi {{first_name}}, a new listing matches your search: *{{bedrooms}} bed in {{neighborhood}}* for {{price}}. It just came on the market and viewings are filling up fast."
  },
  "footer": {
    "text": "Reply STOP to opt out"
  },
  "buttons": [
    {
      "type": "URL",
      "text": "View listing",
      "url": "https://northwindhomes.com/listing/{{listing_id}}"
    },
    {
      "type": "QUICK_REPLY",
      "text": "Book a viewing"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Ravi"
    },
    "bedrooms": {
      "example": "3"
    },
    "neighborhood": {
      "example": "Riverside"
    },
    "price": {
      "example": "$425,000"
    },
    "listing_id": {
      "example": "L88210"
    }
  }
}
```

## Create it with the Meta Cloud API

```sh
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "real_estate_new_listing_alert",
  "language": "en_US",
  "category": "MARKETING",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "New home for you"
    },
    {
      "type": "BODY",
      "text": "Hi {{first_name}}, a new listing matches your search: *{{bedrooms}} bed in {{neighborhood}}* for {{price}}. It just came on the market and viewings are filling up fast.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Ravi"
          },
          {
            "param_name": "bedrooms",
            "example": "3"
          },
          {
            "param_name": "neighborhood",
            "example": "Riverside"
          },
          {
            "param_name": "price",
            "example": "$425,000"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Reply STOP to opt out"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "View listing",
          "url": "https://northwindhomes.com/listing/{{1}}",
          "example": [
            "https://northwindhomes.com/listing/L88210"
          ]
        },
        {
          "type": "QUICK_REPLY",
          "text": "Book a viewing"
        }
      ]
    }
  ]
}'
```
