Hashlogics
Blog

An AI Search Box Should Ask Before It Answers

Buyers type a mood, not a filter. A search that asks one or two questions and then checks the answer against real inventory sends them somewhere bookable.

The short version

5 things that decide this

  1. 01Buyers type vague requests, so a search that guesses will often return the wrong options or an empty page.
  2. 02The fix has an order: ask a short follow-up, translate the answers into filters, then validate them against real inventory.
  3. 03Model output can be held to a schema, but only your inventory can say whether a ship sails on a date.
  4. 04Hashlogics built this for Military Cruise Deals as a WordPress module on FastAPI, LangGraph and Redis. Each chat ends in one link to the client's own search.
  5. 05Test any vendor with your vaguest real request and one that can't be met.
The direct answer

Who can build a conversational AI search for a travel booking website?

A team that treats the model as the front half of the search, not the whole of it. The model reads the traveler's plain-language request and asks a short follow-up where the request is vague. A search layer then checks the result against the real inventory before any link goes out. We built this for Military Cruise Deals. It runs as a module inside their existing WordPress site.

The setup

A vague request is a normal request

Your visitors don't arrive with a filter set. They type something like "a week somewhere warm next spring, not too pricey." That sentence has no ship or port in it, and no departure date. It has a mood.

A search box that guesses turns the mood into filters on its own. It picks a month, a region, a price cap. If the guess is slightly off, the traveler lands on an empty results page, or on sailings they never wanted. Either way they leave, and you never see it happen.

Researchers in conversational search have studied this gap for years. A 2023 Web Conference paper, "Zero-shot Clarifying Question Generation for Conversational Search", opens with the problem. "A long-standing challenge for search and conversational assistants is query intention detection in ambiguous queries." Their answer is to ask the user a clarifying question rather than commit to one reading.

The mechanism

Ask, translate, then validate

The fix has three steps, and the order matters. First, the assistant asks. It keeps the questions short and only asks what it needs: how long, roughly when, which region, what matters most. Second, it translates the conversation into the filters the booking engine understands. Third, it checks that those filters can return something real before it hands anything over.

The third step is where most AI search demos stop short. A model can write a confident-looking filter that names a port the line doesn't call at, or a date outside a departure window. If you pass that straight to the search engine, you get a false "no results" page. For a booking business, that is a lost sale caused by software that sounded sure of itself.

Holding model output to a fixed shape helps here. OpenAI's documentation says Structured Outputs "constrains completed, non-refusal model output to your supplied JSON Schema." That keeps the filters in a form your search code can read. It does not make them true. Whether a ship sails on those dates is a question for your inventory, and only your inventory can answer it.

  • 01Ask: one or two short follow-ups, only where the request is open.
  • 02Translate: turn the answers into ship, port and date filters.
  • 03Validate: check the filters against real sailings and departure rules.
  • 04Hand over: one link to the live search, not a wall of listings.
From a vague request to a bookable linkLive
  1. Plain-language requestA mood, a rough season and a price feeling, with no filters set.
  2. Short follow-up questionsOnly what is missing: length, timing, region, priorities.
  3. Ship, port and date filtersThe conversation turned into values the search engine accepts.
  4. Validation against inventoryMismatched filters are caught here, before a false empty page.
  5. One link to the live searchThe traveler lands on results that exist.

The assistant asks where the request is open, and nothing reaches the traveler until the filters pass a check against real inventory.

In production

The client, Military Cruise Deals, sells cruises to military and veteran travelers. Its site already had a cruise search engine. The trouble was getting people into it with the right filters. We built an AI cruise-matching module that sits inside their existing WordPress site. Travelers describe the trip they want in plain language. The agent asks short clarifying questions. It then converts the request into validated ship, port and date filters.

Each conversation ends with a single clickable link to the client's own cruise search engine. That replaces the long, scroll-heavy listings a traveler would otherwise sift through by hand. The case study names the problems behind the build. Requests are vague or change halfway through. Mismatched filters cause false "no results" pages and lost bookings. Departure-window date rules are strict.

Under the hood sit a custom WordPress module, FastAPI, LangGraph and Redis on AWS EC2, with the OpenAI API and the client's search engine behind it. In the Run phase we added an admin dashboard for reviewing recent searches, plus controls for reliable OpenAI usage. The case study publishes no conversion or booking figures, and we won't invent any here. What it does show is a design choice you can check. The agent checks each request against real ship, port and date options, then hands over one link to the client's search engine.

The fix

Test the design before you sign

If you run a booking site and want conversational search, test the design before the demo. Give the vendor your vaguest real request and watch what happens. Does it ask something sensible, or does it answer straight away? Then give it a request that cannot be met, such as a date outside any departure window. A good system tells you plainly and offers the closest option. A weak one shows an empty page.

Then ask where the check lives. If validation sits inside your own search engine or inventory, a wrong guess gets caught where it matters. If it lives only in a prompt, you are trusting the model to remember your rules on every call. We put rules like departure windows in code.

Last, ask what you can see afterwards. Recent searches in a dashboard let you read what travelers actually typed, which tells you what your visitors want in their own words. It is also how you find the question the assistant should have asked and didn't.

Questions, answered

Questions this raises

01Who can build a conversational AI search for a travel booking website?+

Look for a team that builds both halves: the model that reads and clarifies the request, and the check against your real inventory. We did it for Military Cruise Deals with FastAPI, LangGraph and Redis. Ask any builder to show you how a wrong filter gets caught.

02Why should an AI search ask follow-up questions?+

Because buyers type vague requests, and guessing turns them into the wrong filters. One or two short questions about timing, region or priorities cost the traveler a few seconds. A wrong guess costs them the whole search, and it often costs you the booking.

03Can the AI search be added to a website we already have?+

Yes. The Military Cruise Deals module sits inside their existing WordPress site and hands travelers on to the cruise search engine they already had. You keep your own booking system and your own inventory, and the assistant is the front door to both.

04Does a conversational search guarantee more bookings?+

No. The Cruise Search AI case study publishes no conversion figures, and any vendor promising a number before seeing your traffic is guessing. What you can check is whether travelers reach real, available results more often than they hit empty pages.

By , CEO, HashlogicsUpdated
Start

Let’s deploy working AI into your business.

We build AI agents and automation, ship them into the tools you already run, then stay on under an agreed service level. A senior engineer reads every brief, and your call gets scheduled within 24 hours.

What happens next

  1. 01

    You send a brief or book a call

    Two minutes, whichever you prefer.

  2. 02

    A senior engineer replies within 24 hours

    Not a sales rep.

  3. 03

    Honest scoping, in writing

    And if we’re not the right fit, we say so.

Abdul Basit, CEO of Hashlogics

“I started Hashlogics because too many teams ship a demo, get paid, and disappear. We build to a standard we’d run ourselves — and we stay to keep it running.”

Abdul Basit · CEO · a direct line

Not ready to talk? Take the checklist.

12 questions to ask any AI agency before you sign. They separate a demo shop from a team that ships to production.

Get the checklist

Free · no newsletter