← All works

Aditamaland

A property sales platform with an AI assistant that answers from the listing database, and has its numbers checked before they’re shown.

Role
Solo project
Year
2026
Status
Local demo, synthetic data
Stack
Laravel 13, Livewire 4 + Flux, PostgreSQL 16, Tailwind CSS 4, Gemini (Laravel AI SDK), Cloudflare R2

View on GitHub

Aditamaland catalog with the assistant open, comparing two houses in a table

Context

  • Buyers get prices and availability from brochures and chats that go out of date.
  • They work out installments on their own and don't know which sales to contact.
  • Inside the agency, listings, prospects, and visits live in spreadsheets and personal WhatsApp chats.

Aditamaland is a real property agency; its name and logo are used with permission. I built this on my own as a portfolio project around its sales workflow. Every listing, sales account, and prospect in it is synthetic.

What I built

For buyers

  • Catalog with location, type, price, size, and room filters
  • AI assistant that searches and compares listings
  • Mortgage calculator on every listing
  • WhatsApp links to sales approved by an admin

For the team

  • Inventory with photos, publishing and availability status, and status history
  • Prospect CRM with sales stages and an activity log
  • Visit schedule and follow-ups
  • Dashboards for admins and sales

The AI assistant

The model never owns the facts.

Gemini picks which search to run and writes one short sentence. Everything a visitor might act on, like a price, a link, or a phone number, comes from the database through the app.

  1. 01

    Visitor message

    “Cari rumah di Kudus di bawah 1,5 miliar.” Up to 500 characters, plus the last four messages.

  2. 02

    Laravel

    Validates input, checks rate limits, and masks phone numbers, ID numbers, and emails.

  3. 03

    Gemini agent

    Chooses a tool and its filters. At most three model calls per message.

  4. 04

    Tools → PostgreSQL

    SearchListings, CompareListings, SalesContacts. Each validates its own arguments and returns short facts only.

  5. 05

    Checks

    Off-topic gets a fixed refusal. Prices, areas, and room counts must match tool data, or a template replies.

  6. 06

    Response

    Listings are re-read, then the server builds the cards, links, and WhatsApp buttons.

How one chat message is handled. The dashed step is model output, which the app treats as untrusted input.
  1. 01

    The assistant uses the catalog’s search.

    SearchListings validates the model’s filters and runs the same query as the catalog filter form, so chat and catalog show the same published, available listings.

  2. 02

    Facts on screen come from the app.

    The model writes a short sentence. Cards, prices, links, and contact buttons are built by the server from rows read again after the model finishes, in case a price or status changed mid-reply.

  3. 03

    Numbers are checked before they are shown.

    Every price, area, and room count in the reply must appear in the tool results or in the visitor’s own message. URLs and phone numbers are not allowed. If the check fails, a fixed template replaces the reply.

  4. 04

    The model classifies, the app answers.

    Structured output returns the answer plus a scope. Off-topic questions get a fixed refusal. Questions the data can’t answer, like flooding or land certificates, get a fixed reply and sales contacts instead of a guess.

  5. 05

    Cost and exposure have hard limits.

    At most three model calls per message, with the SDK’s automatic retries turned off so that limit holds. Rate limits apply per minute, per IP per hour, and per day. Free-text listing descriptions are never sent to the model, and it only sees sales names, never their numbers.

Four conversations

  • Search: the visitor asks in plain Indonesian and gets listing cards from the database.
    Search: the visitor asks in plain Indonesian and gets listing cards from the database.
  • Compare: a follow-up turns the previous results into a table, re-read from the catalog.
    Compare: a follow-up turns the previous results into a table, re-read from the catalog.
  • Contact: the assistant shows approved sales as cards; WhatsApp links include the listing.
    Contact: the assistant shows approved sales as cards; WhatsApp links include the listing.
  • Off-topic: a recipe request gets the fixed refusal, not a model-written answer.
    Off-topic: a recipe request gets the fixed refusal, not a model-written answer.

The interface is in Indonesian, the language of its users.

Behind the catalog

  • Access by ownership.

    Admins manage listings and staff. Sales see only their own prospects and visits, enforced by policies and shared query scopes on every page and action. Reassigning a prospect moves access with it.

  • History that stays.

    A listing status change locks the row and saves the new value with who changed it, the old value, and the time, in one transaction. Prospect activities are append-only.

  • Media on Cloudflare R2.

    Photos are written to R2 before the database row. If the database write fails, the new file is removed. A prune command previews orphaned files before deleting them.

  • Admin dashboard with listing status, pipeline, and prospects per sales
    Admin dashboard with listing status, pipeline, and prospects per sales
  • Prospect detail with stage, activity log, and visits
    Prospect detail with stage, activity log, and visits
  • Listing status history with actor and time
    Listing status history with actor and time

How it’s tested

  • PHPUnit feature tests for listings, CRM, staff, dashboards, and the assistant
  • 24 assistant tests against a fake model: grounding, redaction, prompt injection, sold listings, provider failure, and rate limits
  • PHPStan static analysis and Pint formatting
  • A separate Node test for the mortgage calculator

Known limits

  • The assistant runs only in a local environment. It stays off elsewhere until Gemini billing, quotas, and a privacy policy are decided.
  • Not deployed yet. All listings, staff, and prospects are synthetic.
  • No evals yet for tool-argument accuracy or hallucination; behavior is covered by tests with a fake model.
  • Replies can take over 30 seconds when Gemini is busy.
← All worksSource on GitHub

[ Contact ]

Got a role that fits?

mhm.ariyanto@gmail.com

Based in KudusOpen to work