Bitrix24 Chatbot Application Workflow with Webhook Integration
detail.loadingPreview
A n8n workflow that integrates with Bitrix24 to handle chatbot events via webhooks, process messages, join events, installation, and deletion.
About This Workflow
This n8n workflow demonstrates how to build a Bitrix24 chatbot application using webhook integration. It receives events from Bitrix24, processes different event types such as new messages, bot joins, and application installations, and responds accordingly. The workflow includes credential management, event routing, message processing, and bot registration.
Key Features
- Webhook Integration: Receives real-time events from Bitrix24 via a webhook.
- Event Routing: Distinguishes between different Bitrix24 chatbot events (ONIMBOTMESSAGEADD, ONIMBOTJOINCHAT, ONAPPINSTALL, ONIMBOTDELETE).
- Credential Management: Securely stores and utilizes Bitrix24 API credentials.
- Message Processing: Handles incoming messages, echoes them back to the user, or responds to specific commands.
- Bot Registration: Registers the chatbot with Bitrix24, setting up event handlers and bot properties.
- Dual Language Support (Implicit): The
Process Messagenode includes logic to respond to a specific English phrase, but the overall structure allows for internationalization if implemented in the function nodes.
How To Use
- Bitrix24 Handler: Configure the webhook endpoint with your Bitrix24 application. The
pathshould match the endpoint configured in Bitrix24. - Credentials: Provide your Bitrix24 application's
CLIENT_ID,CLIENT_SECRET, and extractapplication_token,domain, andaccess_tokenfrom the incoming webhook payload. - Validate Token: This node seems to have a placeholder or an incorrect condition. Ensure it correctly validates the authentication token if required.
- Route Event: This node directs incoming events to specific processing nodes based on the
eventtype from the Bitrix24 payload. - Process Message: Handles
ONIMBOTMESSAGEADDevents. It checks for specific messages (e.g., "what's hot") and constructs a response. - Process Join: Handles
ONIMBOTJOINCHATevents by sending a welcome message. - Process Install: Handles
ONAPPINSTALLevents. It prepares data for registering the bot with Bitrix24, including event handlers and bot properties. - Register Bot: Makes an HTTP POST request to the Bitrix24 API to register the chatbot using the details prepared in the
Process Installnode. - Send Message: Sends a response message back to the Bitrix24 chat for message events.
- Send Join Message: Sends a response message back to the Bitrix24 chat for join events.
- Process Delete: A placeholder
noOpnode for handlingONIMBOTDELETEevents. This can be expanded to perform cleanup actions. - Success Response & Error Response: These nodes handle the webhook responses to Bitrix24, indicating success or failure.
Apps Used
Workflow JSON
{
"id": "9f62dcca-f7ac-415b-ae81-2f1c3daca11c",
"name": "Bitrix24 Chatbot Application Workflow with Webhook Integration",
"nodes": 17,
"category": "Communication",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 9f62dcca-f7ac...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Auto-Label Gmail Messages with AI
Automatically categorize and label incoming Gmail messages using AI based on their content.
Send SMS with MessageBird
Send SMS messages using the MessageBird API.
Send SMS via Mocean
Trigger an SMS message using the Mocean node.