Skip to main content
You can create custom connectors for any communication channel by extending the ReviewConnector base class.

Creating a Custom Connector

from humancheck.connectors.base import ReviewConnector

class CustomConnector(ReviewConnector):
    def _get_connector_type(self) -> str:
        return "custom"
    
    async def send_review_notification(self, review, recipients, context=None):
        # Your implementation
        return {
            "success": True,
            "message_id": "external_id"
        }
    
    async def send_decision_notification(self, review, decision, recipients):
        # Your implementation
        return {"success": True}
    
    async def test_connection(self):
        # Test configuration
        return {"success": True, "message": "Connected!"}

Registering Your Connector

from humancheck.connector_manager import ConnectorManager

CONNECTOR_TYPES = {
    'slack': SlackConnector,
    'custom': CustomConnector,
    # ...
}

Next Steps