Skip to main content

AI chat

The AI chat endpoint exposes the same Ultimate AI System that powers the propaideals.co.uk web app — a multi-agent system built on GPT-4.1 that can search 2.1M+ UK properties, run investment analysis, retrieve sold history, and answer property questions in natural language. Required scope: ai:chat Cost: 5 requests per call (against your monthly request quota), plus 1 AI chat call (against your AI chat quota) Available on: Starter (100 chats/mo), Professional (1,000), Business (4,000)

Send a chat message

Request

Body parameters

Response

Multi-turn conversations

Pass the same session_id on subsequent requests to maintain context. The AI remembers the previous turn and can interpret references like “show me more”, “what about cheaper ones”, or “tell me about the first property”.
Sessions persist for 24 hours of inactivity in Redis.

Streaming responses

For lower perceived latency, use the streaming endpoint. It returns Server-Sent Events (SSE) as the AI generates its response.

Event types

Show more properties

Returns the next page of properties for an existing session — without re-running the AI search.

Request

This endpoint costs 1 request (not 5), since no AI inference is performed.

Cost notes

A single /ultimate-ai/chat call consumes:
  • 5 requests from your monthly request quota (vs 1 for non-AI endpoints)
  • 1 AI chat call from your AI chat quota
Use the AI chat endpoint when you need natural language understanding. For deterministic structured queries, the properties endpoint is 5× cheaper and faster.

Best practices

  • Reuse session_id across turns from the same user. Don’t start a new session per message.
  • Cache responses on the client side keyed by (session_id, message) — users often re-issue the same query.
  • Use streaming for any user-facing UI; it dramatically improves perceived latency.
  • Set a sensible top_k. The default is 5; raise to 10–20 only if you need the wider set.
  • Include context when you have a user profile — the AI can personalise results without you having to explain the user every turn.