March Code
Hospitality and rentals

AI Guest Messaging Bot for an Apartment Management Company in Spain

An AI bot answers guests of 256 apartments on Airbnb, Booking.com, WhatsApp and email in 8+ languages, sends smart lock codes and escalates tricky questions to managers. Replies in 2 minutes instead of 41.

Client: Apartment management company (Spain)AIAutomation
AI Guest Messaging Bot for an Apartment Management Company in Spain

<2 min

to reply to a guest, down from 41 minutes

75%

of questions closed by AI with no human

256

apartments covered

0

made-up prices or rules

01

Challenge

A management company in Spain: 256 apartments, about 4,000 active bookings and hundreds of guest conversations a day across four channels (Airbnb, Booking.com, WhatsApp and email), each with its own interface. Managers sent smart lock codes by hand, and at night and on weekends guests got no reply at all.

41 min
median reply time to a guest before launch
4
channels with different interfaces
256
apartments with different check-in rules
40,000+
conversations in the message history

The goals: reply to guests in under 2 minutes, close 75%+ of routine questions with no human involved, and hand the routine conversations to the bot so managers can focus on complaints, sales and service.

02

Solution

One inbox instead of four channels

Every message lands in a single platform, where the AI either replies on its own or drafts an answer for a manager. The bot detects the guest's language and replies in it (8+ languages are supported), while incoming messages are translated into Spanish for the team in parallel.

How a reply is made

Message

Webhooks and polling collect conversations from every channel

Context

17 business services compute decisions in advance: cancellations, extra charges, early check-in

AI

Claude with tool calling; if it fails, a backup provider takes over automatically

Gate

Confidence ≥ 0.7 means an auto-reply with a "human" delay of 30–60 s

Escalation

Complex topics go to a manager in Telegram with a ready draft

Business rules live in code, not in the prompt

Money, cancellation policies, extra charges and check-in rules are calculated by deterministic TypeScript services covered by 224+ tests. The AI reads the finished decisions and is responsible only for tone and format, so the "bot forgot a rule" class of errors is ruled out by the architecture.

Smart locks
  • An access link is generated automatically when a booking comes in
  • Codes go out no earlier than two days before check-in
  • Access expires after check-out
WhatsApp + calls
  • Direct Meta Cloud API: text, photos, documents, audio
  • Voice calls in the browser over WebRTC
  • Respects the 24-hour window: outside it, templates only
Human in the loop
  • 22 categories always go to a manager: complaints, cancellations, documents
  • Telegram alerts for 11 apartment groups
  • After 15 minutes of silence, the conversation returns to the AI on its own

Under the hood: Next.js 15 plus a separate worker running 8 background jobs on top of PostgreSQL 16; real-time updates through pg_notify and Server-Sent Events, with no polling from the browser. Deep integration with the PMS (property management system), a versioned system prompt you can roll back from the UI, and a full audit of every AI call: tokens, cost in dollars, latency.

03

The system from the inside

Real screens of a working system, not mockups. Click to take a closer look

The manager's inbox: all channels in one list, AI drafts, guest profile and bookings, quick actions, real-time updates (guests' personal data hidden)
04

Results

<2 min

to reply to a guest, down from 41 minutes

Median reply time as measured by the platform itself; guests get answers 24/7, nights and weekends included

75%

of questions closed by AI with no human

Check-in, access codes, parking, Wi-Fi, booking status, all in the guest's language; anything complex goes to a manager

256

apartments covered

Airbnb, Booking.com, WhatsApp and email in 8+ languages, in one window

0

made-up prices or rules

Money and policies are calculated by ordinary tested code, not by a neural network; the AI only puts the finished answer into words

Project technologies

TypeScriptNext.js 15React 19PostgreSQL 16Drizzle ORMClaude APIDeepSeekGeminiWhatsApp Cloud APIWebRTCTelegram Bot APIDockerGitLab CI/CDVitest

Want a similar result?

Pilot from $3,900, prototype free

Prices are indicative and not a binding offer.

We build an agent prototype for one scenario using your examples, so you can judge answer quality before signing.

Step 1 of 2 · Task