Arugula
v1.0.0Find 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.
| Parameter | Type | Description |
|---|---|---|
text * | string | What the user wants, in their own words, including where if it matters. |
brief | boolean | true for a short answer: each offer's title, price, fit, how to buy and tracked link, without the explanations. |
budget | object | The user's budget. |
country | string | The 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. |
dates | string | When: dates or times the user gave, for example 'before 9am tomorrow'. |
locale | string | BCP 47 language tag of the text, for example en-SG. |
party_size | integer | How many people. |
preferences | string | Anything 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.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string | The intent_id find_offers returned (int_...). |
brief | boolean | true 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.
| Parameter | Type | Description |
|---|---|---|
match_id * | string | The match's ID (mat_...). |
brief | boolean | true for a short answer: each offer's title, price, fit, how to buy and tracked link, without the explanations. |