AI Assistant SaaS
Laravel API foundation for workspace-based AI assistants across WhatsApp, Telegram, webchat, Instagram, and future channels.
Backend running
Local Access
- App URL
https://bots.koshek.kz- API base
/api- Demo user
admin@example.com- Password
password
Core Modules
- Workspace, Billing, AI
- Messaging, Conversation, Integration
- KnowledgeBase, Automation, Analytics
Runtime
- PHP 8.3 through nginx
- MySQL database
- Redis queue worker
- Laravel scheduler service
Login
curl -X POST http://aiassistant.loc/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"admin@example.com","password":"password"}'
Key Endpoints
GET /api/workspacesGET /api/workspaces/1/botsPOST /api/workspaces/1/test-messageGET /api/workspaces/1/conversations
Test AI Message
curl -X POST http://aiassistant.loc/api/workspaces/1/test-message \
-H "Content-Type: application/json" \
-H "Authorization: Bearer TOKEN" \
-d '{"bot_id":1,"content":"Privet, skolko stoit usluga?"}'
The fake provider returns: "Eto testovyi otvet AI-assistenta."
Implemented
- Workspace-scoped SaaS data model
- Sanctum token auth
- Fake AI provider abstraction
- Queued message processing flow