Albert Heijn: Frequently Bought Items
ah_get_frequent_itemsIdentify frequently bought products across recent Albert Heijn delivery orders and store receipts, with purchase counts and last-purchased dates, to suggest shopping lists and spot bonus staples.
Instructions
Get the products the user buys most often, counted over their Albert Heijn delivery orders and in-store receipts (kassabonnen) of the last few months. purchase_count is the number of orders and store visits that included the product, split into online_count and in_store_count. Use it to suggest a shopping list or spot staples that are on bonus. Returns product_name, product_id, the counts and last_purchased_date, most bought first. When you mention a product or recipe from the result, link its name to its url.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ah_get_frequent_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of products (default 50, max 200) | |
| months | No | How many months back to count (default 3, max 12) | |
| source | No | Count delivery orders, store receipts, or both (default all) | |
| min_order_count | No | Old name of min_purchase_count | |
| min_purchase_count | No | Only products bought at least this many times (default 3) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| products | Yes | ||
| warnings | No | ||
| from_date | Yes | ||
| online_orders | Yes | ||
| store_receipts | Yes |