(Scroll down for English version 🇺🇸)
Este projeto PHP permite registrar e gerenciar um bot (ImBot) no Bitrix24, com integração ao Dialog360 para responder automaticamente mensagens recebidas via WhatsApp.
- Recebe mensagens via webhook do Dialog360.
- Encaminha essas mensagens para o chat Bitrix24 via
imbot.message.add
. - Registra comandos e respostas automáticas no bot.
- Gerencia o token de autenticação do Bitrix24.
- Possui log de eventos em arquivo para fácil rastreamento.
- Recebe eventos de mensagem ou comando via
$_REQUEST
. - Verifica o tipo de evento (
ONIMBOTMESSAGEADD
,ONIMCOMMANDADD
, etc). - Usa a API do Bitrix24 para responder no mesmo diálogo.
- Atualiza o token automaticamente se ele expirar.
- Registra logs em
bot_debug.log
.
- PHP 7+
- Acesso a uma conta Bitrix24 com permissões para ImBot
- Um servidor com suporte a HTTPS para receber webhooks do Dialog360
- Automatização no atendimento via WhatsApp.
- Integração nativa com chats e OpenLine do Bitrix24.
- Controle total sobre mensagens, comandos e eventos.
Precisa de ajuda para configurar seu bot no Bitrix24? Fale com a gente e automatize seu atendimento. 😉
This PHP project allows you to register and manage a bot (ImBot) in Bitrix24, integrated with Dialog360 to automatically respond to WhatsApp messages.
- Receives webhook messages from Dialog360.
- Sends them to Bitrix24 chat using
imbot.message.add
. - Handles commands like
/help
. - Automatically refreshes expired access tokens.
- Logs all activity to
bot_debug.log
.
- Listens to incoming events via
$_REQUEST
. - Identifies event type (e.g.,
ONIMBOTMESSAGEADD
,ONIMCOMMANDADD
). - Sends replies to Bitrix24 using the ImBot API.
- Handles token updates transparently.
- Logs everything for debugging.
- PHP 7+
- Bitrix24 account with ImBot API access
- HTTPS-enabled server to receive Dialog360 webhooks
- Automate WhatsApp customer service.
- Native integration with Bitrix24 chats and OpenLines.
- Full control of bot behavior and conversation flow.
Want to automate your Bitrix24 with a custom chatbot? Let’s build it together. 🚀