Actions290
- Task Actions
- Direct API Actions
- CRM Actions
- User Actions
- SPA Actions
- Activity Actions
- Automation Actions
- Document Generator Actions
- Data Storage Actions
- Get Entity
- Add Entity
- Update Entity
- Delete Entity
- Get Entity Rights
- Get Entity Sections
- Add Entity Section
- Update Entity Section
- Delete Entity Section
- Get Entity Item
- Add Entity Item
- Update Entity Item
- Delete Entity Item
- Get Entity Item Properties
- Add Entity Item Property
- Update Entity Item Property
- Delete Entity Item Property
- Chat Actions
- User Field Actions
- File Actions
- User Field Config Actions
- Duplicate Actions
- Timeline Actions
- Disk Actions
- Upload File
- Download File
- Delete File
- Get File Info
- List Files
- Create Folder
- Delete Folder
- Get Storage Info
- Get Storages
- Get Storage
- Get Folders
- Get Folder
- Add Folder
- Update Folder
- Copy Folder
- Move Folder
- Rename Folder
- Get Files
- Get File
- Copy File
- Move File
- Rename File
- Share Item
- Get Shared Items
- Get Sharing Rights
- Update Sharing Rights
- Workflow Actions
- Status Actions
- Calendar Actions
- Chatbot Actions
- Events Actions
- Lists Actions
- Product Actions
- Open Lines Actions
- Telephony Actions
- Register External Call
- Finish External Call
- Hide External Call
- Show External Call
- Search CRM Entities
- Attach Call Record
- Get External Line
- Add External Line
- Update External Line
- Delete External Line
- Get Voximplant Statistics
- Get Voximplant Line
- Get Voximplant SIP Connector
- Get Voximplant SIP Line
- Add Voximplant SIP Line
- Update Voximplant SIP Line
- Delete Voximplant SIP Line
- Message Service Actions
- Notify Actions
Overview
This node interacts with the Bitrix24 platform, specifically focusing on managing "Open Lines" sessions. The "Close Session" operation allows users to close an active open line session by providing its session ID. This is useful in scenarios where a chat or communication session needs to be programmatically ended, such as after a customer support interaction concludes or when automating workflow cleanups.
Practical examples include:
- Automatically closing a live chat session once a support ticket is resolved.
- Ending a customer conversation session after a timeout or inactivity period.
- Integrating session closure into broader CRM automation workflows.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authenticating with Bitrix24: OAuth2 (recommended for production), Webhook (simpler but less secure), or API Key authentication. |
| Session ID | The unique identifier of the open line session to be closed. This is required to specify which session to close. |
| Options | Additional optional parameters: - Filter: JSON object to filter results (usage depends on operation context). - Sort: JSON object to define sorting order for results. |
Output
The node outputs JSON data representing the result of the close session operation. Typically, this will include confirmation that the session was successfully closed or details about any error encountered.
If the operation fails and the node is configured to continue on failure, the output JSON will contain an error field with the error message, along with the resource name and a timestamp.
No binary data output is involved in this operation.
Dependencies
- Requires valid authentication credentials for Bitrix24 via one of the supported methods: OAuth2, webhook URL, or API key.
- The node relies on Bitrix24's API endpoints to perform operations; thus, network connectivity and proper API permissions are necessary.
- No additional external services beyond Bitrix24 are required.
Troubleshooting
Common Issues:
- Invalid or expired authentication credentials can cause authorization failures.
- Providing an incorrect or non-existent Session ID will result in errors indicating the session cannot be found.
- Network issues or Bitrix24 API downtime may cause request failures.
Error Messages:
- Errors returned from Bitrix24 API will be included in the output JSON under the
errorfield if "continue on fail" is enabled. - Common error messages might include "Session not found," "Unauthorized," or "Invalid parameters."
- Errors returned from Bitrix24 API will be included in the output JSON under the
Resolutions:
- Verify that the authentication method and credentials are correctly configured and valid.
- Ensure the Session ID corresponds to an active session.
- Check network connectivity and Bitrix24 service status.
- Use the "continue on fail" option to handle errors gracefully within workflows.
Links and References
- Bitrix24 Open Lines API Documentation
- Bitrix24 API Authentication Methods
- n8n Documentation on Bitrix24 Node (for general usage guidance)