Hub AI Assistant v1.0.0 – Initial Release

Full-featured AI assistant for The Hub membership platform. Four AI modes with SureMembers tier gating, knowledge base, and complete cost control.

Core Features

  • Server-side API proxy — Anthropic API key stored securely on the server, never exposed to members
  • WordPress Expert Mode — deep knowledge of Astra, Starter Templates, Spectra, SureForms, WooCommerce, and core WordPress troubleshooting
  • Content Writer Mode — blog posts, product descriptions, emails, social media, and SEO meta generation
  • Business Coach Mode (Growth tier) — strategic advice on digital products, pricing, funnels, traffic, and scaling
  • SEO Advisor Mode — keyword strategy, content briefs, on-page optimization, and topic clusters
  • Shortcode [hub_ai_assistant] for embedding in SureDash portal pages

Tier-Based Access

  • SureMembers integration with automatic tier detection via Access Groups
  • Three-tier system: Explorer (50 msgs/mo, WordPress only), Builder (200 msgs/mo, +Content, +SEO), Growth (unlimited, all modes)
  • Per-tier model selection — Haiku 4.5 for Explorer/Builder, Sonnet 4.5 for Growth
  • Conversation history retention per tier (5 days, 30 days, unlimited)
  • Mode-specific prompt template library gated by tier level

Hub Knowledge Base

  • Auto-indexes published posts, pages, and Tools CPT on save
  • Keyword extraction and relevance scoring for context-aware AI responses
  • AI references and links to relevant Hub articles in responses
  • Cross-site indexing for WordPress Multisite via switch_to_blog()
  • Configurable remote Blog IDs to index content from the main site
  • Per-site indexing breakdown in admin dashboard

Usage & Cost Control

  • Per-user monthly message count tracking across all modes
  • Token usage tracking (input and output) per request
  • Estimated API cost calculation based on model pricing
  • Admin dashboard with active users, total messages, token counts, and cost estimates
  • Top users report for identifying heavy usage
  • Real-time remaining message counter in the frontend UI

Chat & UI

  • Persistent conversation history with session management
  • Session list in sidebar with delete functionality
  • Mode switcher with per-mode welcome messages
  • Markdown rendering (headings, code blocks, tables, lists, blockquotes)
  • Copy-to-clipboard on assistant messages
  • Responsive design with mobile sidebar toggle
  • Personalized welcome screen with member name

Technical

  • Four custom database tables: conversations, sessions, usage, knowledge base
  • Admin settings with four tabs: General, Tier Limits, Knowledge Base, Usage & Costs
    uninstall.php for clean database and options removal
    index.php in every directory to prevent directory browsing
  • Translation-ready with .pot template file
  • WordPress nonce verification, capability checks, and input sanitization on all handlers

Scroll to Top