By industry

WhatsApp API for real estate: from portal lead to booked viewing

In real estate software, the WhatsApp API is about a race against the clock: the lead coming in from a listing portal needs a message from the right agent before another agency replies. With the API, your system routes the lead, sends property photos as an album and books the viewing from each agency's or agent's number.

By D-API engineering team5 min read

A portal lead goes cold in minutes

People browsing listing portals click "I'm interested" on five or six listings in the same evening. The agencies that reply first, and on WhatsApp, win the conversation. Whoever sends an email the next morning is talking to someone who has already booked a viewing elsewhere.

The bottleneck is rarely the agent. It's the path to them: the lead lands in a shared inbox, the manager forwards it by hand, the agent is out on a viewing and only sees it hours later. A real estate CRM that removes that path becomes a selling point for your product in the first meeting.

Lead routing: round-robin leaves the agents' group chat

Many agencies still distribute leads in a WhatsApp group, where the first agent to reply "mine" takes it. Your software can do it better, with rules and a record:

  1. The lead arrives from the portal through your system's integration, with the listing code.
  2. The system picks the agent by the agency's rule: round-robin, neighborhood specialty or listing agent.
  3. Within seconds, the first message goes out to the prospect from that agent's number, with their name and the property of interest.
  4. The agent gets a notice on their own WhatsApp with the lead details.
  5. If the agent doesn't respond within a set time, the lead moves to the next in line, with a record of who missed it.

The WhatsApp API handles sending and returns replies via webhook; the routing rule belongs to your software, and that is what sets one real estate CRM apart from another.

Example: property photos as an album

Sending twenty loose photos floods the chat and the client loses the thread. The album route groups images and videos into a single message, the way WhatsApp shows a gallery:

curl -X POST https://api.d-api.cloud/api/v1/messages/send/album \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "realty-alpha-agent-joanna",
    "to": "14155550123",
    "caption": "2-bed apartment, Mission District, 730 sq ft. Ref. AP-4471",
    "media": [
      { "type": "image", "url": "https://cdn.yourrealty.com/ap-4471/living-room.jpg" },
      { "type": "image", "url": "https://cdn.yourrealty.com/ap-4471/kitchen.jpg" },
      { "type": "image", "url": "https://cdn.yourrealty.com/ap-4471/bedroom.jpg" },
      { "type": "video", "url": "https://cdn.yourrealty.com/ap-4471/tour.mp4" }
    ]
  }'

The URLs must be public at send time, and the album accepts 2 to 100 items. Send photos already resized by your CDN so the client can open them quickly on mobile data. Each item also accepts its own caption. Other formats are in send images, audio and files.

Booking viewings without the back and forth

Scheduling a viewing is where agents lose the most time in chat: "does Saturday work?", "morning?", "what's the address?". The real estate system can shorten that:

  • Open slots as a list: a list message with the available times on the agent's calendar; the client picks one and the viewing goes on the calendar.
  • Native location: on the day, the property location arrives as a WhatsApp pin, not a typed address.
  • Day-before confirmation: fewer missed viewings and fewer agents crossing town for nothing.
  • After the viewing: a short question about what they thought, logged on the lead for the next contact.

Multiple agents: one number per person or one central number?

Number per agentCentral agency number
What the client seesThe agent's nameThe agency's name
Connections on the accountOne per active agentOne or a few
When the agent leavesDisconnect their number; the history stays in the systemNothing changes for the client
Best fit forAgencies of independent agents and partnersAgencies with a first-contact team

Your software should support both models, because the market uses both. On D-API each number is an isolated connection with a dedicated IP, created via API. If the agent who sent too many messages gets their number restricted, their colleagues are not affected. More on the topic in multiple WhatsApp numbers.

Roadmap for your real estate CRM

  1. A connection per agency or per agent, with the QR code in each one's dashboard.
  2. Automatic first message to portal leads, with the routing rule.
  3. Sending the property album from the listing page.
  4. Viewing calendar with a list of time slots and the location.
  5. Conversation history on the lead record, fed by the webhook.

History on the lead follows the same logic described in WhatsApp API for CRM. The commercial model, billed per connection and not per message, is in WhatsApp API for SaaS. If you want to validate it with a few agencies from your base, the 14-day free trial available through sales includes implementation support.

Frequently asked questions

Does the WhatsApp API receive leads from listing portals directly?
No. The lead reaches your software through the integration it already has with the portals. The API comes in next: the system picks the agent and sends the first WhatsApp message to the prospect within seconds.
Can I send all the property photos at once?
Yes. The album route sends 2 to 100 images or videos in a single grouped message, with a caption. The prospect sees the property as a gallery instead of getting photo after photo.
Does each agent need to connect their own WhatsApp?
It depends on how the agency works. If agents handle their own book of clients, each one connects their own number. If the agency centralizes first contact, one company number is enough and the system distributes the conversations.
What happens to the conversations when an agent leaves the agency?
If messages go through the API, the history is already in your system, linked to the lead. The agency reassigns the book to another agent, who picks up the conversation knowing what was said.
Can I send the property location for the viewing?
Yes. The API sends a location as a native WhatsApp message, which opens straight in the maps app on the client's phone.

Put WhatsApp in your product without becoming an infra team

14 days free through our sales team, with implementation support in a WhatsApp group.