Luis N. GarcíaIndependent product engineer

AI & automation

LeadRelay

An embedded agent answers buying questions from a business’s own website and carries qualified leads, bookings and conversations into one CRM.

Drawing ID
LNG-CH02
Rev.
2026.12
System
AI / CRM
Scale
Not to scale
Studio
28.46° N · 16.25° W
ISSUED DRAWINGLNG · 2026-12-04
01.0 / Demo

From question to handoff

Follow a pricing question from the embedded widget into the operator’s CRM. The recording uses a fictional business and sample records.

FIG. 01.A / LeadRelay / Walkthrough1200 × 744 PX

Play the product walkthrough.

FIG. 01.B / CRM record1440 × 846 PX
Sample activity in the LeadRelay CRM

Trace the lead to its appointment in the operator workspace.

02.0 / Design constraints

The problem

A visitor asks about pricing in chat. Without a shared record, the sales team has to collect the same details again before it can book a call.

Technical decisions

SPEC 02.1Keep the source within reach
The agent retrieves passages from the business’s website and FAQs and links back to them. An operator can check the passage behind a price or a booking answer.
SPEC 02.2Keep a person in the loop
An operator can take over a conversation from the CRM and reply in the same widget. The visitor’s earlier questions and captured details stay with the thread.
SPEC 02.3Make handoffs recoverable
The server validates booking availability. Operators can inspect a failed delivery in the CRM and send it again.
03.0 / System schematic

Architecture

JavaScript · Node.js · PGlite · Workers / D1

  1. NODE 01

    Embedded widget

    An isolated iframe maintains the visitor conversation separately from the operator session.

    Data in transit · JSON
    {
      "question": "How much does a new website cost?",
      "source": "/example/pricing"
    }
    HTTPS / JSON
  2. NODE 02

    Agent and actions

    Website passages ground answers. The server validates lead capture and appointment requests.

    Data in transit · JSON
    {
      "lead": "Nina Patel",
      "booking": "meeting.booked · 15:00 UTC"
    }
    JSON / webhook
  3. NODE 03

    CRM and delivery

    Shared application logic runs on Node with PGlite or on Cloudflare Workers with D1. The dashboard surfaces leads, bookings and webhook delivery.

    Data in transit · JSON
    {
      "event": "lead.created",
      "Idempotency-Key": "lead.id"
    }

What I verified

Deployment
2 runtimes
The same CRM logic runs on Node with PGlite and on Cloudflare Workers with D1.
Webhook test limit
5 attempts
The webhook inspector caps each test at five delivery attempts. Retries reuse the same idempotency key.

Command palette

Load CH 01 · Kova Audio
Load CH 02 · LeadRelay
Load CH 03 · SnapLedger
Open Kova configurator
Simulate LeadRelay
Simulate SnapLedger OCR
CH 00 · Signal lab · Pong
Screen mode · AMBER
Screen mode · PHOSPHOR
Screen mode · CYAN
Screen mode · CLEAN
Toggle sound effects · SFX
English · EN
Español · ES
Français · FR
Deutsch · DE
Italiano · IT
Português · PT
Nederlands · NL
Polski · PL
日本語 · JA
한국어 · KO
简体中文 · ZH
Chat
Go to · Work
Go to · Services
Go to · About
Go to · Get in touch

↑ ↓ Select · Enter Run · Esc Close

Luis N. García

Local assistant · Ready
Start a project