Bitrix24 Chatbot Application Workflow Example with Webhook Integration

This workflow is a demonstrative chatbot solution designed specifically for the Bitrix24 platform. It can automatically respond to user messages, welcome new members, and handle various events in the bot's lifecycle, such as installation and deletion. Through Webhook integration and Token authentication, it ensures secure and reliable communication while streamlining the event handling process. This enhances team collaboration efficiency and user experience, making it particularly suitable for businesses and developers that require automated management and efficient interaction.

Workflow Diagram
Bitrix24 Chatbot Application Workflow Example with Webhook Integration Workflow diagram

Workflow Name

Bitrix24 Chatbot Application Workflow Example with Webhook Integration

Key Features and Highlights

This workflow implements a demonstrative Bitrix24 chatbot integrated via Webhook, enabling automatic responses to chat messages, welcoming new members, automatic chatbot registration upon installation, and handling chatbot deletion events. It features intelligent message processing capabilities that dynamically respond based on user input, while ensuring security through Token validation.

Core Problems Addressed

  • Automating the lifecycle management of Bitrix24 chatbots, including installation registration, message response, welcome message delivery, and deletion handling
  • Securing Webhook communications with Token validation to prevent unauthorized access
  • Simplifying chatbot event processing workflows to enhance interaction efficiency and user experience

Application Scenarios

  • Deploying intelligent customer service chatbots on the Bitrix24 platform to automatically reply to customers or internal staff messages
  • Automatically welcoming new members joining chat groups to improve team collaboration experience
  • Automating chatbot installation and configuration to reduce manual intervention
  • Securely managing chatbot API calls to prevent unauthorized operations

Main Workflow Steps

  1. Receive Webhook Requests (Bitrix24 Handler): Listen for event notifications from Bitrix24
  2. Set and Extract Credentials: Obtain and configure necessary authentication information
  3. Validate Token: Verify the legitimacy of incoming requests
  4. Route Events: Dispatch events to different processing nodes based on event type
    • New Message Event (ONIMBOTMESSAGEADD) → Message Processing Node (Process Message)
    • Chatbot Join Chat Event (ONIMBOTJOINCHAT) → Join Processing Node (Process Join)
    • Application Install Event (ONAPPINSTALL) → Install Processing Node (Process Install)
    • Chatbot Delete Event (ONIMBOTDELETE) → Delete Processing Node (Process Delete)
  5. Business Logic Processing: Execute corresponding logic such as replying to messages, sending welcome messages, registering the chatbot, etc.
  6. Invoke Bitrix24 REST API: Send messages or register the chatbot via API calls
  7. Return Success or Error Responses

Involved Systems or Services

  • Bitrix24: Platform for running the chatbot and message interaction foundation
  • Webhook: Facilitates event communication between Bitrix24 and the workflow
  • Bitrix24 REST API: Used for chatbot registration and message sending API calls
  • n8n Automation Platform: Builds and executes the entire workflow

Target Users and Value

  • Enterprise users and developers on the Bitrix24 platform seeking rapid chatbot setup and deployment
  • Teams requiring automated chatbot lifecycle and message interaction management
  • Technical personnel looking for secure and reliable Webhook integration solutions
  • Organizations aiming to enhance internal communication efficiency and customer service responsiveness

This workflow employs a clear event-driven approach to realize end-to-end automated management of Bitrix24 chatbots, enabling enterprises to effortlessly build intelligent interactive experiences and improve operational efficiency.