allway/chat-plugin is a Laravel package for allway chat plugin.
It currently has 2 GitHub stars and 105 downloads on Packagist.
Install it with composer require allway/chat-plugin.
Discover more Laravel packages by allway
or browse all Laravel packages to compare alternatives.
Last updated
Plugin de integração com Chatwoot (renomeado como Allway Chat) para OctoberCMS.
Via Dashboard:
Configuração Recomendada:
Título: "Conversas Abertas"
Conta: [Selecione uma conta configurada]
Tipo: "Conversas Abertas"
Período: "Últimos 30 dias"
Ícone: "comments"
Cor: "Verde"
Mostrar crescimento: Sim
Para testar as estatísticas via linha de comando:
php artisan allway:test-stats
Este comando mostra:
=== Teste de Estatísticas Allway Chat ===
--- Conta: Viale Hotéis ---
API URL: https://chat-viale.openwave.cloud/api/v1
📊 Estatísticas de Conversas (30 dias):
+----------------------+-------+
| Total de Conversas | 25 |
| Conversas Abertas | 25 |
| Conversas Resolvidas | 0 |
| Conversas Pendentes | 0 |
+----------------------+-------+
💬 Estatísticas de Mensagens (30 dias):
+---------------------+-------+
| Total de Mensagens | 25 |
| Mensagens Enviadas | 0 |
| Mensagens Recebidas | 25 |
+---------------------+-------+
plugins/allway/chat/
├── reportwidgets/
│ └── ChatStats.php # Widget principal
│ └── chatstats/
│ ├── css/chatstats.css # Estilos do widget
│ └── partials/
│ └── _chatstats.php # Template do widget
├── classes/
│ └── AllwayService.php # Métodos para API (+ estatísticas)
├── console/
│ └── TestChatStats.php # Comando de teste
├── docs/
│ └── widget-chatstats.md # Documentação detalhada
└── Plugin.php # Registro do widget e comando
getConversationsStats()Busca estatísticas de conversas com filtros por período, inbox e labels.
$stats = AllwayService::getConversationsStats($account, '30dias', [], ['urgente']);
// Retorna: ['total_conversations' => 25, 'open_conversations' => 25, ...]
getMessagesStats()Busca estatísticas de mensagens por período e inbox.
$stats = AllwayService::getMessagesStats($account, 'esta_semana', [1, 2]);
// Retorna: ['total_messages' => 50, 'outgoing_messages' => 20, ...]
getPeriodDates()Converte períodos legíveis em datas ISO para a API.
$dates = AllwayService::getPeriodDates('30dias');
// Retorna: ['2024-01-01T00:00:00.000Z', '2024-01-31T23:59:59.999Z']
O widget requer a permissão allway.chat.logs para ser visualizado na dashboard.
allway.chat.logsphp artisan allway:test-stats para diagnóstico