ai-Commerce
One of the main use cases for the Synvya SDK is to create ai-Commerce applications, where the buyer, the seller, or both are AI agents.
AI-commerce helps small businesses compete with large retailers by making their products easily accessible to Nostr-powered AI agents. These agents act as one-stop shops, eliminating the need for buyers to search across multiple websites.
Merchants
Merchants expose their product catalog through Nostr, making it avaiable to both humans and AI agents:
- Humans can browse the catalog and make purchases using Nostr-compatible web applications like https://plebeian.market/.
- Agents can process the catalog and interact with their users to find the right product from any Nostr-powered merchant.
Buyers find merchants using the same tools described in Dynamic Agent Discovery:
namespace
:com.synvya.merchant
label
:restaurant
hashtag
: [italian
,reservations
,takeout
,delivery
]
The hashtags are just examples, merchants can use any hashtags they want.
Stalls
NIP-15 defines a Stall
as a collection of products or services offered by a merchant
and grouped by a common currency and shipping costs.
Merchants can interpret different stalls as different physical locations or different product categories. For example, a restaurant with multiple locations might have one stall for each location. A small shop might have one stall for the physical location and another stall for the online store.
Merchants may also opt to use a single stall for all of their products and services.
Synvya extends this definition to include a geographic location for the stall encoded as a geohash to enable stall discovery based on location.
The example below shows how to define a stall with two shipping rates.
Products
NIP-15 defines a Product
as a single item for sale. Products are assigned to a single Stall
and
the merchant may add additional shipping costs to the product on top of the costs defined in the Stall
(e.g. a product that is heavier than the average product in the stall).
Synvya extends the NIP-15 definition to include a direct reference to the seller’s Nostr public key to enable easier indexing of products based on the seller’s identity.
The example below shows how to define multiple products and how to add extra shipping costs to some of them.
References
- NIP-15 - Nostr Marketplace