Live Chat
Package docs status
Section titled “Package docs status”This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.
| Field | Value |
|---|---|
| Composer package | capell-app/live-chat |
| Package slug | live-chat |
| Product group | Capell Engagement & CRM |
| Tier | premium |
| Bundle | engagement-crm |
| Runtime contexts | admin, frontend |
| Capell version | ^1.0 |
| Catalogue role | extension |
| Release channel | Labs |
| Source repository | capell-app/packages |
| Source path | packages/live-chat |
| Docs source | packages/live-chat/docs |
| Manifest | capell.json |
What This Plugin Adds
Section titled “What This Plugin Adds”Live Chat is an Available, Schema-owning Capell package in the Capell Engagement & CRM product group. It ships as capell-app/live-chat and extends these surfaces: admin, frontend.
Live Chat adds a public chat widget, operator conversations, availability rules, handoff, attachments, and searchable knowledge sources.
Visitors can start a conversation or leave an offline message. Admin users can configure installations and availability, then review, summarise, route, or close chat history.
Evidence: src/Rendering/BladeLiveChatWidgetRenderer.php, src/Actions/StartLiveChatConversationAction.php, src/Actions/ResolveLiveChatAvailabilityAction.php, src/Actions/SearchLiveChatKnowledgeDocumentsAction.php, routes/web.php, tests/Feature/LiveChatPublicRoutesTest.php, tests/Feature/LiveChatConversationFlowTest.php, docs/overview.admin.md, src/Filament/Resources/Conversations/ConversationResource.php.
Status details:
- Status: Available
- Tier: premium
- Bundle: engagement-crm
- Composer package:
capell-app/live-chat - Namespace:
Capell\LiveChat - Theme key: not applicable
Why It Matters
Section titled “Why It Matters”For developers: Responder, knowledge-provider, and widget-renderer contracts keep AI, retrieval, and frontend delivery replaceable behind domain Actions.
For teams: Support teams can retain conversation history, review AI-assisted summaries and reply suggestions, and route conversations for human follow-up.
Evidence: src/Contracts/LiveChatResponder.php, src/Contracts/LiveChatKnowledgeProvider.php, src/Contracts/LiveChatWidgetRenderer.php, tests/Feature/LiveChatKnowledgeRetrievalTest.php, src/Filament/Resources/Conversations/ConversationResource.php, src/Actions/RequestLiveChatHandoffAction.php, src/Actions/BuildLiveChatTranscriptAction.php.
Screens And Workflow
Section titled “Screens And Workflow”Screenshot contract: docs/screenshots.json.
- Live Chat widget and conversation inbox previews remain diagnostic-only until package-owned route-backed fixtures have matching runner receipts.
- Live Chat chat sites and installation settings (admin, optional).
- Live Chat conversation detail with transcript and handoff state (admin, optional).
- Live Chat availability windows (admin, optional).
- Live Chat escalation rules (admin, optional).
- Live Chat widget after-hours state (frontend, optional).
Technical Shape
Section titled “Technical Shape”- Service providers:
Capell\LiveChat\Providers\LiveChatServiceProvider. - Config files:
packages/live-chat/config/capell-live-chat.php. - Migrations:
packages/live-chat/database/migrations/2026_06_13_000001_create_live_chat_conversations_table.php,packages/live-chat/database/migrations/2026_06_13_000002_create_live_chat_messages_table.php,packages/live-chat/database/migrations/2026_06_13_000003_create_live_chat_availability_tables.php,packages/live-chat/database/migrations/2026_06_13_000004_create_live_chat_rules_and_sources_table.php,packages/live-chat/database/migrations/2026_06_13_000005_create_live_chat_installations_table.php,packages/live-chat/database/migrations/2026_06_13_000006_create_live_chat_ai_source_tables.php,packages/live-chat/database/migrations/2026_07_10_000001_add_normalized_scope_key_to_live_chat_knowledge_gaps.php. - Models:
LiveChatAIRun,LiveChatAvailabilityException,LiveChatAvailabilityWindow,LiveChatConversation,LiveChatEscalationRule,LiveChatInstallation,LiveChatKnowledgeDocument,LiveChatKnowledgeGap,LiveChatKnowledgeSource,LiveChatMessage. - Filament classes:
AvailabilityWindowResource,CreateAvailabilityWindow,EditAvailabilityWindow,ListAvailabilityWindows,ScopesLiveChatResourcesToSites,ConversationResource,EditConversation,ListConversations,EscalationRuleResource,CreateEscalationRule,EditEscalationRule,ListEscalationRules,and 8 more. - Route files:
packages/live-chat/routes/web.php. - Policies:
AbstractLiveChatResourcePolicy,LiveChatAIRunPolicy,LiveChatAvailabilityExceptionPolicy,LiveChatAvailabilityWindowPolicy,LiveChatConversationPolicy,LiveChatEscalationRulePolicy,LiveChatInstallationPolicy,LiveChatKnowledgeDocumentPolicy,LiveChatKnowledgeGapPolicy,LiveChatKnowledgeSourcePolicy. - Extension contracts:
LiveChatKnowledgeProvider,LiveChatResponder,LiveChatWidgetRenderer. - Actions:
ApplyLiveChatCorsHeadersAction,BuildLiveChatAnalyticsAction,BuildLiveChatOperatorStateAction,BuildLiveChatSuggestedReplyAction,BuildLiveChatTranscriptAction,BuildLiveChatWidgetConfigAction,CloseLiveChatConversationAction,DeleteLiveChatAttachmentsAction,DeleteLiveChatConversationsAction,DetectLiveChatIntentAction,DetermineLiveChatEscalationAction,EraseLiveChatPrivacyDataAction,and 20 more. - Data objects:
IncomingLiveChatMessageData,LiveChatAIRunData,LiveChatAvailabilityData,LiveChatEscalationDecisionData,LiveChatKnowledgeDocumentData,LiveChatKnowledgeSearchResultData,LiveChatResponseData,LiveChatVisitorData,LiveChatWidgetConfigData. - Manifest action API:
buildLiveChatAnalytics: Capell\LiveChat\Actions\BuildLiveChatAnalyticsAction,buildLiveChatOperatorState: Capell\LiveChat\Actions\BuildLiveChatOperatorStateAction,buildLiveChatSuggestedReply: Capell\LiveChat\Actions\BuildLiveChatSuggestedReplyAction,buildLiveChatTranscript: Capell\LiveChat\Actions\BuildLiveChatTranscriptAction,buildLiveChatWidgetConfig: Capell\LiveChat\Actions\BuildLiveChatWidgetConfigAction,closeLiveChatConversation: Capell\LiveChat\Actions\CloseLiveChatConversationAction,detectLiveChatIntent: Capell\LiveChat\Actions\DetectLiveChatIntentAction,determineLiveChatEscalation: Capell\LiveChat\Actions\DetermineLiveChatEscalationAction,generateLiveChatSummary: Capell\LiveChat\Actions\GenerateLiveChatSummaryAction,guardLiveChatInstallationOrigin: Capell\LiveChat\Actions\GuardLiveChatInstallationOriginAction,guardLiveChatSameSiteRequest: Capell\LiveChat\Actions\GuardLiveChatSameSiteRequestAction,indexLiveChatKnowledgeDocument: Capell\LiveChat\Actions\IndexLiveChatKnowledgeDocumentAction,and 14 more. - Scheduled commands:
capell:live-chat:prune (daily). - Console command classes:
PruneLiveChatConversationsCommand. - Manifest contributions:
admin-resource: Capell\LiveChat\Manifest\LiveChatAdminResourcesContribution,agent-capability: Capell\LiveChat\Manifest\LiveChatAgentBridgeCapabilitiesContribution,frontend-component: Capell\LiveChat\Manifest\LiveChatWidgetContribution,health-check: Capell\LiveChat\Manifest\LiveChatHealthContribution,model: Capell\LiveChat\Manifest\LiveChatModelsContribution,route: Capell\LiveChat\Manifest\LiveChatFrontendRoutesContribution,scheduled-job: Capell\LiveChat\Manifest\LiveChatPruneScheduleContribution. - Health checks:
Capell\LiveChat\Health\LiveChatHealthCheck. - Blade views:
packages/live-chat/resources/views/script.blade.php,packages/live-chat/resources/views/widget.blade.php. - Cache tags:
live-chat.
Data Model
Section titled “Data Model”- Required tables:
live_chat_conversations,live_chat_installations,live_chat_messages,live_chat_ai_runs,live_chat_availability_windows,live_chat_availability_exceptions,live_chat_escalation_rules,live_chat_knowledge_documents,live_chat_knowledge_gaps,live_chat_knowledge_sources. - Models:
LiveChatAIRun,LiveChatAvailabilityException,LiveChatAvailabilityWindow,LiveChatConversation,LiveChatEscalationRule,LiveChatInstallation,LiveChatKnowledgeDocument,LiveChatKnowledgeGap,LiveChatKnowledgeSource,LiveChatMessage. - Core record references in migrations:
sites via site_id. - Migration files:
2026_06_13_000001_create_live_chat_conversations_table.php,2026_06_13_000002_create_live_chat_messages_table.php,2026_06_13_000003_create_live_chat_availability_tables.php,2026_06_13_000004_create_live_chat_rules_and_sources_table.php,2026_06_13_000005_create_live_chat_installations_table.php,2026_06_13_000006_create_live_chat_ai_source_tables.php,2026_07_10_000001_add_normalized_scope_key_to_live_chat_knowledge_gaps.php. - Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare cascade-on-delete relationships and null-on-delete relationships; retention is scheduled through
capell:live-chat:prune(daily).
Install Impact
Section titled “Install Impact”- Required packages:
capell-app/admin,capell-app/contacts,capell-app/core,capell-app/frontend. - Admin navigation: declares
admin-resource: LiveChatAdminResourcesContribution; each Filament page or resource controls its own navigation visibility. - Admin/editor extensions: none declared.
- Permissions:
View:LiveChatInstallation,Create:LiveChatInstallation,Update:LiveChatInstallation,Delete:LiveChatInstallation,View:LiveChatAIRun,View:LiveChatKnowledgeDocument,Create:LiveChatKnowledgeDocument,Update:LiveChatKnowledgeDocument,Delete:LiveChatKnowledgeDocument,View:LiveChatKnowledgeGap,Update:LiveChatKnowledgeGap,View:LiveChatConversation,Update:LiveChatConversation,View:LiveChatAvailabilityWindow,Create:LiveChatAvailabilityWindow,Update:LiveChatAvailabilityWindow, and 9 more. - Public routes: loads
routes/web.php; registersLiveChatFrontendRoutesContribution. - Database changes: package migrations are declared.
- Config:
config/capell-live-chat.php. - Settings: no package settings declared.
- Queues or schedules: scheduled commands
capell:live-chat:prune (daily). - Cache tags:
live-chat. - Commands: console command classes detected:
PruneLiveChatConversationsCommand.
Common Pitfalls
Section titled “Common Pitfalls”- Keep required Capell packages on compatible v4 releases:
capell-app/admin,capell-app/contacts,capell-app/core,capell-app/frontend. - Run migrations before opening package resources or public routes.
- Review package configuration before production-like verification:
config/capell-live-chat.php. - Review middleware, throttling, signatures, and public-output safety in
routes/web.phpbefore exposing routes. - Register the host scheduler so these declared commands run at their documented frequencies:
capell:live-chat:prune (daily). - Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.
- Custom write integrations must preserve invalidation for
live-chatcache tags.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration |
Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model |
Run host migrations and rerun the focused package test |
| Route returns unexpected output | Route cache, middleware, or signed URL setup does not match the package route file | Check the route files listed in Technical Shape |
Clear route cache and verify middleware before exposing public routes |
| Background work does not run | Queue worker or declared schedule is not active | Check the jobs and scheduled commands listed in Technical Shape |
Start the queue worker or host scheduler, then run the focused command or package test |
| Public output leaks unexpected state | Render data, cache variation, or authoring boundary has regressed | Check public Blade, cache tags, and public-output safety tests | Move data loading out of Blade and rerun the package public-output tests |
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/live-chat. - Run the required setup:
php artisan migrate. - Open the Live Chat conversation inbox and confirm the admin workflow loads.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Admin guide
- Configuration files:
config/capell-live-chat.php. - Troubleshooting
- Screenshot contract
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Contacts, Agent Bridge, Ai Orchestrator, Email Studio, Knowledge Base, Privacy Center.
- Focused tests:
vendor/bin/pest packages/live-chat/tests --configuration=phpunit.xml.