Inspiration

E-commerce conversion rates have hovered around 2–3% for two decades. When shoppers have pre-purchase questions, need bundle discounts, or hesitate on recurring plans, static checkout buttons cannot respond. Traditional chatbots can answer questions, but they cannot execute financial transactions.

We asked: What if an AI agent wasn't just a chatbot, but an authorized autonomous commerce partner that can negotiate, verify merchant terms, and execute instant 1-click PayPal settlements? That is why we built Paylo.

What It Does

Paylo is an Autonomous AI Commerce Agent designed for PayPal-powered merchants:

  1. Zero-Code Store Ingestion: Enter any storefront URL. Paylo autonomously crawls and extracts products, pricing tiers, billing intervals, and FAQs into a verified merchant ground-truth database.
  2. Context-Grounded Negotiation: Shoppers can converse naturally with Paylo. It adheres strictly to merchant rules, offering compliant bundle discounts or recommending plan tiers without hallucinating.
  3. Friction-Free PayPal Checkout: Paylo dynamically generates 1-click PayPal approval flows directly within chat:
    • One-Time Orders: Handled via PayPal Orders v2 API with instant capture telemetry.
    • Recurring Subscriptions: Automatically provisions PayPal Billing Plans and executes subscriber agreements.
    • PayPal Pay in 4 (BNPL): Dynamically splits eligible purchases into interest-free installments.
  4. Paylo Unified Studio: A Stripe- and Dub.co-grade merchant command center with real-time revenue telemetry, AG Grid BI intelligence, dispute radar, and cross-platform sync.
  5. Universal 1-Line Embed: Works instantly on Shopify, Webflow, WordPress, Next.js, and custom HTML via <script src="paylo.js" data-site="your-store"></script>.

How We Built It

  • PayPal Integration: Connected directly to the PayPal Sandbox REST API using OAuth 2.0 client credentials. We implemented /v2/checkout/orders for real-time creation and capture, /v1/billing/plans and /v1/billing/subscriptions for recurring revenue, and live balance telemetry via the PayPal reporting APIs.
  • AI Core & Brain: Powered by high-speed LLM reasoning with a custom Retrieval-Augmented Generation (RAG) catalog engine. Ingestion pipelines parse HTML and schema.org metadata to structure products into JSON catalog files.
  • Model Context Protocol (MCP): Implemented an Anthropic MCP commerce server allowing external AI assistants (like Claude Desktop or Cursor) to query Paylo catalogs and generate PayPal checkout sessions autonomously.
  • Frontend & Analytics: Built with React, Vite, Tailwind CSS, Lucide icons, and Recharts. Modeled after Dub.co and modern enterprise fintech dashboards with pure obsidian dark mode and dynamic time-range filtering (24h, 3d, 7d, 30d).
  • Data Harmony: Utilized cross-tab synchronization (BroadcastChannel & storage event listeners) ensuring edits made in Studio instantly propagate to the live storefront and chat agents.

Challenges We Overcame

  1. Preventing AI Hallucinations in Commerce: An AI agent cannot quote incorrect prices or promise non-existent discounts. We solved this with strict JSON-schema enforcement and a deterministic guardrail layer that validates all amounts against the merchant's saved catalog before invoking the PayPal Orders API.
  2. Seamless PayPal Window Handshake: Integrating PayPal modals into an autonomous conversational stream without page reloads required building a custom bi-directional messaging bridge between the host page and the Paylo widget.
  3. Cross-Platform Catalog Parity: Normalizing inconsistent product markups across Shopify, Webflow, and custom sites into a single structured catalog format.

Accomplishments We're Proud Of

  • Executed real, end-to-end PayPal Sandbox transactions triggered purely by natural language dialogue.
  • Built a sub-second, zero-dependency universal embed script (paylo.js) that runs anywhere.
  • Created a fully synchronized merchant studio with live telemetry, dispute simulation, and analytics filters.

What We Learned

  • PayPal's REST APIs are extraordinarily robust for autonomous agent workflows when paired with proper idempotent payload generation.
  • Giving AI agents transactional agency (the ability to create actual payment intents) fundamentally transforms e-commerce from passive browsing to active consultation and conversion.

What's Next for Paylo

  • Integrating PayPal Vault for secure, multi-turn autonomous reordering.
  • Expanding Agent-to-Agent (A2A) commerce protocols where buyer personal agents negotiate directly with Paylo seller agents.
  • Native Shopify App Store and WooCommerce plugin packaging.

Built With

Share this project:

Updates

Submission history