Skip to main content

Overview

A fully-featured e-commerce shopping assistant using Lua Platform APIs for products, shopping cart, and order management. What it does:
  • Search and browse products
  • Add items to cart
  • Manage shopping basket
  • Complete checkout
  • Track orders
APIs used: Lua Platform APIs (Products, Baskets, Orders)

Complete Implementation

src/index.ts

This demo uses LuaAgent to configure the agent’s persona, welcome message, and skills in one unified structure.

src/tools/EcommerceTool.ts

Environment Setup

Testing

Test conversation flow in sandbox mode:
  1. “Search for laptops” (semantic search)
  2. “Show me electronics under $500” (filter-based browsing)
  3. “Add the MacBook to my cart”
  4. “Show me my cart”
  5. “Checkout with shipping to 123 Main St, New York, NY 10001”
  6. “Track my order”

Deployment

Key Features

Platform APIs

Uses Lua’s built-in e-commerce APIs

Complete Flow

Search → Add → Checkout → Track

No External Dependencies

Everything built-in

Production Ready

Full error handling and validation

Customization

Add Recommendations

Add Discount Codes

Next Demo

Customer Support Agent

See external API integration with Zendesk