Skip to content
repliyo

Product search

Let shoppers describe what they want and get answers from your real catalogue, including product details by ID.

What customers can ask

Shoppers rarely know your catalogue. They ask “got wireless earbuds under $50?” or “do you have that hub in stock?”. With a product endpoint connected, repliyo pulls the search terms out of the message, calls your catalogue and answers from real inventory and pricing, not a static FAQ.

There are two question types: Product search (free-text, “what do you have for…”) and Product info (details about one specific product).


Set it up

Product search uses the {query}placeholder, filled with the customer's search terms; product info uses {product_id}.

Product search
Question type:  Product search
Method:         GET
URL template:   https://shop.example.com/api/products/search?q={query}
Response path:  (blank, or $.data)
Product info
Question type:  Product info
Method:         GET
URL template:   https://shop.example.com/api/products/{product_id}

If you only set up product search, that's enough to start: when a customer asks about a product by name, repliyo searches for that name. The general steps are in Connect your API.


What your API should return

Example response
{
  "data": [
    {
      "id": "P1003",
      "name": "USB-C Hub",
      "price": 39,
      "in_stock": true,
      "image_url": "https://shop.example.com/img/p1003.jpg",
      "url": "https://shop.example.com/products/usb-c-hub"
    }
  ]
}

A list wrapped in data, results, items or products is read automatically, preferring a name, title or label on each item. Include price and stock fields so questions like “how much is it?” can be answered from the same record.

On Professional and above, repliyo can also show a product carousel next to the text reply. It recognises name/title/label, product_id/id/sku, image_url/image/photo and cta_url/url/link.


When several products match

If a search returns several similar products, repliyo doesn't guess. It asks “I found a few matches — which one did you mean?” and offers the options as tappable choices. When the customer picks one, repliyo remembers which product they meant and answers follow-up questions about it. It can do this because it notes the IDs in your responses during the conversation, so customers never have to type a product ID.


Next

For return policies, sizing guides and other questions your catalogue API doesn't answer, add documents under Custom questions.

We use essential cookies to run this site, and analytics cookies to understand how visitors use it. Analytics only loads if you accept. Learn more