Skip to content

Data connector idea: BuyWhere Singapore product catalog for agents doing e-commerce research #21473

@BuyWhere

Description

@BuyWhere

Data Connector Suggestion: BuyWhere Singapore E-commerce

Hi LlamaIndex team,

Wanted to suggest a data connector that would be useful for agents doing e-commerce product research: BuyWhere.

BuyWhere provides real-time Singapore product catalog data (Harvey Norman, Shopee, Lazada) via a clean REST API. This would work well as either a LlamaIndex data loader or as a tool for agents doing price comparison research.

As a Tool for Agents

from llama_index.core.tools import FunctionTool
import requests

def search_singapore_products(query: str) -> dict:
    """Search real-time product prices in Singapore (Harvey Norman, Shopee, Lazada)"""
    response = requests.get("https://api.buywhere.ai/search", params={"q": query})
    return response.json()

buywhere_tool = FunctionTool.from_defaults(
    fn=search_singapore_products,
    name="search_singapore_products",
    description="Search live Singapore product prices from Harvey Norman, Shopee, and Lazada"
)

# Use in an OpenAIAgent or ReActAgent for real-time product research

Use Case

Agents that need to answer questions like "Which laptop has the best value in Singapore right now?" can use this tool to get live, grounded data instead of relying on potentially stale training knowledge.

Docs: https://buywhere.ai/developers/


Disclosure: I work on the BuyWhere team.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions