Clean Content Extraction & Incremental Indexing
BridgeChat AI indexes published WordPress pages and posts by default, and supports any public custom post type, excluded post IDs, standalone static HTML files under ABSPATH, and custom plain-text FAQ notes.
Before chunking, the extractor removes inline <style>, <script>, <noscript>, and <svg> blocks plus shortcodes, inserts block-boundary newlines so headings do not merge with body paragraphs, and splits text into 1,200-character chunks with 200-character overlap. Each chunk is hashed with sha256 so unchanged sections are skipped during incremental rebuilds or save_post updates.
Dual BYOK Providers & Grounded JSON Output
Configure your own OpenAI or Google Gemini API key under Settings → BridgeChat AI → AI Provider. Every chat request searches top-K chunks (default 5, configurable 1–12) meeting your minimum cosine similarity threshold (default 0.25) and instructs the model to respond strictly as JSON containing reply, handoff, and handoff_reason.
If a visitor asks for a real human, requests a custom consultation outside indexed context, or context is insufficient, the assistant can automatically open a Telegram Forum Topic when telegram_auto_handoff is enabled.
Two-Way Telegram Forum Topics Bridge
Telegram lets one bot token bind one webhook URL, and Forum Topics keep every visitor conversation isolated in its own thread inside a single private supergroup. Operators can reply directly from Telegram desktop or mobile and send /ai to hand the session back to AI or /close to mark it resolved and close the topic.
WP-CLI Automation & Extensibility
Inspect indexable content before spending embedding tokens with wp bridgechat-ai preview-docs, run incremental indexing with wp bridgechat-ai index, test semantic matches via wp bridgechat-ai search, and verify or register Telegram webhooks with test-telegram and register-webhook.