A modular TypeScript SDK + drop‑in tag for AI‑native commerce and personalization. Inspired by USB‑C simplicity, it lets any website:
- Verify guest identity (OAuth 2.1)
- Tokenize and capture payments (Stripe, Visa DPAN)
- Surface live inventory via PMS (e.g. Mews)
- Emit telemetry to analytics
- Do all of the above in <50 KB gzipped.
<script async src="https://cdn.agi.company/v1.0.0/agi.min.js"
data-agi-brand="YOUR_BRAND"
onload="AGI.load({ env:'staging' })"></script>
AGI Protocol for Secure Agentic E-Commerce - Stakholder Brief
AGI-Driven Personalization for Hotels
packages/
core/ # runtime + event bus
identity/ # Auth0 / OAuth helpers
payment/ # Stripe & Visa wrappers
ui/ # React overlay + chat
analytics/ # GA4, Segment adapters
examples/
nextjs/ # end‑to‑end demo storefront
docs/
architecture.png
roadmap.md
CONTRIBUTING.md
CODE_OF_CONDUCT.md
See docs/roadmap.md for milestones.
Want to expose these tools to external AI agents?
Run the @agi/server adapter and you’ll have a complete Model Context Protocol endpoint set ready to discover.
pnpm -F @agi/server dev
# -> http://localhost:8080/mcp/manifest.json| Tool (for LLM) | Spec Endpoint | Purpose |
|---|---|---|
search_rooms |
/agi/quote (rooms=0) |
availability search |
quote_room |
/agi/quote |
price + upgrade quote |
book_room |
/agi/book |
hold inventory |
pay_tokenized |
/agi/pay |
Stripe / Visa DPAN capture |
get_profile |
/agi/profile |
personalized guest 360 |
Full OpenAPI file: docs/openapi.yaml (generated at build).