nvt-ai-chatbot-rag-live-chat

plugin

1.1.5 • public • Published 3 days ago

A powerful AI Chatbot (RAG) and Live Chat solution with WooCommerce integration, Order Tracking, and Personalized User Context.

aichatbotlive chatragwoocommerce

Description

This plugin connects your WordPress site to the NVT SaaS platform to provide an advanced RAG (Retrieval-Augmented Generation) AI and Live Chat solution.

NEW IN VERSION 1.1: The AI is now context-aware. It recognizes logged-in users and integrates deeply with WooCommerce to provide personalized support, product recommendations, and order status updates.

It allows you to:

  • Ingest Your Content: Automatically crawl your website's sitemap or upload files (PDF, Docx, TXT) to create a custom knowledge base.
  • Provide AI Chat (RAG): Offer a 24/7 AI chatbot that answers visitor questions based specifically on your indexed content.
  • Personalized Experience: Automatically identifies logged-in users (Name, Email, Phone) to provide tailored responses without asking for introductions.
  • WooCommerce Integration:
    • Product Search: AI can search and recommend products from your store.
    • Order Tracking: Logged-in users can ask "Where is my order?" to check their latest order status.
    • Cart Actions: AI can add products to the cart directly within the chat.
    • Cart Snapshot: Support agents can view what is currently in the customer's cart.
  • User Journey Tracking: Tracks user activity (pages viewed, products viewed) so support agents understand the customer's context.
  • Enable Live Chat: Switch between AI Bot and Live Chat based on a schedule or manual override.
  • Smart Inbox: A built-in chat management interface in WP Admin to view history, chat live, and Export Leads/Sessions to CSV.
  • Admin Notifications: Get real-time bubble notifications in the WP Admin Bar when users need help.

Installation

  1. Upload the plugin files to the /wp-content/plugins/nvt-ai-chatbot directory.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Go to RAG Chatbot -> Account to register or connect your API Key.
  4. Configure the widget in the Settings tab.
  5. (Optional) If you have WooCommerce, the bot will automatically detect it.

Frequently Asked Questions

Can I export chat data?

Yes. Go to RAG Chatbot -> Inbox, where you can filter conversations and export them to CSV for your CRM or analysis.

Does this work with WooCommerce?

Yes! If WooCommerce is installed, the bot automatically gains the ability to search products, check order status for logged-in customers, and help users add items to their cart.

How does the bot know who the user is?

If a visitor is logged into your WordPress site, the plugin securely passes their Name, Email, and User ID to the chat context. If they are a guest, they can manually provide their name/phone in the chat widget.

Is my data safe?

Yes. We only index the public content you choose. Personal user data (orders, cart) is processed in real-time for the chat session and is not used for third-party advertising.

What do I do if the "Test Connection" fails?

First, check if your API Key is correct. Second, ensure your WordPress host allows outgoing connections to api.nguyenvanthu.com.

Screenshots

The customer-facing chat widget with product recommendations.

The customer-facing chat widget with product recommendations.

The admin "Account" tab showing usage.

The admin "Account" tab showing usage.

The "Inbox" (Chat Management) with User Context panel.

The "Inbox" (Chat Management) with User Context panel.

Admin Bar notification bubble.

Admin Bar notification bubble.

Changelog

1.1.0

  • New: WooCommerce Integration: AI can now search products and check order status.
  • New: Cart Integration: Users can add items to cart via chat; Agents can view customer cart snapshots.
  • New: Personalization: Automatically detects logged-in users (Name, Phone, Email) for context-aware support.
  • New: Event Tracking: Tracks user page views and product interest in real-time.
  • New: Export: Added CSV export for Leads and Chat History in the Inbox tab.
  • New: Admin Bar: Added unread message counter bubble for admins.
  • Improvement: Optimized REST API connection (cURL) to prevent timeouts.
  • Improvement: Added Rate Limiting to prevent API abuse.
  • Fix: Resolved issues with WebSocket reconnection.

1.0.10

  • Initial release with RAG and Live Chat core features.

3Rd Party Resources

This plugin uses the following third-party libraries:

External Services

This plugin relies on third-party services to function.
By using this plugin, you act as the data controller and agree to send data to the following processors:

1. NVT SaaS Platform (api.nguyenvanthu.com)

  • Service: This is the core AI engine and backend for the chatbot.
  • Used For:
    • Indexing your website content and products.
    • Processing chat questions (RAG) and generating personalized AI answers.
    • Handling real-time WebSocket connections for Live Chat.
    • Storing chat history logs.
  • Data Sent:
    • Website Content: Public posts, pages, and products.
    • Chat Data: Messages exchanged between visitors and the bot/agent.
    • User Context: If logged in, the user's name, email, and anonymized user ID are sent to personalize the chat.
    • eCommerce Data: Order status and cart contents (only when requested by the user or agent).
    • System Info: Site URL and license status.
  • Links: Terms of Service | Privacy Policy

2. PayPal (paypal.com)

  • Service: Payment processing gateway.
  • Used For: Allowing users to upgrade their service plan directly from the plugin dashboard (Optional).
  • Links: PayPal Privacy Policy

3. PayOS (payos.vn)

  • Service: Payment gateway for Vietnam banking QR codes.
  • Used For: Generating payment links for users in Vietnam (Optional).
  • Links: PayOS Terms of Service

4. Socket.IO (via NVT SaaS)

  • Service: Real-time communication library.
  • Used For: Facilitating the live chat connection between the visitor widget and the agent console.