Source code overview
Botmate is a revolutionary AI-driven customer support and e-commerce chatbot SaaS platform source code based on Laravel 12.x and PostgreSQL + pgvectorBuild. It uses advanced rag (retrieval-enhanced generation) technology combined with vector embedding and semantic search to enable robots to learn from the knowledge base and provide intelligent, context-aware responses.
The platform is ideal for entrepreneurs, agencies, and businesses looking to automate customer service, acquire leads, and integrate e-commerce platforms. Botmate Support WooCommerce、Shopify And a Universal Ecommerce API integration to help your customers connect their stores for AI-driven product recommendations, order tracking, and 24/7 customer support.
Applicable Industries and Businesses
| Type Description | |
| SaaS Entrepreneur | Launch white-label AI chatbot platform with built-in full subscription management and 18 + payment gateways |
| E-commerce Seller | Automate product inquiries, order tracking and customer support (supports WooCommerce/Shopify) |
| Customer Service Team | Reduce duplicate tickets by 80% based on internal documentation and knowledge base |
| Digital Marketing/Agency | AI Chatbot Solution for Isolated Environments for Customers |
| Educational/Healthcare Institutions | Handle course inquiries, patient inquiries, and automated appointment onboarding |
| Real Estate Financials | Handle high-frequency listing or account inquiries with context-aware AI |
Core Values
Botmate is not only a chatbot script, but a complete business solution. It allows you to quickly launch and scale your AI chatbot SaaS platform to generate ongoing revenue from day one by:
- Multi-tenant isolation
- Flexible subscription plan management
- 18 + payment gateway integrations
- White Label Brand Customization
- Drag and drop page/component builder
Core function
1. Intelligent rag Knowledge Base Training
The platform supports content training in a variety of formats to provide accurate answers through vector embedding and semantic search:
- Documentation:PDF、DOCX、TXT、Markdown
- Web scraping.: Enter the URL to automatically crawl (FAQ, blog, product page)
- Image OCR: Extract text from infographics, screenshots, printed documents
- Video/Audio Transcription: Upload MP4, MOV, MP3, automatically transcribe to training text
- Sitemap One-Click Training: Crawl and index the entire site
- Semantic Search: Supports query variants and synonyms based on contextual understanding of pgvector
2. E-commerce Native Integration
- WooCommerce Integration: Synchronize products, prices, inventory; Handling order inquiries and personalized recommendations
- Shopify Integration: Sync store data via API
- Common API Integration: Support docking with other e-commerce platforms
- Synchronous health monitoring: View sync status in real time
3. Multi-tenant SaaS management
Admin Features
- User and employee management (supports custom role permissions: customer service manager, finance, etc.)
- Unlimited Subscription Plan Creation (with Feature Limit, Trial Period, Monthly/Annual Payments)
- 18 + payment gateway integration: PayPal, Stripe, Razorpay, Paystack, Mollie, Midtrans, Flutterwave, etc.
- Automatic billing, invoice generation, payment tracking
- Built-in translation system: supports multilingual front-end
- Page/Component Drag Builder
- SEO settings, maintenance mode, Analytics/Pixel integration
- Enterprise-grade security: CSRF, XSS, SQL protection, bcrypt hash, 2FA, IP whitelist
Client Features (Client Back Office)
- Taxonomy management: Organize the knowledge base by topic or product line
- Chatbot Appearance Settings: Location, Color, Logo, Welcome Message, Live Preview
- Behavioral Configuration: Greeting, Active Trigger Rule, Working Hours, Automatic Ticket Creation
- AI Parameter Control: Model Selection (GPT-3. 5/4), temperature, maximum number of tokens
- Authorize Domain Management: Generate Unique Embed Code
- Conversation monitoring dashboard: view visitor information, session logs, AI performance gap analysis
- Self-service ticket system: standalone URL, manual takeover of unresolved channel
- Lead Capture System: Automatic collection of visitor names, emails, and interactions
4. Embeddable chat widget
- Minimal installation: One line of JavaScript embed code, loaded asynchronously
- Highly customizable: colors, logo uploads, welcome notes, live preview
- Domain Authorization ControlPREVENTING UNAUTHORIZED USE
- Context-aware responses: Semantic understanding based on vector embedding to support multiple rounds of dialogue
- AI Model Integration: Supports GPT-3. 5-turbo (fast/economical) and GPT-4 (high precision)
- Smooth downgrade: Automatically navigate to the ticket system when you can't answer
5. Ticketing & Lead Systems
- Self-service ticketing system: Each customer has a unique URL that automatically creates a ticket when AI is unable to resolve it
- Priority Management: assign team, internal notes, attachment support, email notifications
- Lead Center: Automatically collects contact information from chat interactions and can be imported into the conversion process
Technology Architecture
| Project Technical Selection | |
| Backend Frame | Laravel 12.x |
| Database | PostgreSQL 12 + (requires pgvector extension) |
| AI Engine | OpenAI GPT Model |
| Real Time Communication | Laravel Reverb & Pusher |
| OCR Text Extraction | Tesseract OCR |
| Video Transcription | YouTube Transcript API |
| Vector search | pgvector (cosine similarity semantic matching) |
| WooCommerce Payments | 18 + pre-integrated (Stripe, PayPal, Razorpay, etc.) |
| Environmental requirements | PHP 8.3+、Composer、Redis、SSL |
Typical test questions
Platform Demo Scenarios
- What is Botmate?
- How do AI chatbots work?
- What integrations are supported?
- How do I start my chatbot SaaS business?
- Does it support white labels?
E-commerce scenario testing
- Is this product in stock?
- How much does it cost?
- Can you recommend a product under $50?
- How long does it take to ship?
- Where's my order?
- What is the return and exchange policy?
- Do you support cash on delivery?
Why Botmate
- Complete SaaS business model: Subscription management + multi-tenancy + payment gateway, run your business right out of the box
- Advanced rag technology: vector embedding + semantic search, really understand the context, not keyword matching
- E-commerce native support: Deep integration with WooCommerce/Shopify to process products and orders directly
- Multi-Source Knowledge Base Training: Full support for documents, web pages, images, audio and video
- One-stop delivery: Manage Back Office + User Back Office + Embeddable Components + Ticket System + Lead Capture
- White Label Ready: Fully customize branding, look, domain, and email templates
- One-time purchase: Self-hosted, no monthly fees, all profits belong to you
- Enterprise-grade security: 2FA, IP whitelist, permission control, encryption hash, security log
Delivery Content
- Full Laravel source code (admin + client)
- Embeddable chat widget
- WooCommerce/Shopify Integration Module
- Multi-format Knowledge Base Training Module
- Ticketing & Lead Systems
- Detailed installation and deployment documentation
- Database Migration and Population




