{"protocolVersion":"0.3.0","name":"Pregota","description":"Pregota is everyday commerce, powered by Economic Intelligence: it understands the economy around you — who sells what, where, at what price, and what people need — and connects you to it, on WhatsApp and the web, under your one phone number. Your AI. Your Permission. Your Commerce. Pregota's agent finds who sells what in local shops — price, place, and how sure it is in stock now — and gets quotes from each shop's own agent. Send a text part to search, or a data part {\"skill\": \"<id>\", ...arguments} for any skill. Without her linked account it never orders: she accepts a quote herself on Pregota. With it (OAuth, securitySchemes.pregota), it orders for her within her own limits — and every payment is still her own M-Pesa PIN.","url":"https://pregota.com/a2a","preferredTransport":"JSONRPC","provider":{"organization":"Pregota","url":"https://pregota.com"},"version":"1.0.0","documentationUrl":"https://pregota.com/llms.txt","capabilities":{"streaming":false,"pushNotifications":false,"stateTransitionHistory":false},"defaultInputModes":["text/plain","application/json"],"defaultOutputModes":["application/json","text/plain"],"skills":[{"id":"search_products","name":"Search shelves","description":"Who sells a product or service in local shops, at what price, how sure it is there now, and where. English or Swahili.","tags":["shopping","search","prices"],"examples":["sugar 2kg in Juja","unga in Kahawa"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"request_quote","name":"Get a quote from the shop's agent","description":"For one listing id: the price, the total, the evidence it is there, held 15 minutes, and a link the person opens to accept it with her own M-Pesa PIN.","tags":["quote","commerce"],"examples":["{\"skill\":\"request_quote\",\"id\":123,\"quantity\":2,\"agent\":\"ChatGPT\"}"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"compare_prices","name":"Compare prices","description":"Every shop's price for one thing, cheapest first, with the middle price where at least three shops list it.","tags":["prices","compare"],"examples":["gas refill 13kg"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"find_businesses","name":"Find businesses","description":"Businesses by name, trade or place.","tags":["businesses","directory"],"examples":["salons in Juja"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"read_listing","name":"Read a listing","description":"One public listing by its id.","tags":["listing"],"examples":["{\"skill\":\"read_listing\",\"id\":123}"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"ask_business","name":"Ask a business","description":"A question for one business by handle, answered from what it taught its agent or Pregota's records — never guessed.","tags":["questions"],"examples":["{\"skill\":\"ask_business\",\"handle\":\"mama-duka\",\"question\":\"Do you deliver to Juja?\"}"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"product_knowledge","name":"Know a product model","description":"One model by its code: its facts, the maker's regional code and support links, every source with when it was read, and what a code on its display means.","tags":["products","support"],"examples":["{\"skill\":\"product_knowledge\",\"model\":\"F4V5RGP2T\",\"code\":\"OE\"}"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"market_brief","name":"Price movement","description":"The middle shelf price of one thing now and 30 days ago.","tags":["prices","market"],"examples":["cement 50kg"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"prepare_order","name":"Prepare an order","description":"Links for the person to buy one listing herself on Pregota. Creates nothing.","tags":["commerce"],"examples":["{\"skill\":\"prepare_order\",\"id\":123,\"quantity\":1}"],"inputModes":["text/plain","application/json"],"outputModes":["application/json","text/plain"]},{"id":"submit_order","name":"Order for her","description":"Her order — one listing, or several from one shop in `items` — within her limits; the M-Pesa prompt goes to her phone. Needs her linked account (bearer token).","tags":["commerce","order"],"examples":["{\"skill\":\"submit_order\",\"items\":[{\"id\":123,\"quantity\":2}]}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["orders"]}]},{"id":"send_gift","name":"Send a gift for her","description":"Her order as a gift for someone else; they are told on WhatsApp only once she has paid. Needs her linked account (bearer token).","tags":["gift","commerce"],"examples":["{\"skill\":\"send_gift\",\"id\":123,\"to_name\":\"Mary\",\"to_phone\":\"0712345678\",\"note\":\"Happy birthday!\"}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["orders"]}]},{"id":"basket_add","name":"Add to her basket","description":"Listings from one shop or several; kept 30 minutes. Needs her linked account (bearer token).","tags":["basket"],"examples":["{\"skill\":\"basket_add\",\"items\":[{\"id\":123},{\"id\":456}]}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["orders"]}]},{"id":"basket_view","name":"Her basket","description":"Shop by shop at the price now, and whether it fits her limits. Needs her linked account (bearer token).","tags":["basket"],"examples":["{\"skill\":\"basket_view\"}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["orders"]}]},{"id":"basket_remove","name":"Change her basket","description":"Set how many of a listing, or remove it. Needs her linked account (bearer token).","tags":["basket"],"examples":["{\"skill\":\"basket_remove\",\"id\":123}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["orders"]}]},{"id":"basket_checkout","name":"Check out her basket","description":"One order per shop, ONE M-Pesa prompt on her phone for the total. Needs her linked account (bearer token).","tags":["basket","commerce"],"examples":["{\"skill\":\"basket_checkout\",\"fulfilment\":\"collect\"}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["orders"]}]},{"id":"checkout_status","name":"A basket checkout","description":"Each shop's order, and paid only once M-Pesa has confirmed it. Needs her linked account (bearer token).","tags":["status"],"examples":["{\"skill\":\"checkout_status\",\"checkout_id\":7}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["history"]}]},{"id":"request_payment","name":"The prompt again","description":"For an unpaid order or checkout you placed — to her phone only. Needs her linked account (bearer token).","tags":["payment"],"examples":["{\"skill\":\"request_payment\",\"order_id\":42}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["orders"]}]},{"id":"order_status","name":"One of her orders","description":"Status, progress, and paid only on M-Pesa's word. Needs her linked account (bearer token).","tags":["status"],"examples":["{\"skill\":\"order_status\",\"order_id\":42}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["history"]}]},{"id":"my_orders","name":"Her recent orders","description":"Her last ten orders. Needs her linked account (bearer token).","tags":["status"],"examples":["{\"skill\":\"my_orders\"}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["history"]}]},{"id":"my_preferences","name":"What she taught her agent","description":"Where to bring things, her shops, likes and avoids, and her limits for agents. Needs her linked account (bearer token).","tags":["preferences"],"examples":["{\"skill\":\"my_preferences\"}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["preferences"]}]},{"id":"my_obligations","name":"What she owes","description":"Her open deni, read only. Needs her linked account (bearer token).","tags":["deni"],"examples":["{\"skill\":\"my_obligations\"}"],"inputModes":["application/json"],"outputModes":["application/json","text/plain"],"security":[{"pregota":["history"]}]}],"securitySchemes":{"pregota":{"type":"oauth2","description":"She signs in on Pregota and chooses what the agent may do; her limits hold, and every payment is her M-Pesa PIN.","flows":{"authorizationCode":{"authorizationUrl":"https://pregota.com/oauth/authorize","tokenUrl":"https://pregota.com/oauth/token","scopes":{"orders":"Place orders for you and send the M-Pesa prompt to your phone","history":"See your orders, whether they are paid, and what you owe","preferences":"Know where to bring things, the shops you use, and what you like or avoid — only what you taught your agent"}}}}}}