Arugula

v1.0.0
com.arugulanet/arugula Checked 3 days ago Published 1 month ago

Find offers that fit what you want, ranked by fit only, with links to buy.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

find_offers Find offers for what a user wants

Turns the user's request, with any context they stated (location, dates, budget, party size, preferences), into an intent and returns the offers that fit, best first, each with a tracked link to show the user (tracked_url). Matching runs in the background; when no offers are back yet, call get_offers with the intent_id in a few seconds. It never buys anything. By using Arugula you agree to arugulanet.com/terms. Privacy: arugulanet.com/privacy.

ParameterTypeDescription
text *stringWhat the user wants, in their own words, including where if it matters.
briefbooleantrue for a short answer: each offer's title, price, fit, how to buy and tracked link, without the explanations.
budgetobjectThe user's budget.
countrystringThe user's country as ISO 3166-1 alpha-2, for example SG, only if the user said it or you know it from them; never your server's. Offers there are preferred; a place in the text still decides.
datesstringWhen: dates or times the user gave, for example 'before 9am tomorrow'.
localestringBCP 47 language tag of the text, for example en-SG.
party_sizeintegerHow many people.
preferencesstringAnything else the user prefers, in their words.

get_offers Get the offers found for an intent

The offers ranked for an intent from find_offers, best first, only those that fit, each with its tracked link (tracked_url) and how_to_buy. offer_id is the offer's public ID: lst_ for a merchant listing (open tracked_url to book with the merchant, no sign-in), off_ for a seller's offer on Arugula. By using Arugula you agree to arugulanet.com/terms. Privacy: arugulanet.com/privacy.

ParameterTypeDescription
intent_id *stringThe intent_id find_offers returned (int_...).
briefbooleantrue for a short answer: each offer's title, price, fit, how to buy and tracked link, without the explanations.

explain_match Explain a match

One match with its explanation: why the offer fits the request, its fit and verification, and the draft terms (getMatch). brief: true leaves the explanation out. By using Arugula you agree to arugulanet.com/terms. Privacy: arugulanet.com/privacy.

ParameterTypeDescription
match_id *stringThe match's ID (mat_...).
briefbooleantrue for a short answer: each offer's title, price, fit, how to buy and tracked link, without the explanations.