WordPress conversational AI framework with semantic routing and Awesome Support integration
Project Overview:
A modular WordPress plugin that powers conversational AI support agents. Routes user messages to pre-built scenarios (simple Q&A or multi-step flows), manages persistent sessions, enriches responses with knowledge bases & site content, and integrates with Awesome Support for ticket automation.
💾 Architecture
Modular PHP Classes
Modular PHP Classes
🔗 Integration
WordPress + OpenAI
WordPress + OpenAI
🔄 Session Management
DB + Transient Fallback
DB + Transient Fallback
🎯 Use Case
Automated Support
Automated Support
Key Features
- Semantic Message Routing — AI-powered scenario matching with confidence scoring
- Dual Flow Support — Simple Q&A (single-turn) and State Machine (multi-step conversations)
- Persistent Sessions — Database storage with transient fallback for resilience
- Knowledge Integration — Automatic KB article & site post retrieval for enriched responses
- Ticket Automation — Structured output parsing to create Awesome Support tickets
- Conversational History — Full chat transcript logging for support context
- Prompt Engineering — Layered system prompts with knowledge scope constraints
Architecture Highlights
Core Components:
Scenario Engine— Orchestrates conversation lifecycle & session managementRouter— Matches incoming messages to scenarios using semantic similarityState Machine— Manages multi-step flows with transitions & escalation logicAI Factory— Adapter for OpenAI & other providersSessions Manager— Handles persistent storage with database + transient fallback
Integration & Use Cases
- Customer Support Automation — Route support requests to AI agents; escalate complex issues to tickets
- Knowledge-Driven Q&A — Answer FAQs using KB articles with semantic search
- Multi-turn Troubleshooting — State machines guide customers through step-by-step diagnostics
- Ticket Creation Workflow — AI collects customer info & automatically creates Awesome Support tickets
🔗 Resources & Links:
Framework & Platforms: WordPress, OpenAI API, Awesome Support Plugin
Developer References: WordPress Developer Handbook, OpenAI API Docs
Source Code: GitHub (plugin repository and version control)
Contact: contact@leecodez.com
Framework & Platforms: WordPress, OpenAI API, Awesome Support Plugin
Developer References: WordPress Developer Handbook, OpenAI API Docs
Source Code: GitHub (plugin repository and version control)
Contact: contact@leecodez.com
