Agentic Shopping SDK

Add shopping to any conversation

An embedded UI SDK that lets consumer chat apps offer product discovery and a complete checkout flow — without leaving the conversation.

Product Cards

Send a text chunk and render rich product cards with detail sheets, delivery estimates, and one-tap purchase actions — all inline.

Hosted Checkout

Collect shipping and payment through a fully hosted flow. Receive an order confirmation and receipt URL when complete.

Session Tokens

Mint short-lived tokens scoped to a single conversation. Your backend exchanges a private API key — no secrets on the client.

Multi-Platform SDKs

Native SDKs for Web, React Native, SwiftUI, and Jetpack Compose. On mobile, an embedded web runtime handles UI with a native event bridge.

Minimum integration

Three steps to a full in-chat shopping experience.

01

Mint a session token

Your backend calls POST /v1/sessions with your private API key to get a short-lived sessionToken scoped to one conversation.

Request
POST /v1/sessions
Authorization: Bearer <API_KEY>

{
  "conversationId": "chat_7F1E3A",
  "userId": "u_3921",
  "environment": "sandbox"
}
Response
{
  "sessionToken": "sesh_sandbox_7p1n9GJxQk3vK"
}
02

Render Product Cards

Pass the latest user message text to ProductCards. The SDK handles product discovery, detail sheets, and delivery estimates automatically.

03

Handle checkout events

Listen for checkout.completed events and post the receipt back into the conversation thread. That's it — three steps to a full shopping experience.

Choose your platform

Native SDKs for every major platform. On mobile, an embedded web runtime handles UI with a native event bridge.

Installnpm install @nohi/agentic-shopping
import { Nohi } from "@nohi/agentic-shopping";

Nohi.configure({ sessionToken });

const cards = Nohi.ProductCards.mount("#nohi-cards", {
  text: latestMessageText,
  onEvent(event) {
    if (event.type === "checkout.completed") {
      console.log(event.orderId, event.receiptUrl);
    }
  },
});

// Update cards when the message changes
cards.update({ text: nextMessageText });

API Reference

RESTful endpoints with JSON responses. Base URL: https://api.nohi.dev

POST/v1/sessionsExchange API key for a short-lived session token scoped to one conversation
GET/v1/productsDiscover products based on text intent, returns product cards with detail sheets
POST/v1/checkoutInitiate a hosted checkout flow, collect shipping and payment
GET/v1/orders/{orderId}Retrieve order confirmation and receipt URL
POST/v1/webhooksRegister webhook endpoints for checkout.completed and other events

Ready to build?

Get your API key and add agentic shopping to your chat app today. Sandbox environment included.

Get your API key