Skip to main content
GET
AI Booking Suggestions

AI Booking Suggestions

Parses a natural language prompt into a structured booking intent, including time window, duration, party size, desired amenities, resource type, and notes. Use the parsed fields to prefill the bookings search UI.

Authentication

Requires an authenticated customer session.

Query Parameters

string
required
The user’s natural language booking description. Example: “A meeting room for 10 with a projector next Tuesday 3–5pm”.

Response

object
Structured booking intent.
string
Resource type classification, e.g. “room|Meeting Room”.
number
Number of attendees.
number
Desired booking duration in minutes.
object
Preferred time window.
string
Type of time constraint (e.g., fixed, range, recurring).
string
ISO 8601 start datetime.
string
ISO 8601 end datetime.
string
Recurrence rule, if applicable.
string
Named location reference, if extracted.
array[string]
Desired amenities (keys correspond to booking filters).
number
Acceptable shift in start time, in minutes.
number
Optional budget indication.
string
Free-form notes extracted from the prompt.

Example Response

Usage in Portal

  • Public Bookings – Day and duration shortcuts
    • src/views/public/bookings/components/DayAndDurationShortCuts.tsx (applies AI intent to querystring)
  • GET /api/public/ai/chats/{sessionId} – General-purpose assistant chat
  • GET /api/public/ai/tariffs – Plan suggestions by prompt
  • GET /api/public/ai/products – Product suggestions by prompt

Error Responses

error
The user is not authenticated.
error
Missing or invalid prompt.