Picnic
v1.2.2Search products, fill the cart and pick a delivery slot at the online supermarket Picnic
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_products Search products
Search the Picnic supermarket for a product and get its id for add_to_cart. Write the query in Dutch, as a short product name. The result has `bestMatch` when one product fits, usually one the user bought before: add that one. It has `choices` when there is no clear match: ask the user which one they want before adding anything. `boughtBefore` marks products the user ordered before.
| Parameter | Type | Description |
|---|---|---|
query * | string | The product to search for, in Dutch. |
get_cart Get cart
Show the user's Picnic shopping cart: the products with their quantity and price, the total, and the delivery window. A product that can't be delivered in that window has `unavailable` with the reason, and `replacements` Picnic offers instead.
add_to_cart Add to cart
Add one or more products to the user's Picnic shopping cart. Get the product ids from search_products first; put all products the user asked for in one call (at most 20). Returns each added product with the quantity now in the cart, the products that failed, and the cart total. A product that can't be delivered in the selected delivery window has `unavailable` and `replacements`: tell the user and offer them. To change how many of a product are in the cart ("make it 4"), use set_cart_quantity instead. This does not place an order.
| Parameter | Type | Description |
|---|---|---|
items * | array | The products to add, e.g. [{"productId": "s1004201", "quantity": 2}]. |
remove_from_cart Remove from cart
Remove a product from the user's Picnic shopping cart. Get the product id from get_cart. Returns the quantity left in the cart and the cart total.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product id from search_products or get_cart, e.g. s1004201. |
quantity | integer | How many to remove. Default 1. |
set_cart_quantity Set cart quantity
Set how many of a product are in the user's Picnic shopping cart, e.g. when the user says "make it 3". 0 removes the product. Get the product id from get_cart or search_products. Returns the quantity now in the cart and the cart total.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product id from search_products or get_cart, e.g. s1004201. |
quantity * | integer | How many should be in the cart. 0 removes the product. |
get_delivery_slots Get delivery slots
List the delivery slots the user can choose for the cart. Without a date it lists the first 2 days and the dates of the other days. Pass a date from that list to see its slots. Use select_delivery_slot once the user picked a slot.
| Parameter | Type | Description |
|---|---|---|
date | string | The day to list, as YYYY-MM-DD. Leave out for the first days. |
select_delivery_slot Select delivery slot
Choose when the cart is delivered. Only use a slotId from get_delivery_slots, after the user picked the slot. Returns the selected delivery window and the cart total. This does not place an order.
| Parameter | Type | Description |
|---|---|---|
slotId * | string | The slotId from get_delivery_slots. |
get_product Get product details
Get the details of a Picnic product: ingredients, allergens, nutrition, storage info, promotion and price. Use it for questions such as whether a product contains gluten. Get the product id from search_products or get_cart.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product id from search_products or get_cart, e.g. s1004201. |
get_cheaper_alternatives Find cheaper alternatives
Find cheaper versions of a Picnic product: similar products that cost less per kg, litre or piece, cheapest first. Use it when the user asks for a cheaper option or wants to save on a product. Get the product id from search_products or get_cart. It only reads; to swap a product in the cart, ask the user first.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product id from search_products or get_cart, e.g. s1004201. |
get_promotions Get promotions
List what is on promotion at Picnic this week. Without input it lists the sections (e.g. per category) with a few products and promotions each. Pass a section title for all products and promotions in it, or a promotionId for the products of one promotion. Products have ids for add_to_cart.
| Parameter | Type | Description |
|---|---|---|
promotionId | string | A promotionId from get_promotions, for the products of that promotion. |
section | string | A section title from the overview, e.g. a category. Leave out for the overview. |
get_favorites Get favorites
List the products the user buys at Picnic, per aisle, e.g. for "what do I usually buy?" or to offer products for "my usual groceries". Without input it lists the aisles with a few products each; pass an aisleId for all of the user's products in that aisle. Products have ids for add_to_cart; add only the ones the user asks for.
| Parameter | Type | Description |
|---|---|---|
aisleId | string | An aisleId from get_favorites, e.g. DAIRY. Leave out for the overview. |