AI-powered lead capture

Smart Website Bot

An AI sales consultant that lives on your website — answers visitor questions 24/7, captures leads with inline forms, and sends instant alerts to Telegram. Self-hosted, no subscriptions.

Most websites lose 90%+ of visitors without any contact. Static forms convert at 1–2%. Smart Website Bot replaces passive forms with a conversational AI that qualifies visitors, answers their questions in real time, and captures contact details naturally — then notifies you instantly via Telegram so you can respond in minutes, not days.

Availability

24/7

Bot answers even when you sleep

Response time

<2s

Faster than any human agent

Infrastructure

VPS / Mac Mini

Self-hosted on your choice of hardware, no third-party subscriptions

Business framing

Why this mattered

Contact forms are friction. FAQ pages go unread. Live chat requires someone online. Most small businesses lose potential clients simply because visitors leave without asking their question. A smart chat bot bridges that gap — it’s always available, always patient, and always captures the lead before the visitor closes the tab.

Observed pain

  • Static contact forms convert at 1–2% — 98% of visitors leave without engaging.
  • FAQ pages are passive — visitors don’t search for answers, they expect conversation.
  • Live chat works only during business hours — but visitors come 24/7.

Guided walkthrough

Each block shows the business reason, the system move, and the operational implication.

Slide 01

Not a FAQ bot — a sales consultant

The system prompt turns the AI into a warm, curious consultant that understands your services. It doesn’t dump paragraphs of text. It asks follow-up questions, identifies the visitor’s actual need, and naturally steers toward sharing contact details. The personality is calibrated: professional enough for B2B, approachable enough that people actually engage.

  • Sales-oriented system prompt with qualification flow
  • Responds in the visitor’s language automatically
  • Short first answers — elaborate only when asked

Slide 02

Lead capture inside the conversation

After 3+ meaningful exchanges, the bot naturally suggests leaving contact details. An inline form appears right inside the chat — not a redirect, not a popup. Name and email with browser autocomplete. The visitor fills it in without leaving the conversation. Conversion is 3–5x higher than a standalone contact form because the visitor is already engaged.

  • Form appears contextually, not randomly
  • Browser autocomplete reduces friction to one tap
  • Thank-you message from bot confirms human follow-up

Slide 03

Instant Telegram alerts with AI summary

When a lead is captured, the backend generates an AI summary of the entire conversation — what the visitor needs, their situation, budget hints, timeline. This summary plus name and email are sent to your Telegram instantly. You read 5 lines instead of scrolling through 20 messages. You respond within minutes while the visitor still remembers you.

  • Full conversation summarized by AI in 3–5 bullet points
  • Telegram notification arrives in seconds
  • Context-rich — you know what they need before you reply

Workflow anatomy

Each stage is small enough to inspect, yet together they form a coherent system.

01

01 · Engage

Visitor opens the chat widget

A floating button invites visitors to chat. On click, the AI greets them and asks how it can help. The widget loads instantly — no external scripts, no cookie banners, no delay. Session history persists across page reloads.

02

02 · Qualify

AI conversation with sales intent

The bot follows a qualification flow: understand the problem, ask about the situation, gauge urgency. GPT-5.4-mini handles the conversation with a custom system prompt. Typing effect makes the interaction feel human. Each response is short and targeted.

03

03 · Capture

Inline form collects the lead

After 3+ bot responses, an inline form slides into the chat. Name + email with autocomplete. The bot encourages filling it out with a personalized hook based on the conversation. On submit, the lead is saved to disk and the form disappears with a thank-you message.

04

04 · Alert

Telegram notification with AI summary

The backend calls OpenAI to summarize the full conversation, then sends the summary + lead details to Telegram via Bot API. The business owner reads 5 lines and responds within minutes. Every lead is also saved as a JSON file for backup and CRM import.

Business impact

What changed for operations

  • Visitors who would have left silently now engage in conversation and leave their contact details.
  • Response time drops from hours/days to minutes — you reach out while the visitor still remembers you.
  • No monthly SaaS fees — the entire stack runs on your own VPS with only OpenAI API costs (~$0.01 per conversation).

Architecture note

Routing logic in plain English

  • Visitor → chat widget (frontend JS) → /api/chat (Node.js) → OpenAI API → streaming response → inline lead form → Telegram alert with AI summary
  • Session management via cookies + server-side JSON files. History persists across page reloads. Conversation context maintained for AI summary.
  • Zero external dependencies beyond OpenAI API. No Intercom, no Drift, no Crisp. Self-hosted, self-maintained, fully controlled.

Stack in play

No external SaaS dependencies. The entire system runs on a single host (VPS or Mac Mini) with open-source tools and one API key.

Astro

Static site generator. The chat widget is embedded directly in the page — no external scripts, no iframes, no performance penalty.

Node.js

Lightweight backend (contact-server.cjs) handles chat API, session management, lead storage, and Telegram notifications. Single file, ~350 lines.

OpenAI API

GPT-5.4-mini for chat responses and lead conversation summaries. Custom system prompt tuned for sales qualification. ~$0.01 per conversation.

Telegram Bot API

Instant lead notifications with HTML formatting. AI-generated conversation summary included. No polling — direct push via HTTPS.

Caddy

Reverse proxy with automatic HTTPS. Routes /api/chat to the Node.js backend, serves static files from Astro build output.

Reusable pattern

Deployable product

This is not a concept — it’s running live on sokkosai.com right now. The same setup can be deployed to any website in 1–2 days. Scroll down to try the bot yourself, or get in touch to discuss your own implementation.